|
Hello........
I am beginner in c# programming, want to know when we feed a text box then which event occurs and how does it work. Kindly explain it in detail.......
Soon reply will be appreciated.....!!!!
Thanks...
|
|
|
|
|
Please get yoursel a good book on the subject; posting questions here is not the way to learn programming. For a start you could read .NET Book Zero[^], and then work through these tutorials[^].
|
|
|
|
|
Please post C# questions in the C# forum[^].
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em> ProgramFOX
|
|
|
|
|
Hello..........
I am beginner in c# programming, want to know How does this code executes. Kindly describe in detail.
!System.Text.RegularExpressions.Regex.IsMatch(e.KeyChar.ToString(), "\\d+")
Soon reply will be appreciated.....!!!!
Thanks....
|
|
|
|
|
Calls the method "IsMatch" on the Regex class (from the "System.Text.RegularExpressions" namespace), with the arguments of the current keycharacter (provided by an event you did not copy/paste) and a RegEx. Then it inverses the outcome.
Not very helpful, is it? It compares a key with a RegEx and reports whether they match. You'd have to look up the "\\d+" part on this page[^] from MSDN, I don't know the regex-code from my head.
|
|
|
|
|
It tests whether the e.KeyChar property (which is presumably a char ) is not (note the ! at the start) a decimal digit.
It's a significantly less efficient version of:
!(e.KeyChar >= '0' && e.KeyChar <= '9')
or:
(e.KeyChar < '0' || e.KeyChar > '9')
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello..........
I am vipin saini,beginner in c# programming, want to know how to add masked text box to my visual studio toolbox control?????
Early reply will be appreciated!!!!!!
Thanks...
|
|
|
|
|
Member 9621354 wrote: beginner in c# programming Did you notice that this is the Visual Basic forum? Also a Google search for "masked text box" should find you some useful reading material.
|
|
|
|
|
my youtube video downloader app was working but it stopped working due to Dec-2012 YouTube changes. my code is unable to load the download format.
Currently, the video info loads but the application is unable to load the available download formats and download the video.
Download the VB6 Source here http://www.abhisoft.com/misc/UTubeVB6.zip
I hope anyone is able to take a look at the code and see what's wrong?
I think the error is in here:
DownloadRequest.Open "GET", m_StrVideoURL, True
|
|
|
|
|
You're not going to get help with this. Downloading video from YouTube violates their terms of service and we're not in the habbit of breaking those.
|
|
|
|
|
Hi all,
It's my first question in this forum...just read a response to another guy that helped me a lot.
I am working for some project in my university and they asked me to make an application in vb.net. Then I had to save different data for every user in order to check his own work, so I used SQL management studio to import some information to arrays there.
The big problem that I face now, it that they would like to work this project online, so as users can open it through their website. I have no idea if all the code I wrote in vb.net and connections between VISUAL studio and SQL studio could be transfered online ! Maybe I could convert most of them so as to run the project online.
Can anyone help me ????
I would really appreciate every advice or help !!! I am searching for a solution so as not to lose my project( that I almost finshed ).
Thans in advance !!!
|
|
|
|
|
Without knowing what your project does, it is hard to determine how to go about this..
Basically, you would need to develop a web page which collects the data and stores it in the database your already have configured.
It can be done. More details are needed. (Desccribe what data is collected and stored)
Good luck.
|
|
|
|
|
We have many VB2008/2010 programs converted from VB6.
They used the VB6 Control Arrays (which I really miss).
The VB.Net code uses VB6 compabitity control arrays which works well but hard to maintain if new control arrays are needs.
We have begun replacing these with List (of ..) and AddHander's which also works well.
What we would like is for our code to populate the list ofs and do the AddHandlers to be done when the InitializeComponent is done.
So how can we 'extend' the IntializeComponents to our code or have our code run after the InitializeComponents.
Thanks
|
|
|
|
|
QuickBooksDev wrote: So how can we 'extend' the IntializeComponents to our code or have our code run after the InitializeComponents.
The "best" way is to not modify the call; it's there for the designer, and anything in there is autogenerated (it will be overwritten, removing your modifications).
Add a virtual or abstract method to an empty form, and call it from the constructor. Next, inherit your forms from this new one.
|
|
|
|
|
Modify what call.
I am looking for a way to invoke our 'DesignerExtensions' automatically. I know not to change the designer.
What is a Virtual or abstract method. What constructor? There are none what we have coded.
We have several programs with multiple forms that we need to do this on.
Can you please give concrete examples?
|
|
|
|
|
QuickBooksDev wrote: Modify what call. "InitializeComponents". Don't modify it's contents.
QuickBooksDev wrote: What is a Virtual or abstract method. Aw, sorry for using C#-terminology; it's called "Overridable" in VB.NET.
QuickBooksDev wrote: We have several programs with multiple forms that we need to do this on.
Can you please give concrete examples? Take an empty form, and modify it like below;
Public Class BaseForm
Sub New()
InitializeComponent()
InitializeVB6Handlers()
End Sub
Public Overridable Sub InitializeVB6Handlers()
System.Windows.Forms.MessageBox.Show("Boo!")
End Sub
End Class Next, change your existing form to Inherit from the BaseForm like below;
Public Class Form1 : Inherits BaseForm
End Class This would give you a method that's called when the form is constructed (just like InitializeComponents), and give you the option to override it's implementation for a specific form;
Public Class Form1 : Inherits BaseForm
Public Overrides Sub InitializeVB6Handlers()
System.Windows.Forms.MessageBox.Show("No Boo today")
End Sub
End Class
|
|
|
|
|
Thanks will give it a try.
|
|
|
|
|
Seems to work.
Will start implementation.
Thanks
|
|
|
|
|
You're welcome
|
|
|
|
|
I wonder why you wouldn't just call your customized initialization from within the Load event in your source code for each Windows Form. Doing so, you don't have to touch the Windows Form Designer generated code file (*.Designer.vb).
Or am I missing something?
|
|
|
|
|
We were.
But there are times when things need to be checked in various controls before the form is show or brought up. When this occurs the List ofs are not initialized (value of nothing).
With the VB6.compatibility for control arrays they were inititized in the designer so no problem.
Just looking to make it all work the way it was.
|
|
|
|
|
I am attempting to include a Microsoft Graph control on a tab on a form in my Access 2007 application. I have given it a query as a Row Source. What else is required?
|
|
|
|
|
|
How to Select .pdf file from a folder in to DriveListBox in vb6.0
|
|
|
|
|
Selecting an item in the UI? By clicking on it. There's some old documentation on the DriveListBox[^].
VB6 is a dead language; I strongly recommend upgrading to something more recent.
|
|
|
|