|
Hi all
How can I validate a VB.Net DataGridView Cell to accept only Alphabet characters upper and lower. No numbers or special characters are allowed.
Your help please....
|
|
|
|
|
|
Hi All !
I want create new property ( Rows , Cols) to DataGridView
(->So I can choice and set Rows munber and cols munber from form design)
Please tell me what I have todo ?
Thanks All support.
Hai
This will appear at the end of articles you submit to the Code Project
modified on Monday, July 28, 2008 1:19 AM
|
|
|
|
|
Hello Hai,
You will have to create a new UserControl inheriting your application from the DataGridView.
Then you can define new Properties for the control. Inherited NameSpace will be
System.Windows.Forms.DataGridView.
Hope this helps.
Regards,
Allen
Allen Smith
ComponentOne LLC
www.componentone.com
|
|
|
|
|
Hi Allen
Thanks you support
I have create a new UserControl as you said
----------
Public Property Cols() As Integer
Get
Return Me._Cols
End Get
Set(ByVal value As Integer)
Me._Cols = value
Me.Invalidate()
End Set
End Property
------------------
on form design display property Cols, I don't know after that what I must todo
Please help me !
This will appear at the end of articles you submit to the Code Project
modified on Monday, July 28, 2008 3:42 AM
|
|
|
|
|
i have created an application which is ping multiple IP address at 1 time. In my application, user can set the routine time by selecting from combobox which is every 10minutes, every 15minutes or every 30minutes. the application will loop pinging IPs until the user ends the program. my question is, how am i going to write the routine?
|
|
|
|
|
if you are using .NET framework 2.0, there's a ping method under My.Computer.Network.Ping.
Hope this can help.
|
|
|
|
|
|
I have a problem taking out the name of the file to compare. For wat i know i if i have a file call 12345.ppt i can use split or remove function to separate the 1st part and the extension part.. But now my question is my file name is abc12345.ppt and i just wan the number which is 12345, how can i go about doing it??
|
|
|
|
|
If you just want the number, you need to use a regex for that.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi chaps,
it has been a while since I have been here ...
I started programming back again but I'm having a problem ...
I would like to use the mid() function in multiple lines ... (textarea)
is there any way I can jump from line to line ?
and another question ... can somebody give me the code to write a textarea content to a file ?
thx in advance ... I hope you guys can help me out ... specially with the mid function or some alternative of it
|
|
|
|
|
is this VB6 or VB.NET ? you can use the Split method to turn a string into an array, one per line. You can use the substring method on each line to get a substring if you want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
VB.NET
but normally VB6 should also work on .NET right ?
anyway what's the best solution ?
and can you give some example code of both ?
Haven't really used them ... only split but that's a long time ago and it was pretty vague already back then :p
|
|
|
|
|
X-tremist wrote: but normally VB6 should also work on .NET right ?
Hell, no.
X-tremist wrote: and can you give some example code of both
I *think* it's
dim s as string()
s = tb,Text.Split(Environment.NewLine)
The substring method is self explanatory.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
actually I made a mistake ...
it's a multiline textbox
so how should I handle that ?
how can I search line by line for a word or character ?
is there any way to parse everything to one line in a string ?
that way I might use a counter and the mid function
|
|
|
|
|
|
It is pretty straightforward. You'll need a user table that stores the login info, and just run a query that has the username and password in the WHERE clause. If the query comes back with 1 row, then the login is successful. This is a very basic approach. You can do other more advanced things such as timestamping the login, forcing user to change their password, etc.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi,
how to write code for the below Binding Navigation Controls in VB.NET 2.0
BindingNavigatorMoveFirstItem
BindingNavigatorMovePreviousItem
BindingNavigatorMoveNextItem
BindingNavigatorMoveLastItem
Regards
Vidhish
|
|
|
|
|
Wow.
Amusingly, if I type these terms into google, I find examples of what I assume you want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi graus ,
i didn't get solution for the navigation buttons in google search.
Pls let me know what type of code you implement.
BindingNavigatorMoveFirstItem
BindingNavigatorMovePreviousItem
BindingNavigatorMoveNextItem
BindingNavigatorMoveLastItem
Regards
Vidhish
|
|
|
|
|
You must have a different google to the one I have access to. The behaviour seems obvious to me, and it seems tied to your data source. Why don't you try posting the code you've tried and explaining what's going wrong with it ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi all i already told my problem can anybody help me
am using VS 2005, i have one issue on search buttons. The problem is my form contains 4 search buttons each search button searching the values depends on table values . For Exp TicketNumber,UnitNumber,CompanyName,SerialNumber.
In this case only one search button working properly my code is........
Regards
Vidhish
|
|
|
|
|
vidhish wrote: my code is........
absent.
Maybe you did not check the "Ignore HTML tags in this message (good for code snippets)" box while
pasting it in?
CORRECTION: please don't start a new thread on the same subject. Now there are two threads, both
incomplete.
|
|
|
|
|
|
pranavrana wrote: txtUsername.Text = rd("Username") And txtPassword.Text = rd("Password")
That is a problem right there.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|