Click here to Skip to main content
16,007,277 members
Home / Discussions / C#
   

C#

 
GeneralRe: Outloog slidemenu control in C# Pin
Luis Alonso Ramos13-Dec-03 21:53
Luis Alonso Ramos13-Dec-03 21:53 
GeneralProblem with ListBox heights Pin
blakeb_112-Dec-03 6:35
blakeb_112-Dec-03 6:35 
GeneralRe: Problem with ListBox heights Pin
leppie12-Dec-03 6:39
leppie12-Dec-03 6:39 
GeneralComboBox Pin
Gary Kirkham12-Dec-03 5:32
Gary Kirkham12-Dec-03 5:32 
GeneralRe: ComboBox Pin
Heath Stewart12-Dec-03 9:35
protectorHeath Stewart12-Dec-03 9:35 
GeneralRe: ComboBox Pin
Gary Kirkham12-Dec-03 9:53
Gary Kirkham12-Dec-03 9:53 
GeneralRe: ComboBox Pin
Heath Stewart12-Dec-03 10:06
protectorHeath Stewart12-Dec-03 10:06 
GeneralRe: ComboBox Pin
Gary Kirkham12-Dec-03 10:45
Gary Kirkham12-Dec-03 10:45 
I found another way to do it

[DllImport("User32.dll", SetLastError = true)]
static extern bool GetComboBoxInfo(IntPtr hwndCombo, out COMBOBOXINFO pcbi);
		
[DllImport("User32.dll", SetLastError = true)]
static extern bool SetWindowText(IntPtr hWnd, string lpString);


struct COMBOBOXINFO 
{
	public int cbSize;
	public RECT  rcItem;
	public RECT  rcButton;
	public int stateButton;
	public IntPtr hwndCombo;
	public IntPtr hwndItem;
	public IntPtr hwndList;
};


struct RECT 
{ 
	public int left; 
	public int top; 
	public int right; 
	public int bottom; 
};

.
.
.
.
COMBOBOXINFO comboBoxInfo = new COMBOBOXINFO();
comboBoxInfo.cbSize = Marshal.SizeOf(typeof(COMBOBOXINFO));
GetComboBoxInfo(this.Handle, out comboBoxInfo);	
		
SetWindowText(comboBoxInfo.hwndItem, item.Text);


Gary Kirkham

A working Program is one that has only unobserved bugs

I thought I wanted a career, turns out I just wanted paychecks
GeneralProblem with .Net Framework bootstrap program rebooting the system in Win 98 Pin
blakeb_112-Dec-03 5:24
blakeb_112-Dec-03 5:24 
GeneralRe: Problem with .Net Framework bootstrap program rebooting the system in Win 98 Pin
Heath Stewart12-Dec-03 9:32
protectorHeath Stewart12-Dec-03 9:32 
GeneralAssembly fails to load Pin
Le centriste12-Dec-03 5:06
Le centriste12-Dec-03 5:06 
GeneralRe: Assembly fails to load Pin
Heath Stewart12-Dec-03 9:29
protectorHeath Stewart12-Dec-03 9:29 
GeneralRe: Assembly fails to load Pin
Eric Gunnerson (msft)12-Dec-03 13:30
Eric Gunnerson (msft)12-Dec-03 13:30 
GeneralDetermining the location of a DragDrop External to a form Pin
Tristan Rhodes12-Dec-03 4:47
Tristan Rhodes12-Dec-03 4:47 
GeneralRe: Determining the location of a DragDrop External to a form Pin
Heath Stewart12-Dec-03 9:19
protectorHeath Stewart12-Dec-03 9:19 
GeneralRe: Determining the location of a DragDrop External to a form Pin
Tristan Rhodes12-Dec-03 11:21
Tristan Rhodes12-Dec-03 11:21 
GeneralRe: Determining the location of a DragDrop External to a form Pin
Heath Stewart12-Dec-03 11:26
protectorHeath Stewart12-Dec-03 11:26 
GeneralRe: Determining the location of a DragDrop External to a form Pin
Tristan Rhodes12-Dec-03 11:35
Tristan Rhodes12-Dec-03 11:35 
GeneralRe: Determining the location of a DragDrop External to a form Pin
Heath Stewart12-Dec-03 11:46
protectorHeath Stewart12-Dec-03 11:46 
GeneralDetermining a pc's memory & disk space Pin
Manster12-Dec-03 4:34
Manster12-Dec-03 4:34 
GeneralRe: Determining a pc's memory & disk space Pin
Heath Stewart12-Dec-03 9:16
protectorHeath Stewart12-Dec-03 9:16 
GeneralRe: Determining a pc's memory & disk space Pin
Manster15-Dec-03 3:58
Manster15-Dec-03 3:58 
GeneralRe: Determining a pc's memory & disk space Pin
Manster15-Dec-03 4:04
Manster15-Dec-03 4:04 
GeneralRe: Determining a pc's memory & disk space Pin
Jonathan Guidry12-Dec-03 9:37
Jonathan Guidry12-Dec-03 9:37 
GeneralAlpha Texture Problems Pin
12-Dec-03 2:01
suss12-Dec-03 2:01 

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.