|
You can't.
The script MUST be running on the client computer in order to show a user interface on it.
You'll have to entirely rethink how you're doing whatever process you're doing.
|
|
|
|
|
As Dave said, you cannot do this. You would have to install a client version of your software that is listening on a certain port. Then you can have a server version of your software that sends messages on that port.
However, if you do not need to ask for input and all machines are Win7 or higher, you can use msg. Open a command line and type msg and you'll see the options, http://pcsupport.about.com/od/commandlinereference/p/msg-command.htm[^].
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have a datacolumn which contain same data field, i want to get it into combobox JUST one items (remove duplicate in combobox).....please help me, I'm really sorry, my english very BAD....
modified 12-Feb-16 0:44am.
|
|
|
|
|
|
Thanks very much...I'll try it...
|
|
|
|
|
Hi There
I Have A Text box That I Want The Content To Display The Content In Percent
Thanks In Advance
|
|
|
|
|
|
please i was given this error message (Conversion from string "GH¢6" to type 'Integer' is not valid.) when i tried to save my records
here is my code below
|
|
|
|
|
Perhaps you should not add the text "GHC" to the value, but simply show it in a label after the textbox. The textbox should only contain numbers if you want to convert it to an integer (so, no decimals!), or you should remove the characters before converting.
Ask your teacher for some extra explanation on data-types.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
As a further comment, this site is not the best place for your questions until you have a good understanding of both .NET and Visual Basic. You should get hold of a good study handbook on these subjects, rather than trying to learn by posting questions here.
|
|
|
|
|
i want the code on how to Attach a Ghanian cedi currency symbol to a text box called txt_Cost
|
|
|
|
|
|
Please i have created a form with several textboxes i want the error indicator code to prompt a user to type a value in case the user did not put any value in the text box click on the save button
modified 10-Feb-16 5:13am.
|
|
|
|
|
You probably need to subscribe to one of the events that fires when text changes: TextBox Events (System.Windows.Forms)[^]. You should also disable the Save button until all text fields have been successfully validated.
|
|
|
|
|
Well, you're not going to get any code. This is a education problem. You have to learn how validation works and write your own code.
Google for vb.net Windows Forms validation tutorial[^] and start reading.
|
|
|
|
|
Hi i want that merge columns of string values join in single cell in vb report by using group
Data
ID Name
1 paint
1 cross
1 less
2 to
2 gain
3 increase
I need in report as
ID Name
1 paint, cross, less
2 to, gain
3 increase
|
|
|
|
|
Was a bit trickier than I first thought - but here it is :
Dim arr() As String = New String() {"ID Name", "1 paint", "1 cross", "1 less", "2 to", "2 gain", "3 increase"}
Dim newstring As String = "", endstr As String = ""
Dim c As Integer = 1, num As Integer
Dim newnum As Boolean = True
For i = 0 To arr.Count - 1
If i > 0 Then
If Integer.TryParse(arr(i).Substring(0, i.ToString.Length), num) And num = c Then
If newnum = True Then newstring += num.ToString & " "
newstring += arr(i).Substring(i.ToString.Length + 1, arr(i).ToString.Length - i.ToString.Length - 1)
End If
If (i + 1) <= (arr.Count - 1) Then
If Integer.TryParse(arr(i + 1).Substring(0, (i + 1).ToString.Length), num) And num = c Then
newstring += ", "
newnum = False
Else
endstr = newstring
newstring = ""
newnum = True
End If
Else
endstr = newstring
newnum = True
End If
c = num
Else
endstr = arr(i).ToString
newnum = True
End If
If newnum = True Then Debug.Print("##### : " & endstr)
Next i
|
|
|
|
|
Hello !
I'm developing an application on vb.net 2013.
On my pc I'm using my screen resolution as a standard for Form's size , and object's size inside forms.
Of course , on my pc all the forms looks as should be.
But if try to run the application on a greater resolution , the forms and objects are small and the text almost unreadable . If I try to run on a smaller resolution , the forms became larger and objects and text very ugly.
Is there any technique or tool , in order to design form's independent from screen resolution ?
Thank you !
|
|
|
|
|
satc wrote: Is there any technique or tool , in order to design form's independent from
screen resolution ? Heaven forbid, no. It would mean that someone starts designing on his 640x480 and then projecting that onto my 21" TV that does 1280x1024. Scaling independent of resolution means that your small form becomes idiotic big on larger screens.
Would mean that is becomes useless to buy a screen with a high resolution and lots of space, as everything would look like it is a 640x480 screen.
Your forms should not "look good" based on the screen, they should convey all required information using the space they need. That often means a form that is smaller than the screen. You can use docking and aligments to have the form redraw in a different resolution, filling up extra space as required.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Well , a solution exists , but is too expensive :
Softgroup Components[^]
So I thought maybe there's a technique to implement this
|
|
|
|
|
That is not a solution.
Imagine a presentation on a 42" plasma-screen; each Window behaving neatly, until your app is launched and shows a font that is triple the size of the normal applications, because it feels it needs to "rescale".
If scaling was desired it would be done at the OS-level. Your form has a fixed need in terms of space, and if I have a desktop that has more space, then the form should simply occupy less, not rescale and eat up desktop-space with 48px fonts.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
What you suggest to do with my form that when is displayed on your 42" screen with high resolution looks so small that the text is not readable an nobody understand nothing ?
|
|
|
|
|
My screen.
My machine.
My choice of resolution-setting.
So, if all text is too small, the solution is not in changing a single application, but in changing the system-settings to a suitable resolution for the machines capabilities.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I'm not creating an application that I will use only on my Pc.
Different users with different screen resolution are going to use it.
Users doesn't want to change the screen resolution only for my application.
|
|
|
|
|
satc wrote: I'm not creating an application that I will use only on my Pc. Different
users with different screen resolution are going to use it. As most of us.
satc wrote: Users doesn't want to change the screen resolution only for my application. They don't change the resolution for any application; you application should not be bound to a single resolution. Forms and controls do scale.
Your font should be as big as determined by the systems settings', equal to all other applications, not being resized to match your dimensions. Your "OK" button is going to be rediculously big on future screens with higher resolutions.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|