It will update it if the Value Name is already there, otherwise it will add it.
Printable View
It will update it if the Value Name is already there, otherwise it will add it.
But i want to check the value.. before adding in the start up...
On a form a check box is there... if programme is already in the start up then the check box value will be show one... other it will be zero....
is it possible?
thanks 4 reply
yep just updated the module and form again .. see modified version attached.
[the reg module is simply a stipped down version of one with tons of functions]
:bigyello:
@ Rory Thanks a lot........
send me your Yahoo Id
add this example on the form .. or modify to your needs
(or put as public in a module, or even modify the QueryValue Function if wanted) ..
example uses a Checkbox (Check1)
VB Code:
Private Function CheckValue() As Boolean If Len(QueryValue(HKEY_LOCAL_MACHINE, _ "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", _ "My Program")) Then CheckValue = True Else CheckValue = False End If End Function Private Sub Form_Load() If CheckValue Then Check1.Value = vbChecked Else Check1.Value = vbUnchecked End If End Sub
@Rory :wave: We
Done It
Thanks :thumb: :D :bigyello: :p :)
Thanks a lot.....
See The Image.... By me Thanks :)
Quote:
If Rory is here then No Fear ;) :bigyello:
Ok .. see if this revised version helps .. module called mStart contains all the main functions, the global module contains global registry functions. Examples in the Form for the checkbox and everything else you asked.
Edit: i see you got it after i posted, well done :thumb: :bigyello:
@ Rory
Thanks 4 great response....
But why u add 2 module in new file............
one module is only for the Startup functions/subs .. all private and just 3 public functions; exists, add, remove .. the other module is just a general global module that contains the Registry API Functions .. if you dont have them elsewhere you can just chuck them in the Startup module and make it one file .. could have made it a class module, but its 5am and a regular module should suffice :wave:
@rory.........
Thanks a Lot..........Again.... :)
@Rory :wave:
Another concept coming in my mind our project running at the task bar and I am showing it at startup using some code..
When we click on mouse at the start up the pop up (msn type) form appear…
And when pc start pc name saved in the database
A combo is appearing showing all pc names that are presently login….
Database is at server….
What I want that I select a pc name from the combo…..
And type a message then the message goes to another pc…. :confused:
Or directly I want to say have u any concepts of LAN chat….? :)
Thanks :thumb:
You'd want to use winsock... check the Networking forum here, or search for Winsock .. ;)
Winsock's a little more detailed as its all event related so you have to handle everything that can occur .. there's plenty of copy paste code in these forums for Winsock server & clients though.
You have any code for it.........
@Rory :)
Please Check this one what error is occuring... :confused:
run and click on connect... then type data in the text box...
The code above creates a simple client-server application. To try the two together, run the project, and click Connect. Then type text into the txtSendData TextBox on either form, and the same text will appear in the txtOutput TextBox on the other form.
But error is occuring ... please any one is able to sloe it.... :confused:
thanks.. :thumb:
Can any one check my upper project and slove the error please
thanks
@Roory
another problem occuring..
how to minimize dirictly when running a programme at the task bar...
thanks
@roory r u there please help again
some problem is occuring in my mind please read the post 56 again....
thanks................
How we check that the software is already running in the background or not....
I got the solution to check that if the software isalready running in the back ground or not..
see it.......
VB Code:
If App.PrevInstance = True Then MsgBox "This Software Is Already Running", vbInformation Else MDIForm1.Show End If
Thanks all for help...
thats what you wanted to know :bigyello:
VB Code:
Private Sub Form_Initialize() If App.PrevInstance Then Beep: End End Sub
on ur birthday i got the solution....Quote:
thats what you wanted to know
visual basic code:--------------------------------------------------------------------------------
Private Sub Form_Initialize()
If App.PrevInstance Then Beep: End
End Sub
;)
Cool mon :DQuote:
Originally Posted by shakti5385