|
I undertood your method and I had thought about this before. But my professor didn't agree. I also thought about using autonumber type to make the value. But I tried to use the function CreateKey because the character in StudentID have their meaning, I want to manage them. But I don't have time to think about it anymore. I need to finish this project before March. So I let the Administrator chose the value of StudentID finally. And one more thing, my project didn't mention about Student and Class. I tried to make thing easy to understand and someone could help me. Thanks again !!!
|
|
|
|
|
Sorry Guys/Ladies... this is a really basic question and you will probably scoff and laugh... I haven’t done any coding in 10 years much less any in VB.Net.
My question is related to a form I have built to return values from a directory. I need the box populated with the file names from a given directory and then populate the second combo box with the selected field in the first combo box...
Sorry for such a basic question, but if possible please help??
|
|
|
|
|
System.IO.Directory.GetAllFiles ( from memory ) will return the filenames. You can use an array as a data source for a control.
The combo has a selected index changed event, you can use this to pass data to the second combo.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi All,
Is there a way to display a form kinda frameless (without the blue bar going across the top and sides making is look like a new window and saying form2 on it)
Thanks in advance
Jaidev
|
|
|
|
|
Yes, set the FormBorder property ( from memory ) to none ( again, from memory ). It's along those lines.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I know the way to listing or enumerate sql server from my lan...
But is possible to listing or enumerate DB2 Server via VB or VBA???
|
|
|
|
|
How do you get a program to start @ windows start-up?
|
|
|
|
|
You would have to create a registry value in the HKCU\Software\Microsoft\Windows\CurrentVersion\Run key. See here for more information.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Or you can copy/move your program to the startup folder and it will start up as soon as you logon.
To access this folder you press start>> then
Programs>>Then startup>> then right click select open or explore.
With the registry keys you can use:
Local machine(Which starts the program for all users)
hklm/software/microsft/windows/run
Current user(Which starts the program for only the currently logged on user)
hkcu/software/microsoft/windows/run
Hope this helps!
|
|
|
|
|
Thanks for your replys....
|
|
|
|
|
I can see that I can use this to create a new tab page
But how can I make the Tab Page public?
TabControl1.Controls.Add(New TabPage("New Tab")))
Thanks
|
|
|
|
|
You would do it like this:
Declare the TabPage: Public ATab As New TabPage .
Then create the new tab: Me.TabControl1.Controls.Add(ATab) .
Hope this helps.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
|
cstrader232 wrote: But how can I make the Tab Page public?
You can't.
Objects aren't private or public, as you can never access an object directly. You only access objects using references.
You can declare a public variable that is a reference to a Tab Page, and assign it the Tab Page that you create.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi All,
I want WMP to set my timers off, everytime the 'play' button is clicked. However I cannot seem to find what the name of the intergrated 'play' function is.
for e.g.
Private Sub AxWindowsMediaPlayer1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxWindowsMediaPlayer1.Enter
If numberofcalls = 0 Then
Timer1.Enabled = True
End If
If numberofcalls = 1 Then
Timer2.Enabled = True
......etc
In this code timer1 is enabled when play is pressed right at the beggining, but when play is pressed again, timer2 doesnt seem to work (be enabled).
Thanks in advance
Jaidev
|
|
|
|
|
WMP has an event for the change of status, this can tell you when you're playing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
how do I use this event to verify that the wmp is playing?
|
|
|
|
|
Because 'playing' is one of the states that gets reported to the callback.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have been struggling to find information on how to achieve the following.
My small app creates a folder on the file system. I then want to run an instance of Windows Explorer and show the folder. I want to do this in a way so that Explorer will keep running even after my app is terminated.
I assume this is achievable and apologise if it is trivial.
Cheers
Tim
|
|
|
|
|
TJO1 wrote: apologise if it is trivial.
Nothing is trivial, until you know how to do it
Process.Start("c:\") should, I believe, open explorer at the c drive.
I think it's in System.Threading.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Process.Start("c:\") should, I believe, open explorer at the c drive.
Thanks very much Christian. You are spot on.
I doubt if I would have found this in a month of Sundays.
Cheers
Tim
|
|
|
|
|
i am using VB.net for the first time on a data project. I have used the built in functions to put data in a DataGrid. Now what I need to know how to do is when user types in a text box use that to narrow results.
Any examples or help is appreciated.
|
|
|
|
|
|
Hello guys
help with following
having a folder ,containing many subfolders with the following names
folder 1 :2007-1-30
Folder 2 :2007-2-1
folder .....
how can write a function to let the user : specifies which subfolders to delete
i mean :if the user wants to delete everything with the name before:2007-2-20
algorithm: after choosing a date from the calendar ,delete all the subfolders where their name are inferior from the chosen date
what about the following code.what should i add to it
Dim mydate As String, mymonth As String, myyear As String<br />
mydate = Me.DateTimePicker1.Value.Day.ToString<br />
mymonth = Me.DateTimePicker1.Value.Month.ToString()<br />
myyear = Me.DateTimePicker1.Value.Year.ToString<br />
Dim dir_info As New DirectoryInfo(Path)<br />
dir_info.Delete(True)
Regards,
Regards
Ramy
|
|
|
|
|
Hi,
I have to select the value in datagrid and get that selected value in textboxes and update and delete the values from the textboxes.Please tell me how can i do this in vb.net 2003.
|
|
|
|