|
Hey
I like the way menus can be slid in and out of view in Visual Studio (such as solution explorer and the properties window) and would like to use something similar for a project I am working on.
I assume this is a control you can drag onto a form in visual studio that when the mouse moves over shows panels in a specific position. Does any one know which control I should use?
Also If i want to make the menus slightly transparent is it a case of inheriting from say a panel then overriding its draw command using GDI? I may be way off the mark with this one as I have not done this before (only made my own items using GDI)
Thanks
Dan
|
|
|
|
|
I don't think it's built in, but there is a free control (I haven't used it, but many folks here have): http://sourceforge.net/projects/dockpanelsuite[^]
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
I am new to C#the problem is this that i m making an employee database for a firm the informATION will be filled in three forms serial vise for example
1 Employee personal
2 Service history
3 Expertise
when i fill the first form then when i click next i want to fill the second service history form in the same window so how it could be possible i dont want a separate window to be opened as many softwares do the same procedure by pressing next and going on filling the information in same window in different criterias
SAS
|
|
|
|
|
One easy way to do this is to build your different views as controls and show/hide them on the form.
However, my overall advice would be that if you're new to C#, you should not be writing code that anyone is going to use for anything, unless you have a strong background in another language.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The above suggestion is best but what about if i use MDI will it solve the problem and how to displaydifferentforms ibn window
SAS
|
|
|
|
|
Doesn't make any difference. You don't display different forms in a window, you display different controls. A form is a window.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
Please give me an idea how to change the layout of an excel file through c# coding.If i am opening the printer dialogue box the then change the layout, the printing layout is working fine but it doesnt the layout of the excel
Thanks in advance.
Regards
DilipRam
|
|
|
|
|
Hi all,
Ok, I have a datagrid, the user can input data. I want something which will prevent them to edit
previously created rows.
Can someone give me some suggestions.
Thanx in advance
|
|
|
|
|
Ok I figured out something which works, could someone let me know of any other ways??
<br />
private void table_RowChanged(object sender, DataRowChangeEventArgs e)<br />
{<br />
lastRow++;<br />
}<br />
private void datagrid_CurrentCellChanged(object sender, System.EventArgs e)<br />
{<br />
if( datagrid.CurrentCell.RowNumber != lastRow )<br />
{<br />
datagrid.CurrentRowIndex = lastRow;<br />
}<br />
}<br />
|
|
|
|
|
Hi,
Is there a way how to disable selecting mechanism of a DataGridView at all? It brings me a lot of workaround... Simply I don't want user to select anything, neither rows, columns or cells.
thank you
zilo
|
|
|
|
|
|
|
That would solve your problem. You can still see the data, but you can't select. Isn't that what you want?
|
|
|
|
|
I need to disable selecting anything, however I still need to use all controls (button's, checkboxes,etc...)
|
|
|
|
|
Buttons and checkboxes inside the grid, you mean?
|
|
|
|
|
|
Perhaps another possibility, is listen for selection changed event, and when it happens, ensure that 0 rows are selected.
|
|
|
|
|
Hy
I'm writing text in a richTextBox and I want to find the position of the cursor, not the mouse cursor.
Can you help me.
Thanks
|
|
|
|
|
hi
int pos = richTextBox.SelectionStart;
regards
|
|
|
|
|
using System.Runtime.InteropServices;
[DllImport("user32.dll")]
public external uint SendMessage(IntPtr hwnd, uint command, int arg1, int arg2)
public class Example : Form {
...
private RichTextBox rtb = new RichTextBox();
// EM_POSFROMCHAR = 0xD6
uint pos = SendMessage(rtb.Handle, EM_POSFROMCHAR, 0, rtb.SelectionStart);
...
}
I think this method returns an int of the form (x << 16) + y, but you should look it up to be sure. I have not written this in the compiler and am only going from memory, so you need to check to make sure that this works, but the idea is the same. Anyway, I thought that rtb's have a method called "GetCharPos" or something like that... Hope this helps.
Jeff
|
|
|
|
|
I create a dataset nd fill it from the an adapter
now i want to fill the datagridview and color each row with different color
any help?
Thanks in advance
Assaf
|
|
|
|
|
1) either set the DataSource property of the GridView to your Dataet or (better) use an DataSource approach (see MSDN for that).
2) register the RowBound event of the GridView
3) set CssClass of row depending on your data
4) write the CSS styles
by the way: MSDN would have been a good source of information, too.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
can you claify your answer please
Thanks
Assaf
|
|
|
|
|
I think I gave you enough buzz words to go to google or the msdn and find the details of your own.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
for coloring each row ???
but i didn't saw this idea before !
I'll seach for this anyway ???
Thanks
Assaf
|
|
|
|