|
You're back! Has your tinpot dictator opened up the Internet tubes again?
Adnan Siddiqi wrote: by doing new myForm does give reference of new instance rather existing one.
Umm, yes. When you create the form initially, you store it in a reference. YourForm form = new YourForm(); Then you can use the form reference.
Here[^] is something for you.
Cheers,
Vikram.
"If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy
|
|
|
|
|
Vikram A Punathambekar wrote: You're back! Has your tinpot dictator opened up the Internet tubes again?
It was never closed at all. I used to visit CP for two reasons, one was SoapBox other was looking for MS related stuff. I am not basically a .NET/Microsoft programmer but was FORCED to work on an application which was based on COM technology so had to work on it anyway.
Vikram A Punathambekar wrote: Umm, yes. When you create the form initially, you store it in a reference. YourForm form = new YourForm();
WOUld take a look on your mentioned links
Thanks
/A
|
|
|
|
|
Adnan Siddiqi wrote: how can i get the reference of existing(opened) form and manipulate its control properties like text,Visable etc on other form or within module? by doing new myForm does give reference of new instance rather existing one. Also, is there some different method to get instance in case of MDI application?
After 2000 posts I think you should know enough to not cross post.
1. Beside from MDI control, you can do that by first managing the form by yourself, ie have a form manager class.
2. New (<---) create a new instance of form.
|
|
|
|
|
I know but the reason I did because I just needed a .NET based solution regardless of technology(c#,vb.net) because I don't have much time.
I admit my mistake but had no choice
|
|
|
|
|
Is there a way that i can create a Serializer Similiar to the XmlSerializer. the data that i am working with is kinda like a hash file. I would like to be able to stick some attributes to my objects/properties and serialize the hashed data to workable objects and back into formatted data. Could someone point me in the right direction?
Thanks!
Don't be overcome by evil, but overcome evil with good
modified on Wednesday, December 26, 2007 10:51:03 AM
|
|
|
|
|
You can implement the ISerializable interface on your class and handle the serialization events
only two letters away from being an asset
|
|
|
|
|
Hey Mark, Thanks for your reply. Looking at the ISerializable i don't think i am able to use this. The kind of data that i am working with is a pipe delemited file (ex Adam|1550 Robin St. Tampa, FL). What i'd like to do is take this string and add it to a "Customer Object" so i can just manipulate the data using the properties. Then when i am done w/ i'll then be able to serialize it in the original format. ISerializable Interface uses the SerializtionInfo which gets/adds data by keys and i can't store the keys in this data.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Unless I'm missing something you're not saying. The file is already the serialized representation of your objects.
only two letters away from being an asset
|
|
|
|
|
I don't know how to explain it man. I'll try and figure something out. Thank you for your time.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi,
Is there any module available (Open Source/Buy) which can do a Diebold 912 Message parsing and formatting. Sends the message as byte stream to a IP or Port. Some thing similar as JPOS for 8583.
|
|
|
|
|
Not sure.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: Not sure.
i couldnt get you
|
|
|
|
|
Not sure if there is one. Might try google?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi....
I am developing project using c# with asp.net 2005....
here I am using start date and end date....whenever inserting date into database(date format is dd/mm/yyyy 00:00:00)...whenever update (edit) the date I want date format mm/dd/yyyy without time...
anybody know please reply me.....
Rajendran.AL
|
|
|
|
|
I've done something like that it was something like objDatetime.ToString("T")
try it out
hope it helps
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
Let's get this straight - you have a valid date in DD/MM/YYYY and you want to change it to MM/DD/YYYY? Why don't you manipulate the string directly?
As an aside, why do you rely on the database to interpret it as MM/DD/YYYY? YYYY-MM-DD is universally accepted and much better.
Cheers,
Vikram.
"If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy
|
|
|
|
|
Vikram A Punathambekar wrote: YYYY-MM-DD is universally accepted and much better
Right, it's ISO 8601 compliant.
Plus, I hope the data is being stored in a DateTime, not a string.
|
|
|
|
|
You can try this:CONVERT(varchar(10),date,120),I think this function can do that.
Always do you best,what you plant you will harvest
later!
|
|
|
|
|
Hi
Can you suggest a way to achieve SSO in domain using ASP.net and C#.
Reena.
|
|
|
|
|
hi
i have a backgroundWorker object in my form, and set WorkedReportProgress to true and write this code for some eventhandlers :
<code>private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
int i = 0;
while (i < 1000)
{
this.backgroundWorker1.ReportProgress(i); // not trigged
i++;
}
}
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
this.toolStripStatusLabel1.Text = e.ProgressPercentage.ToString();
}
</code>
when i trace my app in runTime, in while loop, i call backgroundWorker1.ReportProgress method to raise
backgroundWorker1_ProgressChanged, but it does not raise, where does my problem and how to solve it ?
thanks
|
|
|
|
|
haveu added the event handler like this
backgroundWorker1.ProgressChanged+= new EventHandler(backgroundWorker1_ProgressChanged)
I think this could be the problem
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
thanks
where i write your suggestion code ?
|
|
|
|
|
write it in the page_load method or the constructor
hope it helps
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
thanks
i write your code in Form1_Load :
this.backgroundWorker1.ProgressChanged += new EventHandler(this.backgroundWorker1_ProgressChanged);
but the follwoing error has shown me :
No overload for 'backgroundWorker1_ProgressChanged' matches delegate 'System.EventHandler'
|
|
|
|
|
ok try doing it in this sequence
type
1) this.backgroundWorker1.ProgressChanged+=
2) then as soon as u press the = key you'll see a tooltip
3) press tab twice
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|