Click here to Skip to main content
15,904,346 members
Home / Discussions / C#
   

C#

 
QuestionChanging the default WindowClassName of a .NET Form? Pin
Yuval Naveh10-Oct-06 22:12
Yuval Naveh10-Oct-06 22:12 
AnswerRe: Changing the default WindowClassName of a .NET Form? Pin
Chris Buckett10-Oct-06 23:23
Chris Buckett10-Oct-06 23:23 
GeneralRe: Changing the default WindowClassName of a .NET Form? Pin
Yuval Naveh10-Oct-06 23:32
Yuval Naveh10-Oct-06 23:32 
QuestionRemoting and dynamic port allocation Pin
SkyTom10-Oct-06 22:04
SkyTom10-Oct-06 22:04 
QuestionDeployment Question Pin
wasife10-Oct-06 21:34
wasife10-Oct-06 21:34 
QuestionSize of COM objects Pin
drabiger10-Oct-06 21:33
drabiger10-Oct-06 21:33 
QuestionAdding custom property pages to Outlook 2003 using C# <-- Question Pin
SquallNaruto10-Oct-06 21:15
SquallNaruto10-Oct-06 21:15 
QuestionAssign shortcutkeys to combobox values in gridview Pin
WillemM10-Oct-06 21:04
WillemM10-Oct-06 21:04 
To get work done a little faster with a datagridview I thought about assigning shortcut keys to value in one column. These shortcuts are configurable so that the user can change them. The code to find the right item for a given shortcut looks like this:

if (shortcutparts[0].ToLower() == "alt" && e.Alt &&<br />
	shortcutparts[1].ToLower() == e.KeyCode.ToString())<br />
{<br />
	itemsGridView.CurrentRow.Cells[1].Value = <br />
		group.Name;<br />
}<br />
else if (shortcutparts[0].ToLower() == "ctrl" &&<br />
	e.Control &&<br />
	shortcutparts[1].ToLower() == e.KeyCode.ToString())<br />
{<br />
	itemsGridView.CurrentRow.Cells[1].Value = group.Name;<br />
}

But there's a problem, that column is edited using a combobox, which doesn't accept the value I assigned to it, eventhough it does show the right value the first time. Anybody have an idea how I can get it to work?



WM.

What about weapons of mass-construction?

Questionhow to declare 2 dimensional arraylists in C# Pin
Keshav V. Kamat10-Oct-06 21:04
Keshav V. Kamat10-Oct-06 21:04 
AnswerRe: how to declare 2 dimensional arraylists in C# Pin
WillemM10-Oct-06 21:09
WillemM10-Oct-06 21:09 
GeneralRe: how to declare 2 dimensional arraylists in C# Pin
Keshav V. Kamat10-Oct-06 21:11
Keshav V. Kamat10-Oct-06 21:11 
AnswerRe: how to declare 2 dimensional arraylists in C# Pin
wheelerbarry10-Oct-06 22:39
wheelerbarry10-Oct-06 22:39 
AnswerRe: how to declare 2 dimensional arraylists in C# Pin
WillemM10-Oct-06 21:06
WillemM10-Oct-06 21:06 
GeneralRe: how to declare 2 dimensional arraylists in C# Pin
Keshav V. Kamat10-Oct-06 21:08
Keshav V. Kamat10-Oct-06 21:08 
GeneralRe: how to declare 2 dimensional arraylists in C# Pin
WillemM10-Oct-06 21:10
WillemM10-Oct-06 21:10 
Questionanimatiom control Pin
Parshant Verma10-Oct-06 21:01
Parshant Verma10-Oct-06 21:01 
AnswerRe: animatiom control Pin
Alper Camel11-Oct-06 4:32
Alper Camel11-Oct-06 4:32 
QuestionDate Time format in Grid view Pin
Shahzad.Aslam10-Oct-06 20:30
Shahzad.Aslam10-Oct-06 20:30 
QuestionFolder browse exception Pin
Parshant Verma10-Oct-06 19:24
Parshant Verma10-Oct-06 19:24 
AnswerRe: Folder browse exception Pin
quiteSmart10-Oct-06 20:53
quiteSmart10-Oct-06 20:53 
QuestionRe: Folder browse exception Pin
Parshant Verma10-Oct-06 21:04
Parshant Verma10-Oct-06 21:04 
QuestionshList View is not getting cleared Pin
Aslam Bari10-Oct-06 18:26
Aslam Bari10-Oct-06 18:26 
QuestionCreate events for windows User Control.Urgent!!! Pin
RenuKhot10-Oct-06 18:21
RenuKhot10-Oct-06 18:21 
AnswerRe: Create events for windows User Control.Urgent!!! Pin
Aslam Bari10-Oct-06 18:58
Aslam Bari10-Oct-06 18:58 
GeneralRe: Create events for windows User Control.Urgent!!! Pin
RenuKhot10-Oct-06 23:18
RenuKhot10-Oct-06 23:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.