|
There's no reall good way to do this. But, check into the Application.Idle event. This fires just before the application is about to, well, go idle. When it fires, setup a Timer for 10 minutes and enable it.
The problem comes in where there is no Application.WakeUp event. So, you'll have to also check into the Application.AddMessageFilter method to add a filter that checks to see if the Timer is running, then looks at the message to see if it is a keyboard or mouse message, and upon seeing one, disables the timer.
In the Timer Tick event, add your code to "reset your password".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm using VS .NET 2003, and I have an application with a bunch of menuItems. When the mouse goes over these menuItems, I want to change the status bar on the bottom to describe what clicking on that item would do. However, the menuItems don't have a mouseOver or mouseHover event associated with them. Anyone know if I'm missing something here, or if I'm not, can anyone help me out with adding this functionality programmatically?
|
|
|
|
|
|
I have a datagrid that you need to scroll to see all the columns. However, the first column identifies what you are looking at, so when the user scrolls I'd like to "freeze" the first column so it does not scroll. Does anybody know of any code that would do this. If not, does anybody have an idea of how to go about enhancing the class to provide this functionality?
Thanks,
Ron
|
|
|
|
|
all,
can anyone tell me how to expose nested classes to consumers via .net webservices?
Thanks
"Opportunity is missed by most people because it is dressed in overalls and looks like work."
- Thomas Edison
|
|
|
|
|
I have a small application, doesn't do much, but I have the main screen that pops up with name mainScreen. When I click on a menu button to show another form, in the click event i have
Dim f as New Upload <--(Upload is the name of the form I'm showing)
f.Owner = Me
Me.Enabled = False
f.Show
Now, when I hit the ok button on the Upload form, I want it to hide, and then manipulate some controls back on the mainScreen form. However, I don't know how to reference it. I can't just say mainScreen.control blah blah, and I can't use Me.Owner to get to the controls either. I tried saying Dim f as New MainScreen blah blah but that doesn't work because that won't reference the mainScreen object that's already open, it creates a new one. How do I do this? I know it's simple but I just can't seem to find the syntax to do it
|
|
|
|
|
|
I tried this and it didn't work! I used:
Dim mScreen
mScreen = CType(Me.Owner, MainScreen)
mScreen.TextBox1.Text ...blah blah
but it gave me an error. When I started typing mScreen.T.., you know how it always pops up with methods and memebers and stuff? all it would let me type was mScreen.GetType. It still wouldn't let me access the controls on the other form.
|
|
|
|
|
i forogot to specify, i'm using Visual Studio .NET 2003
|
|
|
|
|
|
Yes this helps. works now. thank you much!
|
|
|
|
|
Hello there,
Sorry for the code in this article, but i need it to lay out my problem, as the code i am refering to is a "complex" struct;
I have this problem with the "complex" struct. The compiler keeps telling me the following message: The object reference is not instanciated on another object. I tried loads of methods to write into the struct but nothing seems to help... can anybody help me out??
Here are the struct definitions:
<code>
<StructLayout(LayoutKind.Sequential, pack:=1)> _
Public Class ST_TeleMeBool
'-- enum unmanagedtype ByValStr = a fixed size string of 80 chars
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=80)> _
Public ID As String = ""
<MarshalAs(UnmanagedType.I1)> _
Public Value As Boolean
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=80)> _
Public Qualify As String = ""
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=80)> _
Public TypeB As String = ""
End Class
</code>
<code>
<StructLayout(LayoutKind.Sequential, pack:=1)> _
Public Class ST_TelemeOut
'-- enum unmanagedtype I2 = a 2 byte signed integer (aka short / system.int16)
<MarshalAs(UnmanagedType.I2)> _
Public CountBool As Integer
'-- enum unmanagedtype ByValArray = an array of which the maximum elementsize MUST be specified (sizeconst)
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=1000)> _
Public bArray(1000) As ST_TeleMeBool
End Class
</code>
>>> Basicly, the struct ST_TelemeOut consists of 2 elements: CountBool as int and bArray(1000)of ST_TelemeBool.
As written before, i need to fill the main structure ST_TelemeOut;
<code>
with ST_TelemeOut
.CountBool = 100
end with
</code>
This causes no problems, however, when i access the array of structs, the difficulties begin....
<code>
With ST_TelemeOut
For i = 0 to .countbool
.bArray(i).ID = "My ID" & i
.bArray(i).Value = True
.bArray(i).Qualify = "My Qualifier" & i
next i
end with
</code>
The first codeline within the for loop allready crashes....
can anybody tell me how i need to write values in this struct??
If you make something idiotproof, someone else will make a better idiot.....
|
|
|
|
|
Please, can anybody help me out on the previous mentioned problem??:
symantically there is nothing wrong with;
<br />
StTelemeout.bArray(0).ID = "Test"<br />
But the complier seriously does not like it at all..
what am i doing wrong here??
If you make something idiotproof, someone else will make a better idiot.....
|
|
|
|
|
PROBLEM SOLVED <<<<
This is the correct way to tackle the problem;
<code>for i = 0 to 4 do
with sttelemeOut
sttelemebool.id = "blabla"
.bArray(i) = sttelemeBool
end with
next i </code>
If you make something idiotproof, someone else will make a better idiot.....
|
|
|
|
|
does any one know any usefull link or tutorial or code to develop a simple peer to peer application?
Thanks in Advance
Mahmoud Manasrah
|
|
|
|
|
i just want to know how programing on using com port.....
i want the device to send a data from my device to my vb interface....
my device is using micro controller
okies..thankss
ii
|
|
|
|
|
|
Hi All
I am using microsoft's web browser control in my application.
There is a bug in this component. In the application where i am using this component, the situation is like explained below.
I have a MDI Application with some forms like FORM1, FORM2 etc.
Lets assume that FORM1 has got web browser component, so when i load FORM1, it shows correctly and works normally. But incase i make the visibility of FORM1 to be false and show another form FORM2 and after some time make the FORM2 invisible and FORM1 as visible, web browser control crashes. It looks like a White Painted Window without a border and with no contents in it ( however there were contents in the form when it was made invisible) and also the control is in a dead state ie we cant do anything to it.
Any Solutions?
Sumit Domyan
|
|
|
|
|
Is there any easy way to Export data between tables with one SQL command without using DTS?
I found ExportData , i used but it doesnt work? how will i use it?
DB1.dbo.TheSameTable.ExportData (DB2.dbo.TheSameTable)
Thanks a lot I remember an Easy Way, Select Into Command then alter table for key fields
|
|
|
|
|
I have a web application that allows a use to attach a file and email to recipients. The app works fine while in debug mode, but the following senario does not work: A user at pc01 accesses my web app at resides on pc02, and tries to attach a file that resides on pc03. The file is shared amongst EVERYBODY. I gather that IUSR does not have access to this file, unless I explicitly give it access. I would like to us the page user's credentials and then authorise access to the file. does anybody know how I can go about doing this?
Thanks
|
|
|
|
|
If the file is an attachment posted by the user on PC01, then PC01 would be the authenticated user reading the file and sending it to the web app on PC03. The web server will not log into PC03 and "pick up" the file.
How are you attaching this file? Are you just giving the path to the file to the web app so it know where to find it or are you actually uploading the file to the web server in an HTTP POST?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
When I try to Add Reference of Visual Basics Package & Deployment Wizard in VB.net, i get following Error.
A reference to 'Package and Deployment Wizard' could not be added. Converting the type library to a .net assembly failed. Error loading type library/DLL.
Anybody can help me ?
Jatin Mehta
|
|
|
|
|
The Package and Deployment Wizard is an addin for Visual Studio 6, so I'm not surprised that it can't be imported. Why on earth would you want to do such a thing anyway? I can't think of a single reason to do this...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I need to use a popup alert which is similar to MSN messenger in my project. I have seen a CodeProjct article on how to do this with ASP.NET, but it works only within a web browser. I need to know how I could do the same thing in a desktop environment, where the user gets a notification via a Popup Alert, periodically.
I dont mind using a prebuilt component even, as long as it is free. If not I would greatly appreciate if someone could give me some pointers on how to get this thing started. Any development language is fine as long as it's Microsoft technology.
Thanx a lot, in advance
Eraj
|
|
|
|
|
I've never used MSN Messenger, so I have no idea what your trying to accomplish. A more complete description or the requirements would probably help.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|