|
My mistake in interpretation, sorry.
I've done some of the "no code" approach in ASP.NET & found that to be pretty easy and efficient but it feels clumsy when applied to winforms apps (at least to me it does), which is why I tend to avoid it and go the "old faithful" route.
|
|
|
|
|
I've also found it clumsy, but I suspect it's from lack of familiarity. Anyway, I said I'd deliver a 'draft' by Friday, and didn't know Friday was a holiday, so it's a quick sprint with what's familiar later today.
|
|
|
|
|
|
Hi,
I have the following requirement (Windows Forms in C#).
I have a form with data populated for differnet types of controls (say textbox, checkbox, grid etc).
If the user makes some changes to the state of any controls (say edit the values from the textboxes, change chekbox state, Radio button state etc) and now then the user tries to close the form without saving the changes made to the form (By clicking the SAVE or OK button on that form).
In that case, I should warn/remind the user that some changes have been made to the form data and were not saved/committed.
How could I achieve the above requirement without having to implement the follng ways?
1. Take a member variable and to update it whenever some changes were made to the controls using their all possible event handlers.
2. Looping through all the controls to find the changes.
Thanks in advance for some suggestions.
Subrahmanyam K
|
|
|
|
|
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
|
|
|
|