|
If your controls are bound to an underlying business object, you could use a IsDirty property on that business object. In all the set {} accessors of each property of your business object you then set the m_dirty member variable to true, like:
public string MyProperty
{
get { return m_myProperty; }
set
{
if (m_myProperty != value)
{
m_myProperty = value;
m_isDirty = true;
}
}
Then, to save the data, you can just call the Save() method on your business object and let the business object figure out whether anything needs to be persisted to the database.
Roel
|
|
|
|
|
Thank You very much Roel.
I'm using Typed datasets in my Application.
I think the HasChanges() method of the dataset can be used to find for any changes and then commit them to the database.
Thanks.
Subrahmanyam K
|
|
|
|
|
Hello all. I am brand spanking new to this forum, and would just like to start out by requesting a program to be made that would assist my fellow employees and I at our Academic Computing Help Desk at the University of South Florida.
I am a Computer Engineering major and was looking for some detailed advice/assistance on how to design a non-obtrusive program that would reside in the system tray.
Program duties:
-starts with Windows
-resides in System Tray
-displays a balloon notification with customizable text
-pop-up balloon display at 15 minute intervals (i.e. 12:15, 12:30, 12:45, 1:00...etc.)
We use an incident reporting program called RightNow that refreshes incidents every 15 minutes.
I am SO tired of having to look at the system tray clock every split-second to see whether or not I need to refresh RightNow.
Please feel free to e-mail me @ Shoot2ill@aim.com with any feedback.
Also, if this is not the correct board to be posting requests like this, please let me know where I should go.
Thanks!
|
|
|
|
|
What are you offering to pay me? Bear in mind that this ain't Rent-A-Coder[^].
|
|
|
|
|
$30? I really have no idea what the going rate is.
|
|
|
|
|
Make it $50 & you got a deal. Will meet specs in OP.
|
|
|
|
|
Nah I don't want it that bad, lol. But thanks for the offer.
|
|
|
|
|
I dont know what is the language you are using to write your application....
I can try to help you in this regard if u opt to use VB.Net...
1.To make reside your app in System tray you have a control NotifyIcon in the control box of vb.net.
Declare a NotifyIcon like this
Private myNotifyIcon As NotifyIcon
Start your application from a Main() Module.
create a NotifyIcon at runtime.
myNotifyIcon = New NotifyIcon<br />
myNotifyIcon.Icon = New Icon("YourIcon.ico")<br />
myNotifyIcon.Visible = True
2.Declare a Timer control
Private WithEvents myTimer As Timers.Timer
3.Set up the property of that timer control
myTimer = New Timers.Timer<br />
With myTimer<br />
.AutoReset = True<br />
.Interval = 1000<br />
.Start()<br />
End With
In your case the Interval property should be adjusted like your requirement.
4.In the Elapsed event of your timer write code to pop-up the message...
Public Sub myTimer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles myTimer.Elapsed<br />
Msgbox("HELLO WORLD")<br />
End Sub
5.To make your application start with Windows you have to create a shortcut of your application's .exe file to the StartUp folder of the computer where the application will run
If you set the timer interval for 15 minutes,it will show you the message in every 15 minutes....
For Ballon display please consult with Google......
Tirtha
Miles to go before I sleep
|
|
|
|
|
hi,
I am trying to create a cyber cafe manger application.There are total 10 computer. On one (cyber cafe owners pc) you should be able to see icons of other computers, (like the icons we see in My Network Places)would be best option to do that????
|
|
|
|
|
Have you looked around on this site? I think there are articles on how to do this...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
hi
can anybody know how to resolve the problem of a trial version.
i use the trial version of a devexpress component in .net
how can i continue if the date has been expired.
regards
etretyertyery
|
|
|
|
|
tantoun wrote: hi
can anybody know how to resolve the problem of a trial version.
i use the trial version of a devexpress component in .net
how can i continue if the date has been expired.
Buy it. Trial periods exist so that you can try it out and then buy it if you like it. Attempting to circumvent the trial license would probably be viewed as illegal.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Arun.Immanuel wrote: Or U can format the os and try to istall again.
Does the legality issue not bother you here? What do you think trial periods exist for? Certainly not so you can have indefinite use of software.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
You have given him an alternative that, while onerous, is achievable - especially with the use of decent backup software. I would have thought that the only solution that should be presented to the OP is to buy the software - no alternatives, no hacks.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
tantoun wrote: i use the trial version of a devexpress component in .net
how can i continue if the date has been expired.
Short answer: Buy It!
But, if you do manage to find a way I'd like to know. The reason it that I actually know one of the directors of DevExpress and I'm sure he'd be interested to know if there are any weak points so that he can improve the security of his products. This will enable him to put a roof over his head and food on his table.
|
|
|
|
|
Colin Angus Mackay wrote: This will enable him to put a roof over his head and food on his table.
Oh - why worry about niceties like that?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
But i am a poor man and i don't have money so anyway 10x very much.
bye
etretyertyery
|
|
|
|
|
Then find a free alternative to the DevExpress components, or write your own, sell it, and earn some money.
|
|
|
|
|
tantoun wrote: But i am a poor man and i don't have money
That doesn't excuse breaking the law. If everybody had this attitude then the staff at DevExpress would all be poor as well.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
How would you like it if someone stole your software? Your hardwork?
Buy it or go without. Simple.
|
|
|
|
|
Hello ,
I have a problem in deploying my project .iam using installshield 10.5 program to make a exe project that install pre requested programs ... i did it successfully
but the project have diffrent releases so i need to check the end user release before install the current release then install the last release it has from instalation
NOTE : Realse include sql scripts to run in DB and change EXE
Thanks in advance
|
|
|
|
|
I have a DateTimePicker control on a form. I was able to set the colors and fonts when the calendar displays as a dropdown successfully. However I have never been able to get the BackColor and ForeColor set correctly when the control displays as a text box. It defualts to a white BackColor and a black ForeColor. I want to set the BackColor of the textbox to LightYellow. Any help would be appreciated.
Thanks,
Patrick
|
|
|
|
|
Hello everybody,
I need to make the client size of a parent form FIXED, that is no scroll bars appear when moving the child around the parent.
I tried to make the auto scroll bar property in parent form set to false but it doesn't work.
thanks in advance!
|
|
|
|
|
I tried out what you described with the following code:
using System.Windows.Forms;
class Form1: Form
{
public Form1()
{
this.IsMdiContainer = true;
this.AutoScroll = false;
Form f = new Form();
f.MdiParent = this;
f.Show();
}
public static void Main (string[] args)
{
Application.Run(new Form1());
}
}
Of course, the scrollbars still appear. According to the documentation for Form.AutoScroll , "If this property is set to true, scroll bars are displayed on the form if any controls are located outside the form's client region." I would take this to mean that AutoScroll only applies to controls owned by the form, not MDI children.
Sorry I couldn't be of more help.
A little learning is a dangerous thing;
Drink deep, or taste not, the Pierian Spring.
—Alexander Pope
|
|
|
|
|
CompMan44 wrote: I would take this to mean that AutoScroll only applies to controls owned by the form, not MDI children.
I think you are right,
thanks CompMan44
|
|
|
|