|
raihansazal wrote: named "Student" with the attributes of "Name", "Id" & "Address".
Maybe you mean property in you case, not attributes.
raihansazal wrote: i make a list of "Student" type where i add only "Name" & "Id"
i want to show this data in a data grid view.
You mean you did not want to display the Address in datagrid view?
I Love KongFu~
|
|
|
|
|
Dragonfly_Lee wrote:
Maybe you mean property in you case, not attributes.
You mean you did not want to display the Address in datagrid view?
Yes.
i don't want to add Address in datagrid.
& i just want to give the list in datagrid as source & datagrid will manage the columns from the the list.
so how can i define that how many properties did i add in my list?
|
|
|
|
|
How can take printout contents from listview and from textboxes ?
Is it Possible??
|
|
|
|
|
If you want to print a specific control, you can render it to a bitmap first, then print that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
k... thanks..
I will try this method...
|
|
|
|
|
In my DataGridView I have three columns whose ValueType is set to double so that it'll accept only numbers. Now I want it to always show 2 decimal places like "17.00" instead of "17". How do I do that?
modified on Saturday, January 31, 2009 9:43 PM
|
|
|
|
|
By specifying a format string.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
And how would I do that?
modified on Saturday, January 31, 2009 7:02 PM
|
|
|
|
|
|
|
Okay that seems like that would work but I'm still not sure how I'd enforce 2 decimals.
|
|
|
|
|
k....
Do this....
DataGridView:>>Properties:>>Edit Columns::>Appearence::>DefualtCellStyle::>Format::>FormatType::>Numeric::>Decimal Places::>2
|
|
|
|
|
Thanks Najmal that worked.
|
|
|
|
|
|
|
|
I have no idea what it is that you're asking, but I *think* you're asking how to take an image that is itself distorted and undistort it. A picture box won't do that. If you want to DISTORT the image, by changing it's aspect ratio, then just draw it into a new bitmap of the required size using one of the DrawImage overloads on the Graphics class. That's easy.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I want to know how can I rename the [Main Report] tab on the Crystal Report Viewer to whatever name I want?
|
|
|
|
|
I want to know how can I remove the [Main Report] tab from the Crystal Report Viewer?
|
|
|
|
|
hellu... i got this codes from microsoft to capture when a key is pressed... i have modified to disable the task manager being called but it dowsnt work.... sohuld i have to tweak the code more.. plz help me..
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
const int WM_KEYDOWN = 0x100;
const int WM_SYSKEYDOWN = 0x104;
if ((msg.Msg == WM_KEYDOWN) || (msg.Msg == WM_SYSKEYDOWN))
{
switch (keyData)
{
//looking for the task manager combination
case Keys.Control|Keys.Alt|Keys.Delete:
MessageBox.Show("task manager called.");
break;
}
}
return base.ProcessCmdKey(ref msg, keyData);
}
|
|
|
|
|
This question has been asked *several* times, and I can't see any reason for disabling the task manager. I don't think the end-user would be too pleased if their task manager got disabled.
Why would you wanna do this?
Kristian Sixhoej
|
|
|
|
|
hey you pple out threre.... i am not a hacker of some kind u think.... i am making a client program for the lab monitoring system where the student is given with a login screen and if the task manager is avaliable he would end my application so i was asking....and i have found way for disabling the task manager by capturing or by global hooking .... thans...
|
|
|
|
|
If you really need to disable Task Manager for some legitimate reason, it's usually done using group policy. And that again is defined by the administrator.
|
|
|
|
|
Your code won't work. And, you're only attempting to stop one method of launching TaskManager. Other methods include launching it from the Ctrl-Alt-Del screen, starting it from a CMD prompt, starting it from the Start/Run box, writing a small script to launch it, ... and so on...
In short, you shouldn't even be trying to do this in a legitimate application.
|
|
|
|
|
You can't capture the key combination alt+control+delete. It's handled by the system and never reaches your application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|