|
As opposed to C#, where there's the Refractor group with "Rename", "Extract method", etc, in VB there's only a single option called Rename, which brings up a "Rename" dialog. But it is simpler than the standard one of Refractor, more precisely it doesn't have any options (preview, search in comments & search in strings)
|
|
|
|
|
hai to all
i am working only vb .net,i val;i validate the text box only numbers & Only characters,so not support the platform keypress event and click event,pls give me a solution
Rathi
|
|
|
|
|
Ursrathi wrote: so not support the platform keypress event and click event,pls give me a solution
I don't understand ? The Textbox DOES support the keypress event.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have checked the events of TextBox. It does support KeyPress event. Can you recheck at your end.
You can use the following code for validation on a TextBox.
<br />
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress<br />
<br />
Select Case (Asc(e.KeyChar))<br />
<br />
Case 8, 48 To 57, 65 To 91, 96 To 122<br />
<br />
e.Handled = False<br />
<br />
Case Else<br />
<br />
e.Handled = True<br />
<br />
End Select<br />
<br />
End Sub<br />
Allen Smith
Software Engineer
ComponentOne LLC
www.componentone.com
|
|
|
|
|
Gosh, that's nasty. I use stuff like Char.IsControl, Char.IsDigit and Char.IsAlpha to write this sort of code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Why dont u use mask edit box to solve ur issue???
|
|
|
|
|
how to make search button in the vb 2005?
jack
|
|
|
|
|
Easy - put a button on the form and write code to search. For more help, give more details.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i'm looking for how to use for...next loop for my project
i want to use that coding for the how many months left when the user pay the payment on my system
jack
|
|
|
|
|
A for next loop is a very basic C# construct. Buy a book and work through it if you don't know this stuff.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dim i As Integer = 0
Dim dt_result As New DataTable
For i = 0 To dt_result.Rows.Count - 1 Step 1
'Here ur coding
Next
Janani
|
|
|
|
|
Add a row: (consider that your listview has 2 columns)
Dim item as new listviewitem("new row")
item.subitems.add("new row's column 2")
Listview1.items.Add(item)
Edit the row, you enumerate through the list or get the selected row
Dim item as ListViewItem = ListView1.SelectedItem(0)
item.Text = "new row modified"
item.subitems(1).Text = "new row's column 2 modified"
That should be it...
|
|
|
|
|
Hi
I have a program which collects performance counters from any system on a network - the problem is, it works fine if the native OS is English, but refuses to collect any counter in any other language OS (German, for example). Anybody else faced this issue? Any suggestions?
Thanks for your help
Chandra Ram
|
|
|
|
|
The counter names would be localised so you need to adjust the name of the counter you are opening according to the locale setting.
|
|
|
|
|
Duncan Edwards Jones wrote: The counter names would be localised so you need to adjust the name of the counter you are opening according to the locale setting.
Thank you for your time... but isn't there some way whereby one could map each counter name across languages? What if I am collecting counters based on a pre-defined set (unfortunately, the list is in English)?
I remember vaguely that there is a TranslateName or some such function available to do this...
Any insights welcome.
Chandra
|
|
|
|
|
hi everyone,
how can i determine whether particular Exe is in memory or not ?in my application i want to execute some statement if all contents of exe is fully eliminate from memory ?
Thanks in advance
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
You can use the Process clas and it's GetProcessesByName method to do this.
|
|
|
|
|
i have a datagridview im my application and i would like to print its content..i already have a printdocument component in my form but i don't know which method to use in order to print all the contents in my datagridview..
pls help...
tnx
gt
|
|
|
|
|
|
I need to check to see if a random access file exists before I initialize it. Here is the scenario. I am writing a program that stores the location of the random access files that hold its records in a random access file. The main file will always be in the same location. the first time the program is run I need to initialize the file and insert a default location in the file.
Is there a way to check to see if the file has been initialized besides having the user do it with a message box?
|
|
|
|
|
Use the System.IO.File.Exists(path As String) method to check for the presence of a file at a particular location.
Paul Marfleet
|
|
|
|
|
Hi,
I'd like more information on successfully tracking when someone changed locations in the VB.NET Web Browser control.
How do I know when they've clicked on a link and have successfully changed location? Compare WebBrowser1.locationURL to the previous LocationURL?
I want to know how to get this done effectively. Any help would be appreciated.
There's no such thing as time!
|
|
|
|
|
I wrote a Data entry app in VB.net and connected it to a SQL server 2005 database that is on our LAN.
I was just informed that this app will have to be used offsite by multiple users at different locations around my state and it has to update a central data store.
It would take me way too long to duplicate this app in ASP.net (I am ASP illiterate and only have a week to do this.)
Is there a way I can get my fat client app to use my database, which sits on my local area network? My company does have a domain and we do have an IIS server but I'm clueless.
|
|
|
|
|
If you have a static IP, you could just open the port for the database on your network and point the apps to that IP address/port.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I'm writing a utility to write SQL in, so I wanted to add functionality to automatically set the text color of comments. My problem is that right now I am using this bit of code:
Dim matchStart As System.Text.RegularExpressions.MatchCollection<br />
matchStart = System.Text.RegularExpressions.Regex.Matches(rtxtMySQL.Text, "/*")
To get a list of all the locations in the richtextbox that a comment starts...but because i have the asterisk in my pattern to search for, it's returning every character. This same code works fine when I search for "--" as the start of a comment. Does anyone know what I need to do to be able to search for "/*"? I would appreciate any help.
|
|
|
|