|
You could try sending the additional messages that get generated when you press a key, as well (WM_KEYDOWN, WM_KEYUP)...
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Without Using Visible how can you hide a user control?
|
|
|
|
|
Move it offscreen or set its size to (0,0).
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Moving the control offscreen? How is this done?
|
|
|
|
|
|
Set a location (x, y) beyond the screen. Lets say, if your screen is 1280x1024, set (x, y) to (1600, 0).
Best,
Jun
|
|
|
|
|
But check the Screens property as well, you may be moving it onto the second monitor.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Can anyone tell me how exactly does this "this.Left" method work in conjunction with a form or user control?
|
|
|
|
|
It returns the x coordinate of the control's left edge.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
Seems pretty straight forward to me
|
|
|
|
|
Mark Nischalke wrote: Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
Textbook answer.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Messianic Instrumentals (with audio)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
When all else fails, RTFM
|
|
|
|
|
joshp1217 wrote: how exactly does this "this.Left" method work
It basically gives the distance of the left edge of your control to the left edge of the container e.g. form,panel etc on which your control is lying.
Regards,
Wasif Ehsan.
|
|
|
|
|
joshp1217 wrote: ...how exactly does this "this.Left" method work...
It's not a method at all. It is a property (a pair of methods in this case). You can use ildasm.exe to understand how it works exactly. It returns a value of the "x" field of the control when you get it. And it calls SetBounds(...) method when you set it.
-- modified at 15:15 Monday 10th July, 2006
|
|
|
|
|
in winApp
how can make comboBox have text that will display and value to this text ??
as in asp.net ??
but with WinApp ??????????
Palestine
|
|
|
|
|
ex:
i have list of all country any city of the all world
i will give comboBox text as : France & value as 5
when use select France i will make new query with
this ID ==> 5
Palestine
|
|
|
|
|
|
ex:
i have list of all country any city of the all world
i will give comboBox text as : France & value as 5
when use select France i will make new query with
this ID ==> 5
Palestine
|
|
|
|
|
So your problem, if I understand correctly, is that you need to attach an integer to a combo box item. This is pretty easy:
private class MyComboBoxItem
{
public readonly string Text;
public readonly int Value
public MyComboBoxItem(string text, int value)
{
this.Text = text;
this.Value = value;
}
public override string ToString()
{
return this.Text;
}
}
MyComboBoxItem france = new MyComboBoxItem("France", 5);
myComboBox.Items.Add(france);
void myComboBox_SelectedValueChanged(object sender, EventArgs e)
{
MyComboBoxItem selectedItem = (MyComboBoxItem)myComboBox.SelectedItem;
int value = selectedItem.Value;
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Messianic Instrumentals (with audio)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Thanks so mutch man
thankss thanksssss
Palestine
|
|
|
|
|
|
the user will just see France
the value ==> 5 will be hiden
Palestine
|
|
|
|
|
You can use ComboBox.Text for the text to display and its ComboBox.SelectedValue.
In binding, you can use DispalyMember for text display and ValueMember for the corresponding value.
Regards,
Wasif Ehsan,
Pakistan.
|
|
|
|
|
Hi i am implementing a web app using c# and asp.net and part of the app invloves storing a picture of the formation played by an opposition sports teams aswell as some tactical info about them.but im just lookin for some advice and direction in how to go about storing the images
thanks for ur help
Tim
|
|
|
|