|
hi,
I want to validate the onecolumn in datagridview like only digits entry.
By using keydown/keypress event how can i validate it for a perticular
column in Dtagridview.
Help me please
With Regards
prasad
|
|
|
|
|
Hi,
I believe that the column which is going to be validated is passed in the Event arguements. So you can have it in KeyDown/Validating etc events.
I dont have development environment setup to tell u exactly.
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
HI,
I want to create textbox at runtime when user click on button
and user able to create as many as textbox.there is no limit.
help me it's urgent.
thanks
Asif
|
|
|
|
|
hi,
Thats the beauty of OOP, Create instances of Textbox class at runtime, give them Ids, text, set the desired location to be displayed on the form. Thats it!
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
VB.Net
dim textbox1 as new Textbox
//Set properties if u want like textbox1.text="Pail"....//
me.Controls.Add(textbox1)
C#.Net
TextBox textbox1=new TextBox;
//Set properties if u want like textbox1.text="Pail"....//
this.Controls.Add(textbox1);
|
|
|
|
|
Hello
I have a problem in MDI Form1 is the parent form Form2.
When i call the form2 like this:
frmChild=new FormChild();
frmChild.MdiParent=this;
frmChild.ShowDialog();
that give me an error "Forms that are not top level forms cannot be displayed as a modal dialog. Remove the form from any parent form before calling showDialog."
I want to open frmChild as a Modal Form so the ShowDialog() is necessary. how can i overcome this problem??
thanks
|
|
|
|
|
Once you've made a from an MDIChild of another form you can't use ShowDialog() on it. You have to show it using Show() method only. To use ShowDialog() is to make it modal -that means it takes over the focus from all other GUI elements and forms-, which is not supposed to be in an MDIChild form.
Regards
|
|
|
|
|
Is that possible a form would be both child and parent ??
I mean to say that There are Three Forms: Form1,Form2 and Form3.
Form1 is the parent form of Form2. Is this possible Form3 is the child form of Form2 ??
thanks
|
|
|
|
|
AFAIK this is not possible. If you try to make a MDIParent a child of another form an exception would be thrown with this message "Form cannot be both an MDI child and MDI parent. ".
Regards
|
|
|
|
|
Hi,
How can i insert a Word-Document into an Excel-Sheet using Interop object with C#.net?I dont find any samples in this regard.Pls help me out of this ASAP.
Regards,
Senthil Selvi M
Senthil Selvi
|
|
|
|
|
Hi folks,
I'm looking for a little advice. I am coming towards the final stages of my project (programmed in C#) and need to generate a word document from the data I have collected. This data is held in a dataset at present. The old version of the software used bookmarks as placeholders and macros to tidy everything up. We have been looking into the xml technologies - but I am having some difficulty understanding and implementing this.
What I wish to do is have a template that I can merge with the data. Over the last few days I have looked at xml-fo/xslt and wordML but do not know what approach is best. The document itself is several pages long, some paragraphs are taken from the datasource and I need to insert some table data and images in other sections.
Does anyone have experience of the above, if so can you please give me some pointers and references to get me started.
All help is greatly appreciated
Regards
Darren Sim
|
|
|
|
|
I did something similar to this. I used RTF to construct the a text file. Bit simple but it worked for me. I was able to draw tables, fill them in and add text.
|
|
|
|
|
Thanks for the reply,
I looked into doing this, however there will be several different styles of reports - with more to be added by the user and writing a class to generate each in rtf would not really be an option. I have been looking to create some template documents that can then be filled from the data layer. The xml/xsl route seems to cover what I need by creating the stylesheet and then merging that with the dataset. However, I am not very experienced with this and there seem to be many different approaches to doing this.
Regards
Darren
|
|
|
|
|
Hi i'm writing an ftp client and i need to get back a list of directories/files on the ftp server
, thanks in advance any immediate help with thing is greatly appreciated as it has become very urgent thanks
(code below examples)
so i'm excepecting
A.zip
B.zip
C.zip
but i'm getting
<title>FTP root at 172.17.2.20.
FTP root at 172.17.2.20.
01/18/06 06:41PM <DIR> <A HREF="/./">.</A>
01/18/06 06:41PM <DIR> <A HREF="/../">..</A>
01/07/03 12:00AM 199 <A HREF="/A.zip">A.zip</A>
01/18/06 01:01AM 225 <A HREF="/B.zip">B.zip</A>
07/26/06 12:32PM 5,902 <A HREF="/C.zip">C.zip</A>
Uri uri = new Uri(Settings.FtpServer);
FtpWebRequest listRequest = (FtpWebRequest)WebRequest.Create(uri);
listRequest.Credentials = new
NetworkCredential(Settings.FtpUser, Settings.FtpPassword);
listRequest.Method = WebRequestMethods.Ftp.ListDirectory;
listRequest.KeepAlive = false;
listRequest.UseBinary = false;
listRequest.UsePassive = false;
FtpWebResponse listResponse =
(FtpWebResponse)listRequest.GetResponse();
StreamReader reader = new
StreamReader(listResponse.GetResponseStream());
Console.WriteLine("List Response:");
Console.WriteLine(reader.ReadToEnd());
|
|
|
|
|
One Post is enough.
Regards,
Satips.
|
|
|
|
|
Hi,
this piece of code is meant to return a list of directories/files on the ftp server it works like a bom on my machine but when i test it on connecting to our an actual ftp site in returns the directory listing in html format, can anyone please help, because i'm expecting the listing to be in plain text format, thanks in advance this i urgent and any immediate help is greatly appreciated.
i'm excpecting
e.g
A.zip
B.txt
C.dat
not
<title>FTP root at 172.17.2.20.
FTP root at 172.17.2.20.
01/18/06 06:41PM <DIR> <A HREF="/./">.</A>
01/18/06 06:41PM <DIR> <A HREF="/../">..</A>
01/07/03 12:00AM 199 <A HREF="/A.zip">A.zip</A>
01/18/06 01:01AM 225 <A HREF="/B.zip">B.zip</A>
07/26/06 12:32PM 5,902 <A HREF="/C.zip">C.zip</A>
Uri uri = new Uri(Settings.FtpServer);
FtpWebRequest listRequest = (FtpWebRequest)WebRequest.Create(uri);
listRequest.Credentials = new
NetworkCredential(Settings.FtpUser, Settings.FtpPassword);
listRequest.Method = WebRequestMethods.Ftp.ListDirectory;
listRequest.KeepAlive = false;
listRequest.UseBinary = false;
listRequest.UsePassive = false;
FtpWebResponse listResponse =
(FtpWebResponse)listRequest.GetResponse();
StreamReader reader = new
StreamReader(listResponse.GetResponseStream());
Console.WriteLine("List Response:");
Console.WriteLine(reader.ReadToEnd());
|
|
|
|
|
Does anyone know about it ?!
Cause I've been facing this same problem...
|
|
|
|
|
Hi i'm beginner ini C#.
How to make control between 2 form. For example, there are 3 form (from1 as parent form,form2 , and form3). The flow form is, if click a button in form1, it'll cal form2- > form2 shows, and then when i click a button in form2, form3 will appear. But how to lock form2 (become look un accesible) when i'm in form 2. after i close form3, form2 will active. And after i close form2, form1 will be active.
The logical is looks like we are in dialog form in printing a document in MS Word.
if the Print dialog not finished, we can't access back to type or anyelse.
tq.
|
|
|
|
|
Hello,
You can use the "ShowDialog" method instead of "Show".
All the best,
Martin
|
|
|
|
|
Hello martin,
He can't use shodialog() method. becos i have a problem when i want to open a child form as a modal form it get an error.
thanks.
|
|
|
|
|
Test270307 wrote: i want to open a child form as a modal form
I didn't got that point, at the question.
|
|
|
|
|
Hi,
i have a Client Server Application where my client is connected with more
than one server with common port . I have to handle huge data frequently.
I am using Asynchronous Socket Programming.
Is it right to use the same port for more than one server(same
application). I am using and my application is working quite well.
The Problem is some messages (not all) from the server are missing.
Sakthi
|
|
|
|
|
hey,
I'm using the resource manager in C# and I think I see a major shortcomming.
In java you can do this:
titleDoc: "This is you title of: {0}"
and when you call this je can add a parameter
Can you do this in C#?
thx
|
|
|
|
|
I have no idea why they did not add this directly to the resource manager, but apparently they didn't (or I didn't look the right place, always an option). So use string.Format with the string from the ResourceManager.... or use a .NET 3.5 CTP and extend the ResourceManager class.
So a shortcoming: yes... a major one: no.
|
|
|
|
|
Hi All,
I have a problem while working with Winform datagrid in C#.net.
I want to freez the selected rows(making nonscrollable) in winform datagrid. I am using Visual Studio.Net 2003
Plese help me with an example.
Thanks in Advance
Anil Kumar
|
|
|
|