|
Use EditMode Property in DataGridView to Edit the DataGridView Cells.
Regards,
Karthik K...
|
|
|
|
|
Hi,
Thanks for the reply. i can use edit mode property to edit cells.
But this allows only one cell to be edited at any time.
i juz wanted to set to edit mode for all cells so that my editing control will be visible in all cells.
Thanks
Anbu
|
|
|
|
|
The errors and warnings panel in visual studio looks really sharp. I would love to have something similar in my own app, what's a good control to use?
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
It's just a simple grid with buttons to filter it for Errors, Warnings or Messages
only two letters away from being an asset
|
|
|
|
|
When you say grid you mean something like a data grid? Forgive me, I'm very new to UI.
JP
|
|
|
|
|
Yes, its a datagrid displayed in a dockable window
only two letters away from being an asset
|
|
|
|
|
Hi All,
My question is simple, but VERY important to me .. as far as I know, one managed wnd can be parent of any unmanaged wnd... no vicevesa... I'm not an expert and I'd like to suggest that someone could post one example to do this...could be VERY useful to everybody
One unmanaged window ( C++ ) can be parent of one Managed ( C#.NET ) window ?? if this is possible... please share with me the answer...
Thanks in advance,
Best regards.
|
|
|
|
|
richard072 wrote: could be VERY useful to everybody
Whehe, good argument
First, you add a using clause;
using System.Runtime.InteropServices; Next, copy this code into your class;
[DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);
[DllImport("user32.dll", EntryPoint = "SetParent", SetLastError = true)]
static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); Next, add this code to the place where you want to change the parent;
IntPtr window = FindWindowByCaption(IntPtr.Zero, "Calculator");
SetParent(window, this.Handle);
--edit--
I posted the reverse thing, but it's also possible from C++ using the same technique. A quick suggestion tho - why not make an ActiveX-control out of the C# window?
Enjoy
I are troll
|
|
|
|
|
Unfortunately, that didn't work... when the SetParent( .. , .. ); function is being executed, the Form window is not showing in the screen,..
is there another way ?
Thanks.
Best regards
|
|
|
|
|
Another way would be converting to COM. I'm curious to why it didn't work, as I used these API's from VB6 to embed a C# form. Did you get any error?
I are troll
|
|
|
|
|
no errors... I'll try that...
|
|
|
|
|
I forgot to mention that a C# process does not create a Window Handle immediately when it starts. Try the code with a new C# project and wait a second before you start looking for the new window.
I are troll
|
|
|
|
|
SetParent API function didn't work... we have another option ?
|
|
|
|
|
The only option that I'm aware of would be ActiveX
"please help in this regard. give the visual basic code for this as soon possible."
|
|
|
|
|
I have 2 forms Form1 and Form2
In form1 I have 105 small textboxes that are being filled through listbox
This is the code used in Form2:
Click event
Dim fi As New Form1
TextBox1.Text = TextBox1.Text & _
"cast(case when Vert1 = " & fi.TextBox23.Text & " then '1' else '0' end as int)+" & vbCrLf & _
"cast(case when Vert2 = " & fi.TextBox24.Text & " then '1' else '0' end as int)+" & vbCrLf & _
"cast(case when Vert3 = " & fi.TextBox25.Text & " then '1' else '0' end as int)+" & vbCrLf & _
"cast(case when Vert4 = " & fi.TextBox26.Text & " then '1' else '0' end as int)+" & vbCrLf & _
"cast(case when Vert5 = " & fi.TextBox27.Text & " then '1' else '0' end as int)+" & vbCrLf & _
"cast(case when Vert6 = " & fi.TextBox28.Text & " then '1' else '0' end as int)+" & vbCrLf &_
"" & "" & ""
In textbox1 no value is writen for textbox23 to textbox28 of form1
Can sone one help?
modified on Tuesday, July 7, 2009 7:36 AM
|
|
|
|
|
Dobrobit wrote: Can sone one help?
Yes, give up, change majors now, development doesn't seem your cup of tea.
only two letters away from being an asset
|
|
|
|
|
105 text boxes on a single form?!?! There are so many things wrong with this it's silly.
First, your control names suck. Calling them "TextBoxn" means nothing but a headache. I would NOT want to come in to maintain your code.
For each click event, you're adding the contents of the TextBox1 to itself, thus doubling its content every time you click a button.
You didn't mention any kind of a problem you're having, so it's pretty much impossible to tell you what you did wrong, other than the horrible design choices.
|
|
|
|
|
105 textboxes is nothing in my program.The aproprate number is7x 30 = 210 textboxes
I have solved the problem myself through split methodes
Thanks
|
|
|
|
|
fi.TextBox23-28 are on a form that was just instantiated. Unless there is something in the default constructor of Form1 that changes this, they will be empty by default.
|
|
|
|
|
In .Net, we know multithreading, but is it possible to do multi-processing, if I really need, like in C/C++ env?
Or multi-appdomain is the alternative in .Net?
Thanks,
|
|
|
|
|
Not sure what you mean, here. Your use of the word "multi-processing" is ambiguous.
True multi-processing requires more than one processing unit. With kernel-level threads, which .NET has, you can have multiple threads run on multiple processors.
If you're asking can .NET spawn new processes (like fork()), then, yes, it can do that, too.
Finally, AppDomains offer a lighter-weight, dedicated memory in-process process.
Does that answer your question?
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks.
Basically, just same as you said like fork() in Unix, the new created process will run in its own process container and truly isolated from the parent process, so failure in this process won't bring down others. whether it's supported in the kernel mode or the user mode, is not the concern yet.
As you said, "it can do that", can you direct me to some info of how to do it?
Thanks.
|
|
|
|
|
Just look up the System.Diagnostics.Process class.
|
|
|
|
|
Here you go: a link to the Process[^] class.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks you and Dave Kreskowiak, but looks like that this System.Diagnostics.Process class just provides access to local and remote processes and enables you to start and stop local system processes, not let us create a new process and let us run our code in it. Or I might get something wrong, could you give me a small example?
|
|
|
|