|
What was the purpose of this?
I thought this forum was for asking C# problems? Or did I miss something
Ed
|
|
|
|
|
What's your question?
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
rizwan! you disregard my doubt abut the interview assignment. i told you to do it for urself and not by cpian. shame, now you will not get the job u monkey turd.
Sincelery yours, Computer Information conSciences Professor and grader, Sharada Ulhas
|
|
|
|
|
I have an interface problem, trying to write a program in C#, which I'd really appreciate some help on. It's an SDI app, and I want basically to switch the main form to a different one. So to start with there's one form, but on editing one of the entries I want to switch to a different one, so I can lay out a different set of controls on the other form. I'm not sure how to do this in C#? I hope you can understand what I'm trying to do, and I'd appreciate any advice!
Thanks,
Mark
|
|
|
|
|
Hi.
I don´t know if I have understood you correctly but here is an idea, I hope you can use it.
You create another form, From f1 = new Form();
and then call the show method: f1.Show();
You can of course add the controls you like to that new form and set it´s size just like on any other form.
Hope this helps,
F
|
|
|
|
|
Thanks for your reply. The problem with that is it will open a new form, what I want to do is replace the existing form with the new one. I don't know how to do it in an SDI app, in an MDI app you can open a new child form, the problem is the user can restore the forms and switch between them, I want it to appear as an SDI app.
|
|
|
|
|
Hi.
Perhaps you can set your existing controls (textboxes, radiobuttons etc) to disappear, you can set their property. For instance, if have a TextBox on your form, txtbox2, you can:
txtbox2.Visible = false;
and it will then not be seen by the user. That way you can make some or all of the controls disappear and then create new ones if need be.
I don´t know if I fully understand your problem but I hope this helps.
F
|
|
|
|
|
Hi there.
I was wondering about how do I populate a TreeView in windows forms. I would like to get a list of drives and folders on the users computer. I couldn´t find anything so I am turning to the codeproject forums for some help.
Any pointers and help is very much appreciated.
Thanks,
FJ
|
|
|
|
|
There are several articles here on code project that basically use a TreeView to simulate the folders view in Windows Explorer. I suggest starting there.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How 'bout a little guitar now?
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
My C:\ , E:\ have deepfreeze
and D:\ is free
so the user can save any files on D:\
But i really want to make the function by C#
That is:
just save files.......look like (*.doc, *.xls, photoshop(i forgot file type of PTS ) etc.)
I don't know where do i begin and where do i start :->
Is there any body in here who can help me! Pleasee..sse
PS: Please forgive my bad English!
I like music ) !
|
|
|
|
|
What is it that you want to save? Where do you get the data from? In what form?
gig00 wrote: I don't know where do i begin and where do i start
Probably at the exact same place...
---
b { font-weight: normal; }
|
|
|
|
|
thank you for your reply!
sorry! i'm just kidding! (where do i begin....<= "Love Story")
I mean that:
-you can save anything from your floopy, usb, or other devices to current harddisk.
-but, you can't not save files which have extensions of files type look like
*.mp3, *.exe, *.bat...etc.
Of course! i'm using Windows
Thank you in advance!
I like music ) !
|
|
|
|
|
Do you mean copying files? What is keeping you from copying certain files, then?
---
b { font-weight: normal; }
|
|
|
|
|
You can use a SaveFileDialog
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thank you for you help!
I'll try!
I will reply if i finish it by some days!
I like music ) !
|
|
|
|
|
In C# how do I put an updating time string into the statusbar? I am just starting to learn C# and though I know how to do this in MFC, I am not sure how to do it in C#. In serting a string I can do, but how do I get the time to update?
Roger
|
|
|
|
|
Roj wrote: how do I get the time to update?
System.DateTime.Now
Roj wrote: I put an updating time string into the statusbar?
Isn't there a special status bar panel for this?
Ed
|
|
|
|
|
Hi,
I have a dataset which fills my datagrid.
this.oracleDataAdapter1.Fill(this.DataSet1);
this.DataGrid1.DataBind();
Now I want to set up couple of Filter options.
Since I already have all the data I don't want to send another sql to database.
How do I send Sql to data set and recreate the same datagrod with filtered data?
Thanks
|
|
|
|
|
Hi,
Create a DataVeiw with the filtered data from a DataSet and bind the same to the DataGrid.
Hope this will help you.
Thanks and Regards
Kodandapani.
|
|
|
|
|
OK, my problem is I am using an unmanaged function similiar to the printf function, in that you can pass a variable number of arguments of any type.
If I knew the number of objects I am getting I can simply call the function like
//3 items :
print("%s%d%f", obj1, obj2, obj3);
If I don't know the number of objects I am getting how can I convert them/add them to the argument list ? - printf(format, objects ??)
If I just pass an array the unmanaged function doesn't work. Its like the unmanaged code should be getting several arguments but I imagine its only getting the one, a pointer to my managed array ?
So basically I don't want to pass one argument(which is an array). I want to send the elements of my array as seperate arguments mimicing passing several arguments.
|
|
|
|
|
Define the amount of parameters you need in the DllImport definition.
|
|
|
|
|
The C++ definition is say
printf(const char* format, ...)
My DLLImport is
[DllImport("xxx.dll", EntryPoint = "printf")]<br />
public static extern bool Print(String format, __arglist )
In my C# function I am getting an array of objects of varying lengths.
void func(Object[] objArr)<br />
{<br />
String format = "%s%d%lf"; etc....<br />
..<br />
<br />
Print(format, ??!?!? );<br />
}
|
|
|
|
|
Hi,
Is there a way of locking a forms position (i.e., without removing its border, which makes it look bad!)?
Thanks.
Regards,
Magnus
|
|
|
|
|
magja wrote: Is there a way of locking a forms position
Yes. Override your form's WndProc() method and handle the WM_MOVING [^] message. Specifically, return the form's current pos and size to Windows. This will cause the form to be immovable.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Hello,
I wan't to duplicate a toolstripmenuitem. The problem is that I don't have found a solution to duplicate an event. All other properties which I need I can access. I want to duplicate the event, because in that part of the code I don't know which eventhander is registerd.
Is there any way to do that?
Regards
Hansjörg
|
|
|
|