The documentation for OpenIcon says that it will restore a window to its previous size and location. This isn't happening - it is restoring the window but not to its previous size. Is there something extra that needs to be done when calling it from C#? The ReturnValue indicates success.
Yep , I'm not even sure you can find out when it's been JITted, I remember someone a few years ago having real trouble tracking down a bug and it was eventually sussed out that the method had been inlined. This might have been in a beta version though.
You set it's properties just like you would with any other control. Is this .NET 2.0? If so, you automatically get two panels (a left and right, by default) that you can then drop other controls onto.
If it's earlier than .NET 2.0, you need to drop a panel on the form, drop the splitter control, and then drop another panel. If I remember correctly, the splitter will automatically dock left...if not you will need to set the dock properties by hand. After that, you just drop controls onto the respective panels.
In just two days, tomorrow will be yesterday.
1. Drop the control you want on the left hand side on the form, and dock it left.
2. Drop the splitter control on your form (it will dock to the left automatically).
3. Drop the control you want on the right hand side on the form, and dock it fill.
There are actually 2 different controls that provide similar functionality. There is the 'legacy' splitter control that is the same as the previous versions of visual studio. You have to drop a panel, then the splitter, then another panel.
The better control, IMO, is the SplitContainer. This shows up with a default left and right panels already configured. You can change the orientation so it is top and bottom. It is a container control so you can drop pretty much whatever you want inside of the contained panels.
You'll most likely want to set the minimum sizes for the panels (property names will be Panel1MinSize and Panel2MinSize. This will keep the user from shrinking them too far.
i want to read a remote directory (ftp/http) or any convenient method..and get all the links or names of the files withinn that folder. is there any way to achive this..if it is ftp..assume that i have the ftp username and password.better if it is a method for a web application .
I'm struggling with a property grid control.
Here is what I do:
- I display properties associated to a specific object in the property view.
- For each property, I use a specific editor and allows value to be changed in another form. Each property has access to a specific editor which inherits from 'UITypeEditor'.
- In the EditValue method of my editor, I call my form using the 'ShowDialog' method.
Here is the beginning of my EditValue method:
publicoverrideobject EditValue(ITypeDescriptorContext context, IServiceProvider provider, objectvalue)<br />
string startingPropertyValue = null; // The value that the property had before we display the modal form.<br />
PropertySpec currentPropertySpec = null;<br />
if (context != null && context.Instance != null && provider != null) <br />
//if (provider != null)<br />
editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;<br />
My problem is that I'm not able to retrieve the values selected in my second form and display them for each selected property.
I am kind of stuck.Please if you can help me with the following
How to create a grid at run time in side a for loop?
hence the number of the grids on a page is equals to the number of times a for loop runs.
My data table contains list od "Id"s from users selection using a checkbox.
Ex. for(int i=0;i<=dt.rows.count;i++)
execute a stored procedure with Id parameter.
public static void RunAMethod(string methodname)
methodname(); //method to run
///---- so I could do this from another method
Reflection is way slow. You should consider to use delegates, which are quite similar to C's function pointers. The topic is not very simple, but delegates are very powerful and elegant. Here[^] is an introductory article on MSDN Magazine.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki
Delegates seem very interesting to me also...although I am having a little difficulty visualizing their usage properly from the MSDN article, is there anyway you could write out a little snippet showing how I could use delegates to call a method whose name is based on a string I enter?
Last Visit: 31-Dec-99 19:00 Last Update: 2-Dec-23 3:10