|
Thanks a lot for trying
I got the Solution
TabControl1.SelectedTab = TabControl1.TabPages.Item(1)
or
TabControl1.SelectedIndex = 1
|
|
|
|
|
following your reply, I understand right now your question.
I thought that you want to make visible the 2 others tabs after clicking on the button, and that is not possible.
When you said visible you mean select them.
Try to be more clear at next time, you may saved time because I knew how to do it before.
Shay Noy
|
|
|
|
|
hey guys,
kindly help me here. i'm a beginner in using vb.net. so i'll just ask a very simple question,hope you can help me here..
How can i hide my mouse cursor on one of my forms. I add a splash screen on my project, then my mouse cursor still shows even if i already inputted use showcursor(false) on my form's code. i think i had a problem with my code i got from the internet that says "use the API".
Can you give me a full code and on how will i use it on my project?
Thanks a lot guys..
|
|
|
|
|
I got a solution which may be helpful
I have a Splash Screen and Form1
In Load event of Splash Screen input as Windows.Forms.Cursor.Hide()
But when u get to form1 then u should make it visible in the load
|
|
|
|
|
got it! thanks!
this is just what i need..
|
|
|
|
|
I am writing an application that uses multiple forms but with only the start-up form showing in the task bar. I would greatly appreciate it if anyone could tell me how I can hide all forms when the start-up form is minimized, and then show them again when the start-up form is restored.
Thanks
|
|
|
|
|
Hi,
AFAIK when you show a main form, and it shows additional forms with either Show() or
ShowDialog(), you can pass an optional reference to your main form as the one argument
of Show()/ShowDialog(); if you do, all slave forms will follow their main form:
when the main form is minimized, so are the slave forms; and when the main form is restored,
so will be the slave forms. That is what form ownership is about.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Thanks Luc
I've only been programming for a few weeks and hadn't come across form ownership
before, so I appreciate you pointing me in the right direction.
Dave
|
|
|
|
|
Hi i'm just trying to find out if there is an easy way of creating custom wizards to gather user input in a windows application using VB.NET 2005. I have looked all over and only have come across something called magic library and I have no idea how to use the control as it does't give any steps to creating a wizard(at least with the version I found)
Mr Oizo
|
|
|
|
|
|
Hi, i clicked the link and apparently that page isn't available anymore if you know of anywhere else then please let me know
Mr Oizo
|
|
|
|
|
|
I’m currently using vb.Net 2008 to code an old VB 6 system at our organization,
I’m using the LINQ feature and strictly three tiers Architecture to program.
Yet I need some clarification on stored LINQ procedures ,
I would like to convert all my LINQ procedures to stored LINQ procedures,
Please Help?
Oh and if the is any other associated features that VB 2008 has please specify so that I can use these features with LINQ and DLINQ
|
|
|
|
|
ozzyrocsdbn wrote: I would like to convert all my LINQ procedures to stored LINQ procedures,
There's no such thing as a "stored LINQ procedure". What are you talking about?? Using LINQ with your database's stored procedures???
|
|
|
|
|
Please illustrate an example because I don’t really understand that LINQ could be so abstract, and that level of abstraction could use a stored procedure. Vb.net code and stored SQL query
|
|
|
|
|
An example of what?? I have no idea what you want.
Again, are you trying to use LINQ with a stored procedure in a datbase???
|
|
|
|
|
I am deploying a program. Using the windows installer, I am installing my program to a certain area on user's computer. I set a default pat as EX: C:\Program Files\programName
In my program I have files also saved there. To open those files I have hardcoded (Not proper programming style) these paths in order to access data in them. What if someone changes my default path on the Window installer, Installation Folder, window.
How do I get the path that was put in so I can put it in a variable to use in my code?
|
|
|
|
|
Check into Application.StartupPath .
|
|
|
|
|
hi everyone
i want to create a zip file which include specified Directory & subdirectories.
during searching on net, i does not find proper result.
how can i zipped a folder ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I've never had to zip programatically before, but I have had to unzip. I did it by creating and executing a batch file that ran an unzip program (the one I used was winRAR, but I'm sure winzip would have something similar) through parameters. I was able to pass parms that ran the program in a silent mode, but you could still see the dos screen flash for a moment. It wasn't a very pretty solution, but I only needed it to work for a one time thing. Perhaps the best place to start your search for more information is documentation on winzip or some other zipping program.
Hope this helps.
|
|
|
|
|
|
First you have to install wzcline (winzip add-on).
Const pathWinZip = "C:\...\Wzzip.exe"
Shell(pathWinZip & " C:\1\1.zip " & "C:\1\*.*", vbHide)
OR
'This is better because until the zip is not totally completed the program 'will not continue to the next statement.
'The only problem is that a prompt command window popup for a few second and 'close itself. I don't know how to hide it.
Const pathWinZip = "C:\...\Wzzip.exe"
Dim WSHShell As Object = CreateObject("Wscript.Shell")
WSHShell.exec(pathWinZip & " C:\1\1.zip " & "C:\1\*.*")
'waiting for zip end task...
WSHShell = Nothing
explanation: all the files that are located in C:\1\ will be zipped into C:\1\1.zip
Hope it helps
-- modified at 2:15 Tuesday 18th September, 2007
Shay Noy
|
|
|
|
|
This code relies on the user having WinZip installed. Not good bet in my book. Using a library that's compiled into his own app removes that dependancy.
|
|
|
|
|
Thank you for your help
Shay Noy
|
|
|
|
|
I have a vb.net project that connect to a Ms Access Database on network.
( Dataset is created using wizard)
When i open a forms or a crystal report the application is very slow.
What can i do to speed up the application ?
Thank you
|
|
|
|