How To Make Replacements
Sep 24, 2011
i have vb10 and i maid a form that contains richtextbox and button1 and label1
i want to type something in the richtextbox1
when i press the button1 i want it to take a litter by litter and convert each one to other character or numbers which the modified text will be in label1
the problem is i could change except the last command in the button1
for example :i but this code , which is in button1_click:-
label1.text= richtextbox1.text.replace("a",",10,") label1.text= richtextbox1.text.replace("b",",11,")
View 4 Replies
ADVERTISEMENT
Jan 4, 2009
I want to convert this VB6 code to VB.NET:
Code:
Private Function StripNullChars(ByVal MyString As String) As String
Do While Len(MyString) > 0
If Asc(VB.Right(MyString, 1)) <> 0 Then Exit Do
[CODE]...
However, I don't know what are replacements .NET version of VB.Left and VB.Right?
View 3 Replies
Aug 1, 2009
An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5 The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program to parse multiple .vbs files and produce a list of all of the subroutines and functions - which were then available within the application alongside core functions.
Previously this was an embedded msscript.ocx - in the first .Net conversion, this was wrapped in Interop.MSScriptControl.dll, however, on Windows 7 this just isn't working. It looks like this is really not the way to be doing this anyway - Microsoft seem to be trying to kill vbscript.
Is there a 'supported' way of using VBScript, or is it time to move on? and if so, where is there to move to that provides the same sort of functionality?
View 1 Replies
Aug 5, 2009
1. In the old VBScript, there was a compareMethod (binary or text, which with text, I could compare case) but I don't find anything like that in the new .Net Replace method. I know I can use the old way, but I'd like to use the new Replace method. I just need a choice of comparing case or not?
2. Let's say I have a long string, and I am using the Replace method - - it would be nice to get the count of instances replaced, and I'm sure that if I read line by line, I could actually get that count, but it would take to long.Is there a way, using the Replace method, to get a count of how many actual replacements were made?
View 1 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 29, 2009
can we make code which can make copying a file in a particular drive invalid/access denied?
View 3 Replies
Oct 16, 2011
A few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?
View 7 Replies
Jan 13, 2010
Public Class form1
Private Sub btnAnswer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAnswer.Click[code]........
how can i make vb realize that the side that is opposite of the given angle, has to be less than the other sides. Also im not sure what Acamar meant by If txtAngleA.Text <> "" AndAlso txtAngleB.Text <> "" AndAlso txtSideA.Text <> "" Then 'two angles and a side Because im not sure what <> does.
View 1 Replies
Aug 23, 2009
How do i make my button open a program and make it windows size?
View 6 Replies
Dec 14, 2010
Basically I have 10 .png images.They contain a walk cycle I need to make some kind of loop inside a timer to make them change.
View 2 Replies
Oct 12, 2010
Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.
View 3 Replies
Aug 25, 2010
Types have their own color (cyan by default).Enter completes the auto-complete suggestion.
View 1 Replies
Aug 23, 2009
How do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?
View 1 Replies
Sep 7, 2009
I want to make a translator like this: [URL]...I have already made two textboxes and a button. If I type in textbox 1 abc then textbox 2 must say nop. I already know the If textbox1.text = "abc" then textbox2.text = nop. I don't want that i want to translate the a to a n and the b to a o and the c to p. So i want to translate every single letter and make it 1 word. Its like a secret code. My language looks like that a=nb=oc=pd=qe=rf=sg=th=ui=vj=wk=xl=ym=z n=ao=bp=cq=dr=es=ft=gu=hv=iw=jx=ky=l z=m
View 22 Replies
Jun 21, 2010
I wanna ask how to code to make a button make a sound out when pressed? Can you add sound files to it, like a mp3 file?
View 3 Replies
Sep 10, 2010
I've been looking through the book I own and I've been looking online but I just don't understand what code would I write to have it check the text box or input box for the right letters in a word?
View 2 Replies
May 19, 2010
Can i make from this image to make it Loading Screen I mean i put this in Form1 [URL] And i want when the program start the progressbar (the white line to load)
View 1 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
Sep 15, 2011
I make textboxes dynamically and make a controll (see code)
Only last textbox is visible How to create controll for all textboxes
[Code]...
View 3 Replies
Oct 2, 2009
when i click a butten how would i get it to make a noise, and how would i do this in stepsI like.....
Understandable Answers
1 2 3 4 5
- - - - - Rate yourself And Have A Kitkat
[code].....
View 6 Replies
Jan 30, 2010
ok so i've got a Form class that inherits from System.Windows.Forms
the problem is that once i put that line in, the IDE automatically converts it into a class that has Designer enabled. how do i stop this behavior?
View 2 Replies
Nov 11, 2010
heey guys, befoure I explain the problem. I know some vb coding so you can just give me some codes and I can add it to the program. ok,
I want to make a html file with "tags" to make a music database,
<html>
<Song_Database>
<Song Number="1" Name="Memories" Artist="David guetta" Category="Pop">
</Song>
</Song_Database>
</html>
View 3 Replies
Jul 11, 2010
I'm building a listview search feature in my app. (See the code below). It works really well, except if you search "T" then the code removes all items, if you search "t" then it removes every item except for those starting with "t". Is there any way to make a 'like' statement, or use some kind of wildcard to make the statement not case sensitive?
For Each itm As ListViewItem In ListView2.Items
If itm.Text Like TextBox1.Text & "*" Or itm.SubItems.Item(1).Text Like TextBox1.Text & "*" Then
Else
[code].....
View 2 Replies
Jun 21, 2011
I have made an app and I want to add it to " open with menu" sub menu which appears when user make right click on any file ie I made photo viewer app and I want to add it to "open with menu" so user when make right click on any photo and go to "open with menu" sub menu will find my app name to chose it to open the photo with it
View 7 Replies
Jan 31, 2012
how do i make the invoice number increase as i make each new invoice. i want to save each invoice then as i make the next one i want the number to increase,then be able to save that one and so on...
View 1 Replies
Jan 19, 2012
I'm using loop to read data from sql and then make some calculations then save it again to another table but when application loop for 3 or 4 times it's freeze but the job is done but if loop = 10 or more then it is freeze and hangup for long time .i need to learn how to make my application working better and never freeze and make application working with any count for loop without freeze .
View 7 Replies
Mar 25, 2009
I'm having trouble getting my changes to post back into the DB. I am using Access 2000 for the time being (switching over to SQL 2005 in a few 3 or 4 months). I'm having a lot of trouble converting some of the old code from VB6 to .Net 2008, mainly where database interaction is concerned.
[Code]...
View 3 Replies
Jul 21, 2011
I make a simple form but use some icons and Third party activeX control.during designing its working well. Now i want to make exe and install to another computer. How i will make exe with activex and what we need to run the project on another comuoter if it have not vb2008?
View 5 Replies
Jun 8, 2011
I currently have been coding this.[CODE...]
But, I want to have the UsernameBox.text and PasswordBox.text on another form, so if the login fails, then it exits the application.If login is successful, then form2 loads and they can press the upload button.
View 8 Replies