In a Windows Form application I have a Form with a UserControl that contains a child control. I have an event handler for the child control's Validating event. On the parent UserControl I call the ValidateChildren() method. But the event handler for the child control's Validating event does not run. The CausesValidation property is s...
I am new at C# and databinding, and as an experiment I was trying to bind the form title text to a property:
namespace BindTest
{
public partial class Form1 : Form
{
public string TestProp { get { return textBox1.Text; } set { } }
public Form1()
{
InitializeComponent();
this.DataB...
This is probably an incredibly obvious question, but I just can't figure it out.
I have a Windows Form managed by the form designer. I'd like to include a custom user control, also managed by the form designer. But I'm unable to get the custom control to show up in the Toolbox, even if I try manually adding it under the "Choose Items......
Is this a bug in Winforms? (tested on both VS2008 and VS2010)
private void Form1_Load(object sender, EventArgs e)
{
throw new Exception("Hey");
}
I don't receive any error in that code, awhile ago, I'm trying to formulate a solution for this question http://stackoverflow.com/questions/3204673/parse-number-from-string-v...
I have inherited a Windows Forms application and I have found that a .EXE file gets generated into the obj\Debug folder everytime I compile.
I am more a Web Forms kind of developer so I am a little confused as to what is happening here. Why is it a .EXE and not a .DLL? What does this file actually represent? Is this the default behaviou...
Hi folks,
Good Day!
I have a datagridview using datatable as my datasource. Now my problem is how do I keep my datatable sync to our Server database? Like for example somebody tried to update the database so automatically my datatable will be update too. Without using iteration. Is this possible guys?
Thanks a lot.
Regards,
kurt
...
Using the sample in this link, I tried replacing the SWF file with one that has a Fullscreen button. It also has a listener that shows an alert box if ESC is pressed and restores to original size.
Clicking on the Fullscreen button shows the SWF in fullscreen, but pressing ESC does not restore the SWF to the original size.
The form has...
i need to use Progress bar in my application.
It takes more than two minutes to compete the process but it may vary based on the situation
Can i use progress Bar to show the the progress of the application without knowing the maximum limit and step value
...
My application is something like the Spy++ application: i want to be able to automatically retreive all the different controls of the active window (any application) and their children, and for each control i want to know the type, the name, and the value (caption or text).
I am using a C# windows app.
what is the solution to iterate ...
Hi,
I've had a long look through MSDN documentation and all I'm starting to think that this editor is defined as Internal only. I'm guessing it is similar to the CollectionEditor, though this does provide any ToolStripItem specific elements.
[EditorAttribute(typeof(System.ComponentModel.Design.CollectionEditor), typeof(System.Drawin...
I have a datagridview in a winform that displays the content of a datatable which holds data recieved from my DB.
One column contains the urls of different sites.
I'd like to turn all the site urls into links e.g:
from : htttp://stackoverflow.com
to : http://stackoverflow.com
I think I found what I need in
http://msdn.microsoft.c...
I'm writing a custom TextBox that upon gaining focus changes its border style.
As adding a border causes the control to overlap with those neighbouring it, I temporarily bring the text box to the front of the dialog (using textBox.BringToFront()).
However, once editing is complete and focus is lost, I would like to send the control bac...
Any help on existing tab control like Chrome tabs?
I have been searching all over for mutitabs control that allows dragging each tab, with no luck.
...
Hi I'm a beginner. Can anyone please tell me how to disable the task switch keys using c#
...
Any suggestions on how to create a Photoshop style floating tool palette? I've tried several ideas such as:
Creating a child window, setting its FormBorderStyle to FixedToolWindow and showing it as a child of the main form, but the tool window steals focus from the main form.
Creating a child window as above and using various combinati...
I'm open sourcing my app, which was built in C# using Windows Forms.
Are there any licensing issues I should be aware of? In particular, are there any open-source licenses that I'm prevented from using?
...
I am trying to deploy a simple windows forms application using the standard Publish option in Visual Studio. I am using a SQL server compact file (.sdf) as my database. When I deploy the app and install it on a test computer, I get this error:
The Path is not valid. Please check the directory for the database.
and then it shows me the ...
I'm writing a VB.Net WinForms application that has multiple data girds on any given form. On one such form, the data grids are loaded into split containers which in turn are located on a tab control. The load method for each data grid is threaded so that an animated "Loading" form can be shown. I would like to position the new loading...
I want to use an xml file in a windows forms application. I added a new xml file to my project. When I reference the file like this xmlDataDoc.DataSet.ReadXml("~\TestLog.xml"); how do i just tell it to look at the xml file that is part of the project? The line I put above doesn't work.
...
In my application I have two places where the user needs to select a file. In both cases, the files are in different directories, but they are generally the same between runs.
The OpenFileDialog appears to be defaulting to the last directory used, but this is useless to me since it is almost always the wrong folder, and I end up alterna...