VB.NET Selective Code Activation???
This is my first post on this forum, but I am a long time fan of this site. I would like to thank all those who offer help, especially to noobs like myself. Now on to my question.
I have a program in VB.NET with the option to open two different files, one is an excel and the other is notepad. Each contain relevant information that is extracted using various user selections via buttons. What I want is to use the same buttons for both file formats, though the actual coding of what the button does for each differs. The two files are not opened at the same time.
For now I am trying to set it up where, if you open an excel then the coding on the button only works for the excel and vice versa with notepad.
Can anyone give me some help regarding this? Thanks.
Re: VB.NET Selective Code Activation???
Just to make sure I'm understanding the question, your wanting to have 1 button work with 2 different file formats, but not at the same time? If that's correct there's a few different ways to go about this depending on what your wanting. Since your going to have different instructions depending on the file format your working with, I would create a function for each file format that you want to use and if your wanting to only work on 1 file format at a time, i would have radial buttons for you to tell the program which way to go about it. So for this it would be something like:
|All times are GMT +5.5. The time now is 06:40.|