|
You can easily reference to the post without using a link.
---
single minded; short sighted; long gone;
|
|
|
|
|
And what exactly is so bad about link?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
How to prevent enter key to focus down row?
When we press enter key, grid move its focus to its down row of the current row. I dont wnat this movement. Please Help for that.
(Is there any property in about case)
Syed Shahid Hussain
|
|
|
|
|
Try this:
private void dgrMyDatagrid(object sender, KeyEventArgs e)
{
if ((e.KeyCode == Keys.Enter)
{
e.Handled = true;
}
}
Hope it helps,
Jure
|
|
|
|
|
Thanks a lot dear friend. It really worked.
Syed Shahid Hussain
|
|
|
|
|
|
Do any body know how to define the default event for any components under form? While in design mode, when double clicked on the button, the Button1_Load() is opended in code mode rather than Button1_Click().
|
|
|
|
|
you can change the name of the function using two ways:
1. one right click on the button and thwen go to the button properties, there you can change the name of the functions that are relevant to the button.
2. go to the Form.Designer.resx and search for the function name. it's looks like:
button1.OnClick+=Bla Bla Bla (the name of the function);....:->
|
|
|
|
|
Actually, when double clicked by moust on the control in design mode, my cursor goes in funtion Button1_Load(...). But actually it should have to go in function Button1_Click(...).It is my problem.
Any body help me.
|
|
|
|
|
I want to drag a tex in a textbox from a list
Take an item from a list and drag it in a textbox
merwa
|
|
|
|
|
So what's stopping you from doing it?
If you have a question, ask it!!
SG
|
|
|
|
|
u have to do sth. like this
http://www.codeproject.com/useritems/Drag_Drop_from_GridView.asp
however u can also find a article on how to drag a text from listbox to textbox on this site.. try to use search facility
|
|
|
|
|
I am writing DragDrop functionality program and using DoDragDrop(...) method of control to fire OnDragDrop(...) method. Some times OnDragDrop is not getting invoked (but sometimes it is).
Any Ideas?
Thanks
kumar
|
|
|
|
|
try to search some articles on this.
as an example
http://www.codeproject.com/useritems/Drag_Drop_from_GridView.asp
|
|
|
|
|
Hi
I wrote a windows application. One of my client is sometimes getting the error below. I tested many times, but I never can reproduce the error. Does anyone know about this error?
Thanks
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Loading of the ImageList did not succeed. at System.Windows.Forms.ImageListStreamer..ctor(SerializationInfo info, StreamingContext context) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context) at System.RuntimeMethodHandle.SerializationInvoke(Object target, SignatureStruct declaringTypeSig, SerializationInfo info, StreamingContext context) at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context) at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context) at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.DoFixups() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex) at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.ResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString) at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase) at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) at System.Resources.ResourceManager.GetObject(String name) at SupportAliveOperator.CustomPanels.PanelVisitorInfo.InitializeComponent()
ozgur.nevres
|
|
|
|
|
|
Yes i read this.
I thought i didn't make a twice call. But after debugging step-by-step on my code, i saw that i made absolutely this mistake. Guess why: To fix another bug.
I have to always keep in my mind: "When you fix a bug, you may introduce a new bug".
Thanks for your response
ozgur.nevres
|
|
|
|
|
this error is because you dropped the images you imported to the imageList or maybe because you deleted them or changed their directory or because you deleted the resources file
|
|
|
|
|
DataGridTableStyle DGTS = new DataGridTableStyle();
DGTS.HeaderBackColor = Color.Red;
dataGrid1.TableStyles.Add(DGTS);
What am I missing to apply this style ;
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi Muammar,
Your code work well here. Please use your code after the this.Controls.Add(dataGrid1) .
EX:
this.Controls.Add(dataGrid1);
DataGridTableStyle DGTS = new DataGridTableStyle(); DGTS.HeaderBackColor = Color.Red;
dataGrid1.TableStyles.Add(DGTS);
Thanks,
Gopal.S
|
|
|
|
|
Funny but I cant find it in the designer class.
Thanks anyways!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
I'm developing a user control that is composed by other controls.
I'd like to know if it's possible to acces this inner controls at desing time when I use them in my application. I mean, if my control has a Button, Can I access that button once I've put the control in my application Form?
I Know I can access by code but I want to access in the designer. For example I wanto to change the location of the button.
I think it isn't possible, I'm right?
Thanks.
|
|
|
|
|
You can position your controls in the designer! however the positioning property should be set accordingly!
Gautham
|
|
|
|
|
You can position the controls of a user control in the designer for the user control. If you then put the user control on a form you can only positition the whole user control as one, and not any idividual buttons that happen to be on it.
|
|
|
|
|
Changing the modifiers of the inner controls from a default 'private' to 'public' may serve ur purpose.
Regards,
KKrista
|
|
|
|