|
Josh McCune wrote: but I would like to find a way to display a form while the machine is logged off
Can't be done using normal methods. The logon screen is being shown on a seperate desktop. Even screen savers are shown on a completely different desktop.
You could probably enumerate the Window Stations, and the Desktops in them, to find the one that the logon screen is on. You'll then have to switch to that Desktop in your code, provided the account your service is running under has the permissions to call SwitchDesktop. You can find out more about this here[^]. Oh! There is no built in support for this in the .NET Framework BCL.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello there
My requirement is to use the "A word or phrase" option of a window inside my application. and display the result in the search result screen which I build.
Rizwan Bashir
|
|
|
|
|
I'm doing some standard date validation using the IsDate() function and have found a scenario that I wasn't expecting as follows:
MessageBox.Show(IsDate("01/Jan/2006").ToString) 'Returns True as expected
MessageBox.Show(IsDate("01/Jan/200a").ToString) 'Returns False as expected
MessageBox.Show(IsDate("01/Jan/200z").ToString) 'Returns True, unexpected!!!
Can anyone help?
Cheers, Ian.
|
|
|
|
|
I think that the "z" is interpreted as time zone zero, e.g. Greenwich mean time.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for that.
Is there a way to exclude time zone information from the text string so that 'z' becomes an invalid character using standard VB.Net functionality? I don't want to get into writing additional functions for date validation when VB.Net should be doing this for me.
Cheers, Ian.
|
|
|
|
|
Use DateTime.TryParseExact.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks, I'll give this a try.
Cheers, Ian.
|
|
|
|
|
Message Error show :Procedure declaration does not match description of event or procedure having the same name. This error message is showed in procedure
Private Sub adcVT_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
With pRecordset
If bThem Then Exit Sub
If .EOF Or .BOF Then Exit Sub
txtMaVT = IIf(IsNull(!MaVT), "", !MaVT)
txtTenVT = IIf(IsNull(!TenVT), "", !TenVT)
txtDVTinh = IIf(IsNull(!DVTinh), "", !DVTinh)
txtMaVT_DVTK = IIf(IsNull(!MaVT_DVTK), "", !MaVT_DVTK)
If !LoaiVT Then
chkVattu.Value = 1
Else
chkVattu.Value = 0
End If
End With
End Sub
- I don't find procedure having same name when I check my project
- I think there 's error dll in my pc but I don't know them. Can u help me what 's error dll or why error ?
Thank u alot !
Baggio
|
|
|
|
|
Hi Baggio,
I am just guessing here because the "smile" covered up part of the error.
I think that I had this problem once. My error was located in this part of the code:
baggioberto wrote: Private Sub adcVT_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
The problem was that I tried to type in the procedure's heading instead of selecting it from the drop down boxes. I had one letter wrong which generated the error. You can also get this error if you try to put code for a different procedure under the wrong heading.
I know that I haven't explained this very well but I'm hoping that you can figure out what I'm trying to say.
Good luck, Garner
|
|
|
|
|
Sir,
i want to know the currently logged username programically .
Thanks
|
|
|
|
|
you can get the currently logged in username with 'System.Environment.Username'
Tosch
|
|
|
|
|
|
|
A simple search would have given you lots of answers[^].
|
|
|
|
|
hello
i have to set a property map feature using google map.
and i don't get any solution that how can i link this google map with particular property.
plz help.
thanx
|
|
|
|
|
HI to all
I need a source code in any one one the following lanaguge of a program
java, VB, C, C++, VB.net
which objective is to block the web site
like diiferent "Web site blokcer"
a complete source code if any one have please please send me at
mnadeem_2000@ayahoo.com
muhammadnadeem_2002@hotmail.com
Please its URGENT
-- modified at 4:11 Friday 12th May, 2006
|
|
|
|
|
|
Hi guys
I'm implementing an application about MS Office Automation using VB.net.
How will I know that an active worksheet having some data or not in an existed excel file through our coding without specifying any cell range>
if it have some data ( ex: cell range from A1 to L8 ) then how to select the entire data?
let me know, whether we have any way to implement this.
urs
want to be best student for ever.
|
|
|
|
|
hi all,
i want to set sequence at runtime in datagrid. how can i do this. pls help
and give code also
vipin paliwal
|
|
|
|
|
hello all,
I m facing one error in my vb.net application, this error is not reproducable and pops up any time anywhere while this application is running
the error is "could not find any resources appropriate for the specified culture(or the neutral culture) on disk"
Can anybody tell me why this error popsups, and plzz give me solution to fix this error
regards,
Prasanna karandikar
|
|
|
|
|
Maybe the object you are using is destroyed
ICQ:258-235-734
|
|
|
|
|
hi,
but this doesnt happeen on specific form , this error can come up on any form, and this application is migrated from vb6 to vb.net framework 1.1, so what is the solution on this problem.
regards,
prasanna karandikar
|
|
|
|
|
follow up the scent
ICQ:258-235-734
|
|
|
|
|
I have a application which will check some data in database accroding to a timer,
I would like to show a message just like the new email/message alert box in MSN MESSAGER or OUTLOOK 2003.
How can I do that?
Besides that, how can I get the focus to my application when The checking indicate some differnece?
Thank you!
|
|
|
|
|
I have a textbox, how i can handle press "Enter" key event, i wait for help from everyone.
Thanks very much.
|
|
|
|