|
If this is a windows app, add a timer control to your app and then in the event that happens when the timer time is up prompt for the login.
Hope that helps.
Ben
|
|
|
|
|
I'm talking about a system that will check for any user events and after a specified time, if there havent been any then it prompts for a login...What I need to know is if there is a non-intrusive way to get inside the event loop without slowing the app down. that way i can check for user events...
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
R U asking about keyboard and mouse activities alone?
If U R concerned with the applications too, please remember that there R background process that will run always.
Regards,
Arun Kumar.A
|
|
|
|
|
They need to be event from the application itself...they may use the computer for other things, but if they are not active with the application for a period of time then they will be logged out and will need to log back in.
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
So why won't a timer work for this? I am having a hard time understanding why you think a timer component would somehow interfer with the application. When a timer component is started in runs on a sepparate thread and calls back to the application when the timeout has occured. If the application does some event all you would have to do is set enabled = false and then back to true to reset the timer period. I think this would be a pretty good solution for you, but perhaps I don't understand something.
Ben
|
|
|
|
|
I guess my question is more along the lines of how would i know when the application had last raised an event without stepping in the middle of the event loop...A timer would work fine for figuring out when to show the dialog if an event has been raised...but how would I know when the last time an event was raised for my application?
Sorry if I was unclear or rude...I appreciate the help, Thank you very much, and thank you also if you know of any way to do this.
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
I want to know how I can make a button do somthing like add "1" (eg, change 0 to 1. 1 to 2, etc.) to a numerical field, and subtract. Of course, there will be diferent buttons that eithradd or subtract the different values..
I'm basicly making a counter. There will be multiple buttons, like Add 1, Subtract 1, Add 10, subtract 10, etc, and a reset button to return it to 0.
Also, I plan to make a version where there will be 3 add buttons and 3 subtratc buttons, and a numerical field aove them allows you to customize the buttons effect on the number.
Can sombody tell me wha code to use for all this junk?
|
|
|
|
|
Gee - this seems to me like it's probably homework. I really don't see how I can respond without giving you code, which I don't want to do, if it's homework. What do you have already ? It does seem to me that if this is not for a class, you should be buying a book that teaches VB.NET on the console and working through it before you move to WinForms. And, if it's a class, your texts should tell you how to create a member variable, etc.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Nah, it aint homerok. I sit myself down with books and teach myslef codes, dont care to spend cash on classes...
But none of them books have anything on this,,,
|
|
|
|
|
All of the books will tell you how to create a member variable, and how to change the value of a variable. That's all you're asking for here.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Take the variable public or private which you want to modify. For example
Dim Var1 as integer or
public var2 as integer
now add following code on click event of button
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
var1=var1+1
End Sub
|
|
|
|
|
You might not want to do this again. You essentially gave him 3/4's of the code he needs. Nice Job! He didn't learn a damn thing! Have fun doing his next assignment for him...
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi!
I have a cuestion, i am creating forms in a access 2003, i know what this forum is to visual basic, but i usign vb to applications, this not vb completly but is similar.
Well, exist an method of get the handle id with the api functions?, i can't get the hwnd of controls in vb to applications, the function findwindow search the hwnd by title window, but controls are ignored, how i can get the hwnd to any control with api functions?, thanks very much fot your help.
|
|
|
|
|
how do i get crystal report to work on machine that doesn't have vb.net installed on it. I use the crystal report that comes with vb.net net, but it only works on my machine that has vb.net installed on it. can anyone help me or tell me what must i do to get it running on other machine with are without installation, ie. if i was to run just the exe file on that machine. what must i do, please help.
Nab
|
|
|
|
|
You need to have the crystal reports runtime on the machine you want to see the reports. If your using a setup kit to make the installation then add the crystal reports merge module.
Have a look at these two links Link 1[^] Link 2[^]
JustmeNick wrote: can anyone help me or tell me what must i do to get it running on other machine with are without installation, ie. if i was to run just the exe file on that machine
You will need to have the runtime installed on the machine, you could probably check if you get a separate installation of the runtime files.
Last modified: 4mins after originally posted --
|
|
|
|
|
Can any one give me information abt sql server 2005 (inbuild of VS2005)
such as
how better than other
Maximum size of database,table,row
|
|
|
|
|
You automatically get sql express with vs2005. This is not a full blown version of sql server.
Here's some basics:
Supports 1 CPU, but can be installed on any server
• 1 gigabyte (GB) addressable RAM
• 4 GB maximum database size
Here is a link:
http://www.microsoft.com/sql/editions/express/features.mspx[^]
sql 2005 and sql express 2005 both support an 8K row.
Hope that helps.
Ben
|
|
|
|
|
I've got a VB DLL (VB6) that displays a form with an MSHFlexGrid control that we allow the user to edit. We are displaying combo boxes, text boxes, and other controls to allow the user to edit the cell data when the user clicks in the cell. We've got code to adjust the size and location of the text box and combo box so it is as close to the size and position of the cell. What I'm finding, however, is that with some cells the size and position of the control is pretty close to the cell's size and location. In others, however, the position is noticeably off (as much as half the cell width and height). Here is the subroutine we are calling to position the text box. The code for positioning the combo boxes is similar.
Private Sub ShowMyTextBox(myText As TextBox)
On Error GoTo ErrHandler
Dim strTitle As String
strTitle = "frmSettings_ShowMyTextBox"
With myText
.Width = MSHFlexGrid1.CellWidth
.Left = MSHFlexGrid1.CellLeft + MSHFlexGrid1.Left
.Top = MSHFlexGrid1.CellTop + MSHFlexGrid1.Top
.text = MSHFlexGrid1.text & g_FirstTextChr
SelectText myText
.Visible = True
.SetFocus
.ZOrder 0
End With
Exit Sub
ErrHandler:
HandleErrorMsg strTitle, Err, IDS_ERR_MSG2, vbExclamation
End Sub
The SelectText line above just selects all the text in the text box. The HandleErrorMsg line is just a sub in a BAS module that logs error information to a log file.
My question: Is there a better way to position the control over the cell so the difference in the cell's size and position and the control's size and position isn't so noticeably different?
-- modified at 17:34 Friday 27th April, 2007
|
|
|
|
|
Is there a way to notify the user :
Low disk space (on HDD)
Regards
Ramy
|
|
|
|
|
Here is how you do that:
MessageBox.Show("Low disk space (on HDD)")
However, the answer to your question is so trivial, that I guess that you want something other than what you actually asked for. What do you really want?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello
I m having a string type variable consisting values in sequence
like 1,4,7,9
so how the value can be retrieve one by one to pass it to one function
say DoThis(value)
Any help would be highly appreaciated.
Thanks.
|
|
|
|
|
Use Split function to split the string by "commas".
convert the resultant array into integer and pass them to the function.
Regards,
Arun Kumar.A
|
|
|
|
|
Hey, name the subject as the correct wording.
Don't post with the subject as Urgent.
Try as Arun Kumar Said it will work fine.
Regards,
Satips.
|
|
|
|
|
Hi!
I've created a COM DLL in VC 6. When I use this in VB 6.0 it works fine.
But when I use it in VB.NET it gives me error which says "catastrophic failure"
Can anybody help me out?
Regards,
Nilesh
-- modified at 8:48 Friday 27th April, 2007
|
|
|
|
|
One possible problem is the threading model that VB.NET uses, try setting it to STA. Just a stab in the dark.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|