|
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.
|
|
|
|
|
How do you mean 'select the value'. You want to search for a value ?
You want to update and delete what ? The grid, or the data source ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi i would appreciate it if you could show me how to search for a value within the datagrid as i am really stuck on my final year project.
thanx in advance
|
|
|
|
|
http://www.codeproject.com/cs/database/gridex.asp[^] looks helpful. You could either use the control, or look through the code to see how it works.
Depending on your datasource, you may be able to run SQL on the source, or you can iterate over the Rows collection to find the values you need.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi thanx for the link...i had a look it seems to be done in C. I have done it in vb code. i used the wizard to create the forms. Using a untyped dataset i think. all the search code ive found is for typed datasets i think...
Me.objdsDiary.Clear()
Me.OleDbDataAdapter1.SelectCommand.CommandText = "Select * from 0830 where AppointmentDate like '%" & Trim(Me.lbl2.Text) & "%'"
Me.OleDbDataAdapter1.Fill(Me.objdsDiary)
or
Adodc1.RecordSource = "Select * from secretary where club = """ & txtSearch.Text & """"
Adodc1.Refresh
or
Private Sub Command1_Click()
With Adodc1
.Recordset.Find "Au_Id=" & CInt(txtAuthorId.Text)
End With
End Sub
which do not work as i dont have adodc, all i have is CottageBookingSystemDataSet, TblEmployeeBindingSource, TblEmployeeTableAdapter, TblEmployeeBindingNavigator.
Ive been looking on so many forums.
|
|
|
|
|
i have found the code to search using a string,
TblCustomerBindingSource.Filter = "txtFirstName LIKE '%" & TextBox1.Text & "%'"
how to i implement it to search a int eg the primary key for customerid?
|
|
|
|