|
this returns me a string like this: "10/46/2007" if i used for today's date..
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
mm represents minutes. Use MM for the month.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
thanks
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
Please consider using an ISO 8601 compliant format -- .ToString ( "yyyy-MM-dd" )
|
|
|
|
|
Thanks!
Problem solved
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
Hello every body,
I want to refresh or reload the form1 on the click event of button on form2.
Actually form1 contains the listview and form2 is edit form on the click event of update button i want to refresh the form1 in order to see the updated result.
But i am unable to do so.
Regards,
Rahul
rahul saini
|
|
|
|
|
Hello,
monuSaini wrote: But i am unable to do so.
Why? Do you think, you have no access to the form1,
or haven't you found the Refresh() method of the form?
All the best,
Martin
|
|
|
|
|
Hello Martin,
Thanks for rply.
But it is not working.
the updated row does't showe the updated result.
Only when i reloads or re populates it is appears.
Regards,
rahul saini
|
|
|
|
|
Hello,
monuSaini wrote: the updated row does't showe the updated result.
Have you tried to use the Refresh method?
I think we have to see some code snippeds.
All the best,
Martin
|
|
|
|
|
Hi,
Yes I had
But no result.
I had an refresh button in form1 that populates it. Can I generate that click event from form2
Regards,
rahul saini
|
|
|
|
|
|
Hello PPL,
Hope all r fine,
i hv a doubt in,
i hv a word document, and in my form there is a help butten, if we click the help button then my word document should be get display with in the specified area,
i think i hv to make the word document as a html right na?
gimme me a clear idea to me ...
self confidence+hard work=SUCCESS
|
|
|
|
|
Save your word document as webpage, create a form and place a webbrowser control.
Whenever user clicks Help button dispaly the form with webbrowser navigating to your Help document page.
srini
|
|
|
|
|
can v make the help document to display within the specified panel..
how can v?
and how to create a help document as a tree structure
self confidence+hard work=SUCCESS
|
|
|
|
|
he hi..
Do one thing just create a .chm file.
you have to use "windows HTML help workshop" for that.
Just search on net u will get help.
For creating .chm it will take time but it will be easier next time.
Thanks
Rahul Kulkarni
|
|
|
|
|
no dude, i hv to display the document with in the form only......
self confidence+hard work=SUCCESS
|
|
|
|
|
You can create word document as you like, and can navigate the document using webbrowser control.
You can use HypherLinks for making the help documents as like in BookMarks.
|
|
|
|
|
Hello every body,
I am new in windows application.
Can we call the click event of button (which is on from1) from form2.
Regards,
Rahul
rahul saini
|
|
|
|
|
- Make public function in Form1
- Call it from Form2
eg:
objForm1.PublicButtonClick();
|
|
|
|
|
Hello Michael,
Thanks for your help.
What argument should I pass in it?
rahul saini
|
|
|
|
|
Just pass "null"
Form2
Form1 obj = new Form1();<br />
obj.button5_Click(null, null);<br />
Form1
public void button5_Click(object sender, EventArgs e)<br />
{<br />
MessageBox.Show("Who did this??? ");<br />
}
|
|
|
|
|
Hi,
Sry i forgot to tell you that form1 is mdi child.
i think that is why it si not working.
rahul saini
|
|
|
|
|
The good design practice is to create a property to the button on Form1 and use PerformClick () function.
Eg.
On Form1
public Button Button1<br />
{<br />
get<br />
{<br />
return button1;<br />
}<br />
}<br />
on form2
Form1 obj = new Form1();<br />
obj.Button1.PerformClick ();
|
|
|
|
|
Hello,
engsrini wrote: The good design practice is to create a property to the button
I think it would be even better practice to, not make the button public.
Just add a public method to Form1, which calls the PerformClick of the write button!
All the best,
Martin
|
|
|
|
|
Hello,
You could also call the PerformClick[^] method of the Button instance!
This will raise the Click event, and I think has also the visual effect.
All the best,
Martin
|
|
|
|