I understand. Separate numbers from the prefix letter. I'll try it out that way. :)
I know. Writing an SP was my first idea. Even tried too. But my knowledge proven to be not enough. hehe.. (I will definitely get back to it again, this is just another way I thought of doing it in the meantime)...
I wanna perform a function like this. When you save a record, I need the primary key of that record to be auto-generated (X001). Say, when you create a new record and save it, it should be saved like X002 automatically.
So to test this before I implement that on this project I'm working on, I...
still stuck... :/
I got the general idea from ur article and thanks for that. But I'm still a little bit stuck. :confused:
Okay I'll give u the picture of the program I'm working on.
There's a Main menu (which is a MDI container). And there is a form called frmCourseMaster as a children...
First and foremost, I’m not a VB.NET pro so bare with me. :) And secondly, this isn’t a web based program but since ur thread has 0 replies, I thought of sharing this might give you at least a slight idea on how to accomplish what ur asking.
This is a little windows based program which I’ve...
Okay so I have a grid loaded with data. What I wanna do is when you double click on the row header, the data in that row should load into a form with textboxes. I've chosen the RowHeaderMouseDoubleClick as the evnt for this but dunno how to start. a little help with some example...
ah no matter. I fixed it :) Wrote the following under the TextChanged event.
If Char.IsLetter(txtFindName.Text) Then
txtFindName.Text = ""
This is easier than the ASCII thing, I must say. Thanks. cheers! :D
I tried out it ur way y'day. It works fine except for a little problem. I wrote this code for the KeyPress event. The thing is, it fires (the msgbox pops up) when I enter the 2nd letter. When I enter the 1st one, it doesn't throw the error. any idea?? I tried it on KeyDown, GotFocus events...
my solution :)
Thanks for ur info. the example program is helpful :)
btw this is the method I've mentioned earlier. about ASCII codes.
Private Sub txtFindName_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtFindName.KeyPress
I need some suggestions on this one. Is there any way to validate textboxes?? Like for some, you can only insert numeric characters, for others only alphabetical characters? And I wanna validate em at da keypress event. I know how to do it using coding on ASCII keys. But can anyone give...
****! I completely forgot to do that!! oh man, I'm such an idiot! I'll fix it up now. Thank you so much :)
well, using data adapters is the only way I know. If you could tell me a few alternatives, I'll look em up for sure. :)
Hello everyone :)
Okay, first off I'm kinda new to programming. Still in the learning phase. :) Started by learning some VB.NET. I've been creating this little program. It's a school/institute managment system kind of a thing. not very cool though. hehe..
Anyways, I'm having a little trouble...