Make A Program In VB Which Requires The Use Of 24-bit Strings
Mar 10, 2010
I am trying to make a program in Visual Basic which requires the use of 24-bit strings. However, I am not aware of a common name for them. I know that Byte is 8-bit, and Short is 16-bit, so is there a name for 24-bit?If not, then is there any way to combine a Byte and a Short to create the needed 24-bit value in my program?
View 2 Replies
ADVERTISEMENT
Feb 25, 2010
If e.CommandLine.Count > 0 Then
Dim IncomingCommand As String = e.CommandLine.Item(0).ToString
If IncomingCommand.Substring(0, 2) = "-1" Then
form1.close()
End If
End If
I am trying to make the program close if the -1 string is sent with the program. See my installer allows for me to run certain programs before it actually installs, but it doesn't shut down copies of the program itself. So I have a next startup instance set to shut the program down if the -1 is received. But if the program is not running it starts up instead. This is not desired. form1.close doesn't work. e.cancel = true doesn't work, etc etc. What can I do to make the program not start during this instance.
View 1 Replies
Jun 8, 2009
So, I'm using shell to start up an external application at the press of a button, but the application requires several other external files with it in order for it to work. How could I make it work? Note: I'm a newbie
View 7 Replies
May 8, 2009
I am using this statement
CODE:
The command procedure calls a Java program that opens a dialog box, the cmd and java exe shows up in task manager, so I know it is being called, but no dialog box. I know normally having anything show up on a server that requires user interaction is a bad idea, but in the case, the users remote into the server to do their work. (They have to because of the environment) So, there is no problem with them being able to respond to a dialog box. I just need it to show up.
(I cannot rewrite the Java program as the latest source is not the right version) Running, Framework 2.0, 3.5.
View 7 Replies
Apr 27, 2009
I am creating a program that requires the user to click a checkbox and then select a date in a Date Time Picker Control. There will be up to 20 entries. I need to know how to take all of the dates entered and display on a diffrent form the latest date selected by the user from all the entries on a form. All the options will be training selected and when the last training item is selected and a date entered I need to be able to output the training completion date wich will be the latest date entered in the form.
View 4 Replies
Feb 22, 2011
I have an issue with the Windows permission system. And every time it tries to do something that needs a windows permission (to be ran as administrator) it fails !
At the moment I was trying to implement an updater which should download a file from an ftp site but because copying a file into one of the program files folder requires a permission I am not able to do this.
View 1 Replies
Aug 2, 2011
I have o problem on my codes sqldr = sqlcmd.ExecuteReader when i debug the program error says ExecuteReader requires an open and available Connection. The connection's current state is closed. i dont know what its means that error..
View 1 Replies
Oct 16, 2009
Say I have a List(Of Tag) with Tag being an object. One member of Tag, Tag.Description, is a string, and I want to make a comma-separated concatenation of the Description members.Is there an easier way to do this than to read the Description members into a List(Of String) and then use the Join function?
View 2 Replies
Aug 24, 2010
I'm entering data into a text box, and I want to make sure the data I enter contains only letters. Is there any way in Visual Basic that I can go about doing this?
View 7 Replies
Feb 4, 2010
q1/ how can i convert a lowercase string to sentence case with LINQ, without losing my rtb formatting?
View 2 Replies
Feb 20, 2012
I would like to make an enum of strings. There are several masks for text boxes that I would like to standardize in our system.For simplicity lets say there are 2 masks:
"PhoneNumber" which is "(999)000-0000"
"Zip Code" which is "00000-9999"
I would like to be able to reference these through out the entire program in a manner such as:
DefaultMasks.ZipCode or DefaultMasks.PhoneNumber
Since enums can not be of string type, what would your best suggestions be as to how I could do this. I had thought about a class with constants in it but I was not sure how to implement that properly.
View 14 Replies
Mar 16, 2010
I have a custom list control, using labels to display content.How can I add a list property to the control so I can inject items into the custom listbox?I know how to make properties for strings etc. but I can't get it to work to make a list property...
View 1 Replies
Feb 2, 2010
When I attempt to run a program I just finished coding I get the following message: "Error 1 Handles clause requires a WithEvents variable defined in the containing type or one of its base types." Looked it up online and still does not make sense to me. If I need to paste code or anything else let me know and I will do so ASAP.
View 8 Replies
Apr 11, 2009
I cannot make the code work when it gets to consonants. I cannot get the consonant part correct.
Code:
'Date of last Modification: 4/11/2009
'Pig Latin Converter: Takes and English words and converts it to Pig Latin
'Rules stated in comments within calButton click event procedure
[code]....
View 3 Replies
Nov 23, 2009
Store order status strings in program?How will this be in VB?[code]...
View 5 Replies
Apr 18, 2009
I am trying to write a program that will compare two strings in different text boxes. Then it must add 1 to a third text box for every time a letter appears in both text boxes. So for example if textbox1 said ABCDF and textbox 2 said ABTR it should return the number 2 because A and B appear in both.
This is what I have so far
Public Class Form1 Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles string1.TextChanged
End Sub
Private Sub Compare_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Compare.Click
Dim string1 As String
Dim string2 As String
Dim Result As Integer
End Sub
Function stringcompare(ByVal string1 As String, ByVal string2 As String, ByVal string3 As String) As Integer
stringcompare(string1 As string, string2 As string) End Function End Class
View 4 Replies
Dec 16, 2010
I need to open up a cmd prompt, then run a file called adb.exe which opens a shell to communicate with my android cell phone...
Heres what I need:
My Form1
Label1.Text = "adb.exe shell"
Label2.Text = "su"
Label3.Text = "mkdir /etc/folder"
[Code]....
Heres the problem... I can execute any normal dos command automaticly, but once i open the ssh prompt (adb.exe shell), i dont know how to keep putting commands in there...
The commands are stored in strings, and i need to take the commands from the strings, and type them into the command prompt like above.
View 2 Replies
Mar 14, 2010
I have a program that has a large set of classes in it. A certain incident (I won't call it an event, yet, as that has a specific meaning that will cause trouble later) needs to a relatively small subset of these classes a question. The subset of classes will need to respond to the question, but for it to be able to do so, the classes may first need to ask a similar question of the same subset, which may prompt yet a further question, though this recursion will never go more than three or four levels down. Since only a small subset of these classes will participate in the questions, while the majority will never participate, and since all of these classes are virtually identical, and I can know at design time whether any given class is part of the subset or not, an event is appropriate. The main class can raise an event, and those classes in the subset can handle the event, while those classes that are not in the subset won't handle the event. Furthermore, any of these classes can raise the event again with different parameters, as needed. Thus far, an event appears to be ideal.
The problem is this: As a result of the event, each class will need to add one or more strings to one of two lists. Event handlers can't return anything, so I can't be using the return values from functions to populate these lists.
Two options appear possible:
1) Include the two lists in the event arguments.
2) Have the two lists be accessible to all classes, and don't pass anything around.
The second part of the problem is that the event is effectively a question being asked of each class, and no action can be taken until each class has responded. If I simply raise an event and let each class respond, can I be certain that all classes that should respond have? An alternative solution would be to have each class expose a method, and call these methods for each class in turn. By doing this, I could get return values, but I would have to call the methods for ALL the classes, not just the subset that actually cares (the classes are all different types, but they all implement a common interface, and are added to a List (of ) that interface, so I can iterate through them all without much difficulty). So, the event seems more efficient, but adding a function to the common interface for the classes is the approach most certain of being a solution.
View 7 Replies
Aug 13, 2009
I am working on a UDP Client/Server, and currently i have them sending back and forth strings, which i convert to bytes, and then open the bytes to read. I want to now send an Object instead of those strings, which includes multiple unsigned integers and strings.
View 39 Replies
Feb 28, 2009
I am attempting to make a tabbed browser and I am getting a couple of errors. First one is "name 'addtab' is not declared" the second is "reference to a non-shared member requires an object reference" the third is "statement is not valid in a namespace" and lastley "the resource name 'stop' is not a valid identifier"
View 18 Replies
Jun 6, 2009
I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
View 5 Replies
Aug 23, 2009
How do i make my button open a program and make it windows size?
View 6 Replies
Aug 5, 2010
I have a list of strings. For each string in that list, I want to prepend another string. I wrote a method to do it, but I was wondering if there was something already in .NET I could use to do this. It seems like something that could be built in, but I was not able to find anything.
Here is the method I wrote:
Private Function PrependToAllInList(ByRef inputList As List(Of String), ByRef prependString As String) As List(Of String)
Dim returnList As List(Of String) = New List(Of String)
For Each inputString As String In inputList
returnList.Add(String.Format("{0}{1}", prependString, inputString))
[code].....
It works, but I would rather use built in functions whenever possible.
View 5 Replies
Oct 16, 2009
I'm migrating from VB6 to VB.NET, in hence my questions below:
I have to write a function that returns array of strings.
How can I initiate it to empty array? I need it since I have to check if it's empty array after it returns from this function.
Is list of arrays better for this purpose? If I use a list - Is it empty when it firstly defined? How can I check it it's empty?
View 3 Replies
Jun 1, 2010
I made vb.net program for 1440x900 resolution, if i run my program on 800x600 or 1024x768, my program's resolution is bigger then windows, so i have problem with resolution. Now i want to change my program's size and i am interested in, wich resolution is correct to make program, 800x600 such as minimum?
View 9 Replies
Aug 26, 2009
How do I make a program that opens a file in the folder the program is stored?
View 6 Replies
Apr 3, 2010
I want to make a program that searches for a RGB color and clicks on it, WITHIN the program.
View 2 Replies
Dec 30, 2010
what im trying to do= make a program that will make multiple accounts
[code]...
ok what i type in textbox(es) "1" i want it typed on a "3"{a website=www.justin.tv/signup} when i hit the "2"[button1]i really dont have any idea what im doing i know ill need to have a webrowser to load the justin.tv/signup but i have no clue what the name of the boxes are called on the webpage
View 4 Replies
Jun 9, 2011
Me and a friend are making an app which we need to play a sound when Form1 is started. How do we do this? I don't mind code.
View 2 Replies
Aug 15, 2011
How to make a computerized examination program using vb.net...
View 1 Replies