Is it possible to disable the OpenFileDialog cancel button?
Is it possible to set the OpenFileDialog's cancel button enable = false? If so, How? I'm using winforms Edit OpenFileDialog file_open_dialog = new OpenFileDialog(); ...
Is it possible to set the OpenFileDialog's cancel button enable = false? If so, How? I'm using winforms Edit OpenFileDialog file_open_dialog = new OpenFileDialog(); ...
Hi, Similar to other user controls in C# to add to a winform (such as commonly found for xml formatting) does someone know of one for source editing? Hopefully, this includes the source for the control and does a pretty nice job of making source code readable in a visual studio kind of way. thanks Or maybe Microsoft provides one, but ...
I am using the Winforms ReportViewer in VS2005 to show a report which needs to have two small boxes that can be ticked with a pen when the report is printed. How would I do this? Would I use a font that has symbols such as a small boxes? Will the font that I use need to be installed on each user's machine? ...
Hi, I am creating a treeview which wil have folder images for directories and want to know if there is a way to access the system image list so that I can display the system default folder image. Thx Mark. ...
How Web and Desktop controls are recognized by some automation tool? What are their identifiers? ...
I have code like below. When the form is loaded, the textBox2 appears automatically selected and in focus. The calling sequence has to be like below. It would not be reproduced otherwise. Why's that? this.Controls.Add(this.textBox1); this.Controls.Clear(); this.Controls.Add(this.textBox2); The code is just an example of the real ...
I have an application where i am using Clipboard for copy, paste operations. For copying i have used this code Clipboard.Clear(); const byte VK_CONTROL = 0x11; keybd_event(VK_CONTROL, 0, 0, 0); keybd_event(0x43, 0, 0, 0); //Send the C key (43 is "C") keybd_event(0x43, 0, CONST_KEYEVENTF_KEYUP, 0); keybd_event(VK_CONTROL, 0, CONST_KEYEV...
Hi, I am building a Winforms client that needs to communicate with a backend. This backend is build using Nhibernate (with a VERY rich domain model) , message queuing and other. Now i do know about communicating over the internet ( mostly mq stuff) but i am at total loss as to how to let my Client Winforms App talk to the Application s...
hi if i have this in a string : 10/13/2010 8:38:40 AM how to make it to this: 13/10/2010 08:38:40 thank's in advance ...
.NET CF 3.5 How can I scale everything on my form ? If I do this this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; then the controls directly added on the form are properly repositioned BUT their size is not properly updated ! So how should I propagate the...
I am using .Net (C#, WinForms, Linq to SQL, SQL Server 2008) to develop a new line-of-business application that will replace a crufty old Foxpro application. I did not write the old app, but do provide support for it, and I am the in-house developer for the new app. One of the design decisions that was made years ago with the Foxpro app...
I have a Windos::Forms::GroupBox which contains a Windows::Forms::ListView. When I add items, I add items to the ListView I tell it to resize but how do I do the same for it's parent GroupBox? [edit] This is my custom resizing list control: ResizingListView::ResizingListView(void) { } void ResizingListView::ResizeVerticallyToItems(vo...
I know this could be a subjective question, but I want to know your experience and an estimation of how long it would take for a Winforms programmer to switch to WPF and write a simple application. I'm starting to build a windows application using .Net Winforms. Since the customer cares about the UI, I thought that it's a good idea to...
Hi, I was wondering why WPF defines a new and apparently identical version of IDataObject for its drag/drop system? I have application code which uses the winforms IDataObject which I now need to interoperate with WPF drag/drop events. Would it be safe to simply write an adapter class which implements System.Windows.Forms.IDataObject b...
I have created a custom WinForms hosting environment. Which has a toolbox and a PropertyGrid. The controls displayed in the Toolbox are inherited from existing WinForm controls. DropDownList Source: public interface IPropertyFilter : ICustomTypeDescriptor { PropertyDescriptorCollection FilterProperties(PropertyDescriptorCollection...
are there any ? found this prev question http://stackoverflow.com/questions/278342/tag-cloud-control-for-winforms-net-2-0 but that's 2 yrs old so hoping there may have been progress since ...
I have this C# code to enumerate controls of a Form instance: private void button1_Click(object sender, EventArgs e) { textBox1.Text = ""; Form2 form2 = new Form2(); foreach (Control control in form2.Controls) { PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(control); ...
Hi, it might sound stupid, but I need a way to take an XML file / string, and show it to a user in a form. I'm currently trying to use the WebBrowser control, but its Document field is read only. I tried setting DocumentText instead but it seems to be accepting HTML only. What control should I use? It can be anything in WinForms or Infr...
Hey all, Is there an easy way to databind a label AND include some custom text? Of course I can bind a label like so: someLabel.DataBindings.Add(new Binding("Text", this.someBindingSource, "SomeColumn", true)); But how would I add custom text, so that the result would be something like: someLabel.Text = "Custom text " + databoundColu...
Hello, I remember once I found a nice online tutorial that showed how WPF works through nice exapamle of converting WinForm application into WPF. But I forgot link to it. It was divided into multiple chapters. In first application was converted into WPF using WinForm "mindset" and then using specific technology of WPF (DataBinding, Con...