A Special Program
Aug 29, 2009
I've created the design of it, I just have no clue how to load.
Basically, there is a Dropdown box that connects to a folder. In the folder, are txt files. I need w/e text files are there on startup to be shown, in the dropdown box. Then, I need it so when somemone selects one of the files in the dropdown box, it read's the text file and performs some tasks. (I am getting really confused on how I could do this)
So basically, the dropdown is just for selecting the Text File.
In the textfile would be things like this:
open {test.java} (This would internally open the named java/ or whatever file)
find {test} (This would find the word test in the file)
add {testadd}, {under} (Would add "testadd" underneath The searched "test"}
remove {testadd} (Would remove "testadd")
save {test.java} (would save)
stop {c:/location/compile.bat} (Would Basically load the bat file.)
As if this wasn't complicated enough, then how would I get the compile.bat stuff (Like the log that comes from it, etc) to show up in a rich text field?
I cannot figure this out O_O
View 7 Replies
ADVERTISEMENT
Jun 9, 2011
i'm starting to learn vb.net, and i trying to make some special translating program, its need to translate hebrew text into special letter sequence. the text input are: ืื ืืืช ืืื ืืื ืื ืืชืงืืืื (which its means Construction of advanced buildings ) And the text output are: BPJJZ_BJPJJPJM_NZWDNJM according to the list i made (Attached picture).
[Code]...
View 17 Replies
May 23, 2012
In ancient time, we can specify all characters with chr(56)
For example, say the character is unprintable. We want to put it in a string. Just do
Dim a as string = chr (56)
Now we have UTF8 or unicode (or whatever encoding).[code]...
View 3 Replies
Jan 12, 2009
How to remove or replace all special characters(!@#$%^&*(){}[]""_+<>?/) from string in vb.net?
the example string is like like to## remove' all" special^& characters from string
View 7 Replies
Jan 21, 2010
Stop program closing if a special form is running?
View 8 Replies
Mar 9, 2009
I create special character by Windows XP Operating System Program Start/Run/eudcedit But, i can't reduce width of charater Ex: I create number 2 in string H2O but 2 is subscript then width of "2" is short, and i can't make "2" character shorter.
View 2 Replies
Aug 3, 2009
Check this out: If you do something like this code:
Dim X as Double = .14
Dim Y as Double = 14
[code].....
View 1 Replies
Jun 7, 2010
Here's my xml
<?xml version="1.0" standalone="yes" ?>
<MyXML>
<myNode name ="nameValue" webLink="http://www.bing.com/search?q=help+and+help&go=&form=QBLH&qs=n&sk=" />
[Code]....
View 3 Replies
Dec 4, 2009
Today, while talking with my colleague, something odd came out of his mind. A "secret" way to handle string coming from vb6, which was like:
[Code]...
View 1 Replies
Aug 3, 2010
I've got a program that in a nutshell reads values from a SQL database and writes them to a tab-delimited text file.The issue is that some of the values in the database have special characters (TM, dash, ellipsis, etc.) When written to the text file, the formatting is lost and they come across as junk "รขโข or รขโฌ" etc"
When the value is viewed in the immediate window, before it is written to the txt file, everything looks fine. My guess is that this is an issue of encoding. But, I'm not real sure how to proceed, where to look, or what to look for.Is this ASCII or UTF-8? If it's one of those how do I correct it before it's written to the text file.Here's how I build the text file (where feedStr is a StringBuilder)
objReader = New StreamWriter(filePath)
objReader.Write(feedStr)
objReader.Close()
View 1 Replies
Aug 15, 2010
buildLetter.Append("</head>").AppendLine();
buildLetter.Append("").AppendLine();
buildLetter.Append("<style type="text/css">").AppendLine();
Assume the above contents resides in a file. I want to write a snippet that removes any line which has empty string "" and put escape character before the middle quotations. The final output would be:
buildLetter.Append("</head>").AppendLine();
buildLetter.Append("<style type="text/css">").AppendLine();
The outer " .... " is not considered special chars. The special chars may be single quotation or double quotation. I could run it via find and replace feature of Visual Studio. However, in my case I want it to be written in c# or VB.NET
View 1 Replies
Feb 5, 2009
I have a requirement to connect to a path such as[code]...
Where the first underscore is a space, and the last two underscores are ALT255. I have tried the following, based on some samples I've seen on the web, but it doesn't work[code]...
View 1 Replies
Jun 20, 2009
I am loading a specific excel file into a form using webBrowser control(I'm suing this control because this way I can open any excel file). The thing i want to do is get the contents of specific cells within this excel file and put them into a textbox. An easy way to do this seems to be plain copy/paste the contents into the textbox. I want this process to be automated, so that the user can click only one button and the selected cell's contents to go sraight to the textbox(the button would act like the copy command and then paste the contents in the textbox). Also, i would like to know if i can add this option to the right-click menu.
View 4 Replies
May 17, 2011
i have a question about detecting some usb devices. I use two different usb devices : Safenet HASP and Maxim iButton.Is it possible to detect that these usb devices are connected.
View 1 Replies
Jan 5, 2009
How do you people get this special folder?
D:UsersMy User Name
I tried to get all special folders but was not able to get this one in Vista! IS that possible or I cannot find it?
View 1 Replies
Jun 17, 2009
What i would like to do, is have it load up with the settings for the users desktop.here's what i'm trying to do..when first loading a new settings file, a label with a directory as "C:Users rujadeDesktop" is created. if i install the app on a foreign p.c., when running the program for the first time, it loads the label with "C:Users rujadeDesktop". i'm trying to figure out how to load it with the user's desktop directory instead.[code]...
View 11 Replies
Jun 22, 2011
I am running an experiment that datalogs to the computer. I need to know when there is a change in on of the databoxes. Since there is no way to modify the software, my mind thinks the next best thing would be to design a software that allows you to select part of the monitor's screen and have it refresh very quickly to detect any change in the image in that area.
View 3 Replies
May 2, 2009
I need a method that can grab special elements with in a tag. Such as
HTML
<img src="someimage.jpg" friendid="253">
I need to get the value of the "friendid" after hitting a button. So when you hit the button a label shows as "253"
View 2 Replies
Nov 23, 2010
i really dont know how to express what i want in a single line so here we go. I have made a menu button which should tell the user how to use the program i have made. So when user clicks on the button a new window should appear which should have explanations on how to use my program , and some additional notes.
Now the problem is i have no idea even how to search for what i need.I know i can make a popup like MsgBox("write everything here") but is there a better way to do it because my "popup" should have a lot of text?
View 3 Replies
Feb 14, 2011
I have a text file, the file is sent to me, but this file has a particularity, because between characters get special characters, as if the file was a binary file.I put a screenshot. I need to pick up and replace these characters by the character "-", those chracters are at position 13 to 18 on all lines. And sometimes there is a "\n" character that makes it split the line, and this should not happen.
View 2 Replies
Oct 14, 2009
I have a datafield [Money] of datatype float.when i input currency value with $,or , it throws an error.How do I allow $ or "," to this field without changing the datatype(I know changing to type money may fix it)
View 3 Replies
Feb 11, 2010
I have data that I have to send as xml. There are many characters that are receiving an error. Is there a quick way that I can ignore all these characters?
View 10 Replies
Aug 13, 2009
In C# you can use to ignore the special characters:
string myString = "this is a " string";
that would work as one complete string... in VB, doing that does not work...Anyone know the equivalent of to ignore special characters for VB
View 2 Replies
May 9, 2009
Dim SPECIAL As Acronym = "Strength, Perception, Endurance, Charisma, Intelligence, Agility, and Luck." The game I'm working on is going to use this style of system.
What I need to do is:
1. All SPECIAL values have to be between 1 and 10. [DONE]
2. When adding and subtracting from any SPECIAL; update remaining points accordingly.
3. If remaining points = 0, then you cannot increase any SPECIAL.
4. If remaining points <> 0, then you cannot continue until all are spent.
I'm up to task 2, but having some difficulty.I managed to figure out how to do it for one. For example:
Sub Numeric_Up_Down_Strength_Value_Changed() Handles Numeric_Up_Down_Strength.ValueChanged
Label_Remaining_Value.Text = CStr(10 - Numeric_Up_Down_Strength.Value)
End Sub
But I'm having trouble figuring out how to make it work for all. I've had some ideas but upon trying to implement them I've been having data type conversion errors.
View 9 Replies
Jun 27, 2011
I need to send the follow [URL]
View 4 Replies
Apr 19, 2012
Say if i get a value like this ":Hello;" how do i get this result "Hello" in vb i tried a lot of things but just couldn't get any thing to work out.
View 9 Replies
Jul 21, 2010
I have a packing program which monitors putting barcoded items into a box, it works fine but if the user accidentally hits the windows start key (next to left ctrl), the windows start bar appears and the vb app loses focus, and no longer registers scans. Sometimes the user does not notice and will carry on scanning . . . .
how to force this form to be on top and maybe disable the windows special key ??
(I have made the form modal, but it is only modal within the vb app - the user can still press the windows special key)
View 3 Replies
Mar 22, 2010
How can I use Special Character in Labels, using VB 2008 Express?
View 5 Replies
Oct 3, 2011
I have a code for the validation for special characters but my problem is i cannot use space bar because of included for the special characters.I want to happen is i cannot input special character except for the space bar. it is possible to do that?by the way this is my code:
Private Sub txtlastname_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtlastname.KeyPress
Select Case Convert.ToInt32(e.KeyChar)[code].....
View 2 Replies
Apr 10, 2012
I need a Collection of Image Paths. The images for this list will be in a known location. So for practice, I decided to use the images that are installed in the Special Folders, using this snippet:
Dim paths As ReadOnlyCollection(Of String) = New String {"C:UsersPublicPicturesSample Pictures", Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)}
Obviously, this wont work yet. The squiggle line reads "End of Statement Expected". I just dont know where to go to understand the proper construction.
Here is the way a similar line is used in C#
[Code]...
View 10 Replies