|
I want the name of user which is login.
I m login with Guest Account and I m running my application as administrator then how to Get the Login User Name (Guest).
If you can think then I Can.
|
|
|
|
|
Again, Environment.Username returns the name of the user that is running your code.
|
|
|
|
|
Environment.Username returns the name of the user that is running your code.
But i want to know where from i m tring to execute it.
Just Follow these step.
Goto Guest Accout then Select Exe and Right Clink on them. then Use the Option Run as administrator then enter user name and password.
In that case how can i get the login user name.
If you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: In that case how can i get the login user name.
You can't. It'll still come back as Guest because the profile for the admin account you used isn't loaded.
|
|
|
|
|
Thank you sir
If you can think then I Can.
|
|
|
|
|
Have a look at .NET security configurations. You would need to assign your account necessary privileges.
|
|
|
|
|
check my post
If you can think then I Can.
|
|
|
|
|
Dear Friends,
I hope you all will be doing well. I am working on a project of "fabric inspection machine". I am using microcontroller atmel 89c52 and I want to get the data from the pin of microntroller in visual basic 6.0 but I don't know how to interface the hardware in visual basic 6.0. Actually I intend to design a counter(forward and reverse direction both)to count the meters of fabric.Is there any of you who can guide me in this regard????
Thanks and best regards.
Asad Saeed Khan.
(PAKISTAN)
|
|
|
|
|
Good Morning Asad
I think everyone would have given you an answer to your question 1 minute after you have posted this here. The Problem with the technology that you are using is that its old and not supported by microsoft anymore. if think in .net what you request could be achieved at ease. let me ask a question to you Asad. Why are you still using VB6 in 2009?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I want to display some texts on Splash Screen. How to display it?
Any samples?
Thanks
|
|
|
|
|
A splash screen, like any other form in VB.
Open the form designer and add labels etc. as required.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Hi, I posted earlier about a problem im having with VB code that ive taken over. Ive resorted to messing with the code. Basically theres an asp page with vb code which creates a new object. That object is a dll that i have registered with regsvr32.exe. That all works fine. But Im having a problem that when I make a change in the project and compile the dll, i cannot overwrite the old one because it is in use. I have tried unregistering it with regsvr32.exe /u but it doesnt seem to take effect until i restart.
Now i obviously cant restart everytime i want to try a change.
So how do I do this?
Thanks
p.s. visual basic 6 on windows server 2000 (i was on 2003 from my last question but ive downgraded for that mdac problem)
|
|
|
|
|
That situation was commoningly known as "dll hell". IIS is the process that is locking the dll and you will need to reset it (stop and start) it to release the dll (or reboot). if you have multiple websites hosted by the same server, it is possible to stop just the process that is controling the website that would be locking the dll. no way around it...
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Wow, the next couple days are gonna be fun then...
Thanks
|
|
|
|
|
Ok so what ive tried is:
1)save my new dll
2)register it
3)start iis and test the site
4)stop iis
5)unregister it
6)overwrite dll with a new one
And at the point(6) it is still giving "..may be in use.." error.
Something im missing?
Thanks
|
|
|
|
|
|
Hello,
In Catia (a 3D cad application) VBA i start a Catia command - a dialog box - for which i know the class and the handle. This dialog is modal.
From the same vba macro i start a user form right after the first dialog is opened.
My problem now is that my macro get's stuck.
Is there any way to convert that dialog to modeless so that i can continue my macro?
Or how can i start and interact with the dialog and my user form?
|
|
|
|
|
gvi70000 wrote: Is there any way to convert that dialog to modeless so that i can continue my macro?
No. That's entirely up to Catia, not your code.
gvi70000 wrote: Or how can i start and interact with the dialog and my user form?
These are questions better asked on forums dedicated to Catia. It's very unlikely anyone who answers questions here on a regular basis is going to have any experience with Catia and it's object model.
|
|
|
|
|
Well..this is not about catia, it can be lets say ...excel
Any way thank you for the response
I manage to do it from VB Express.
|
|
|
|
|
im' looking for an source code for visual basic 6 to getting the machine id.
help meeeeee
|
|
|
|
|
And by "machine ID", you mean what exactly?? The machine name? SID? Motherboard serial number?? ...?
|
|
|
|
|
Hi, Ive been given a VB and ASP site to get working and Ive tried everything I can think of.
Firstly, the files I have, have worked before so its not a coding problem.
The error im getting is this:
"Requested operation requires an OLE DB Session object, which is not supported by the current provider."
It reads a connection string from the registry and then tries to connect. Now ive tried lots of different connection strings and they all give this same error. Every solution to this error that I find online is related to the code being wrong, but as stated, its not. Its the setup.
Im running SQL 2005 on Windows Server 2003. The code is all VB6 and classic ASP.
Someone suggested that I try MDAC 2.7, so I installed it, but same error.
Any help would be greatly appreciated!
|
|
|
|
|
|
Thanks.
Tried that and unfortunately doesnt work either
|
|
|
|
|
roguemat wrote: have worked before so its not somewhat less likely to be a coding problem
FTFY
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|