I have tried searching for the anwser however all I picked up were questions about time out errors. In my program I would like to implement a feature that say after 5 minutes of inactivity the program closes?
I'm writing a report scheduler that is somewhat of a clone to the backupexec scheduler and the layout can be seen in post #10 here: [URL]..It works great and saves/edits/deletes records just fine, but now i need to compare those records one at a time in a windows service that i'm writing in order to trigger automated report creation and emailing - i already have the report and i already have the code for the emailing, i'm just looking for the most efficient way to loop through the table (that i've pulled in to a dataset) and compare its records with the current date and time - if true, the event fires.
[Code]...
1stSun, 2ndSun etc are bit fields, time is a datetime, and the remainder are varchar. My service checks the database every thirty seconds.The english version of what i'm trying to do is "Connect to the database, grab the entire table (it will always only have 5-6 entries max, so i felt 30 second sweeps was okay), and If today is the 1st Sunday of the month, and it is currently 11:00:00 a.m. (could be any day or time, this is just an example) - loop through the dataset to identify if any records match the time field or greater - if they do, fire the report
Is it possible to access Application Properties of my applicaiton in run time ? Please refer the below attached image (I want to access the Title and Category properties in my application)
1. I've registered my VB 2010 Express, will it still expire?
2. Will the applications I made using VB 2010 Express expire after some time?
3. Is it OK to write my code in the designer.vb file? I don't know why, but when I started writing my application it took me to the designer.vb instead of form1.vb code.
4. I've been working on an application for a week now, but suddenly I can no longer access my Design View(Shift-F7). All my codes are written on the [form name].Designer.vb. I can still view my codes but I cant access my form layout. On the solution explorer, my forms no longer have the 'form icon'. When i press Shift-F7 nothing happens. Right-clicking the form on the solution explorer doesn't show 'View Designer' option. How can I fix this?
I would like to set my application to show system under maintenance if it hit the start time until the end time which i set in the xml (24 hrs). How do i code it. [code]
I have just done my program, just skeleton not completely, the final problem has not been solved up to this time.When I run my application, the Icon of its will be showed at TaskTray. I would like the icon is there when I exit fom of application and then If I double click on the Icon, the application will be showed.
I'm making a Library type app which needs to scan the whole computer when it is run for the first time. Not again ever. How can I accomplish it?I'll be using SQL database to store data. So, I can easily make a table there and store a flag and check it on first run, but is there any other way? Any native support for this in VB.NET?
REASON : my program have many projects , and some of them relative about interface . If i change one , but when i call this from other project then, the change won't affect. and it takes several times , it may work.
My objective is to connect my application to a database for the first time. I've never done this before so it's essentially a learning exercise. Within visual studio i've followed the "Connect to database" in the Tools tab and followed the connection wizard. My understanding is i need to connect to my local sql server (this may be incorrect) and i cant find it. I'm not sure how to even get started, what do i need to download in order to create a database on my laptop?
I would like to get the idle time of my winforms application (not the system). This will enable me to update the database to show which users are online/offline amongst other things.
Is there a quick and easy way to get internet time/date to use in a net application?
I need it for creating a 15 day trial application, if i use local time/day user can simply change date before install and revert after. Using internet time i can simply add 15 days to it. VB.NET to C#
I'm trying to save my application settings at run time, but im not noticing any change in the application settings window. Basically, whenever a change is made to the price of a room, i want to save it to the settings so it can recalled later on in run time and when the program is started up again at a later day. Heres the code im using;
I achieved all functionality what was needed but my issue is creating and disposing the object is time consuming.Is there any method by which we can make it faster .
I am using word object for spell checking in richtextbox
I want to create a program that will close itself when the user was idle(not touching/moving the mouse and keyboard) for about 5 minutes...but I have a problem in how to track a user's idle time so that I could set the closing action. Could anyone give me a simple example?
I am using vb.net in which I have put the background image to every form. The image size is 1024X768. When I open the form it is taking too much time to open. and screen is fluctuate.
i am using MS access as my database and VB.net(2008) as my programming.my table has four columns.my table name is myRecordtbl and the columns are ,myid, myname, starttime and endtime.now i know how can i insert into table. but i got hard how to display times then i can choose to insert into my table.the time should be in the form of Hours:Minutes:Seconds AM or PM with up and down arrow.then when i select the time and hit ADD, it should insert into my table.
I have looked through couple of threads about making the trial application to be expired within certain time. Most of the advice is to set a timer and store it in somewhere in the system with encrytion. Then later decrypt and compare with the date installed in the system.
I am starting a new project in VB, a card game modelled to be similar to a real card game.
I have the majority of the program planned out and have even started coding parts of it; my problem comes with the networking.This is a real-time card game (not turn-based) and I want to be able to play with real people (family mostly, so over LAN is what I'm after).
I have tried searching for code samples but I everything I have found seems more complicated than I feel is required for the task, introducing a lot of new concepts and not explaining them.
What I'm after is a simple way to exchange the information in real-time, I don't care so much for efficiency (at the moment) just ease of use - though if I need to wade through a heap of documentation I will. A perfect answer would tell me what the names of some of the controls/methods that would be appropriate are, even if it just re-affirms a bit of the complexity, you do not have to detail anything if you don't want to I just feel a bit at loss as to what exactly it is I am looking for!
I am in need of a small application, that will allways be topmost and will send keystrokes to the last active application (typically notepad or an explorer window). My problem is retrieving the current active form (or application), when my application is started up. Every search seems to return old and rather complex solutions using Win32 library functions, but I was kinda hoping, that .Net allowed for a neater and more simple solution.I need a code example or link on how to retrieve the currently active application window from another application just starting up.
I have an application that consists of about 4 screens. Screens can be changed by clicking on buttons or via menu item. I use about 16 to 17 tables in all for all 4 screens. I've publised the application and it works fine except that it takes about 1 1/2 to 2 minutes to launch the application using the setup file that I save onto my PC. If I get lucky, a little over a minute is already fast for me. What can I do to help speed up the launch time?
I like to make an console application to measure the time it takes to fully load a web page, what's the best approach to do that? The purpose of this small app is to monitor some pages in a website, in a predetermined interval, in order to be able to know beforehand if something is going wrong with the webserver or the database server. It would be nice to be able to measure the time it takes to fully load the the page (images, css, javascript, etc). I have some code but I is not measuring the fully page.
Dim sw As New System.Diagnostics.Stopwatch Dim req As System.Net.HttpWebRequest = CType(HttpWebRequest.Create("[URL]"), HttpWebRequest) sw.Start() Dim res As System.Net.HttpWebResponse = CType(req.GetResponse(), HttpWebResponse) sw.Stop() Dim timeToLoad As TimeSpan = sw.Elapsed