I searched for a similar question, but haven't seen anyone ask this before.
I've been a web developer for a few years now and have never touched windows forms. However, I am taking a job that deals almost exclusively with windows forms.
What tips do you have for someone making such a move? Any resources you can share?
Thanks!
...
I've got a subclass of DataGridView that adds all the columns it needs in it's own constructor, but when I use this component in the VS designer it insists on generating code to add the same columns on top of the ones added in the component constructor. How do I force it to not generate code for columns it already finds populated inside ...
I have an application where I am trying to mimic the "soft description" textboxes like those found for the tags and title locations on this site.
The way I've done this is essentially to create my textbox, and depending on what happens when the mouse pointer enters or leaves the control, it updates the content of the textbox to get the ...
Hi All
I Want Create A Software to Input Data in WebForms Automatically (like Robot) And Accept Input Data.
How I Can Create this Software in C# (Windows Application)?
what Technologies Must Be Used?
What OpenSource Project Exist for use?
Sample Code And etc...
Please Help Me
...
I have a simple winforms application in VB.NET 2008. I am using a form with a completely custom look, so there is no title bar, thus no minimize, maximize, and close buttons. I've created custom controls to replace those.
If I have my app running, and I click the 'Show Desktop' shortcut, all the programs minimize properly, including mi...
I am baffled by this simple task i do over and over again.
I have an array of child forms. The array is initiated in another form's constructor:
frmChildren = new ChildGUI[20];
When the user requests to see a child form, i do this:
if (frmChildren[nb] == null)
{
frmChildren[nb] = new ChildGUI();
frmChildren[nb].MdiParent = ...
I populate a ListBox control with my own objects redefining ToString(). The objects are displayed correctly when I just add those objects using listBox1.Add(myObject). However, if I later change something in this object, no changes are displayed in the listbox. Debugging reveals that an object inside listBox1.Items is indeed changed, but...
I have three classes derived from Control...Class1, Class2 and Class3.
Class1 is the parent. It contains a list of Class2 objects, which, in turn, each contain a list of Class3 objects.
Each class overrides the OnPaint method to paint itself.
Class1 and Class2 paint themselves fine but Class3.OnPaint is never called.
Do I need to do...
I (think I) want to develop a custom control for my program in VB .net where I type into a textbox and simple search results will then be displayed underneath it (from a predefined set of items). Like auto suggest in google search.
I believe the combobox does something similar to this but I think it only works on prefixes.
At the momen...
Hi All
I have code that lets be drag around a borderless form in winforms that I've been using for several months now, which works extremely well.
But when I first was given the code, they used this.Invalidate(); in the MouseMove event of the Form, and the Form flickered a little and was slow when dragging around. So, I replaced Invali...
I have a custom logging framework writing to a System.Windows.Forms.TextBox. The way i am writing to the TextBox now is like this:
tbLog.Text += newLogEntry.Text;
The problem with this approach is that each time this is executed the strings from the tbLog.Text and newLogEntry.Text are concatenated, and then assigned to tbLog.Text. As ...
Hi guys/gals,
I'm making changes to a file, the 'source' file is a plain text file, but from a UNIX system.
I'm using a StreamReader to read the 'source' file, I then make and store the changes to a StringBuilder using AppendLine().
I then create a StreamWriter (set-up with the same Encoding as the StreamReader) and write the file.
N...
I'd like to use a non-standard font for my .net 3.0 Winforms application.
This font might be installed on some of my user's computer, but it will clearly be missing on some others.
How can I ship the font with my program ? Do I need to install the font ? If so, is the lack of administrator privileges going to be an issue?
...
I'm displaying a set of search results in a ListView. The first column holds the search term, and the second shows the number of matches.
There are tens of thousands of rows, so the ListView is in virtual mode.
I'd like to change this so that the second column shows the matches as hyperlinks, in the same way as a LinkLabel shows links...
Hi all,
Please check Google transliteration. We need something like Google transliteration commercial solution which can be integrated in our winforms application. our application will not have internet connectivity so using Google transliteration API is not an option for us.
...
I run into a very strange problem in my C# 2.0 WinForms app and I'm not even sure if its worth asking SO, because the problem occurs in a strange setup and I don't think that you could reproduce it without my sources, but I'm totally out of ideas.
I have a Form with a TreeView on the left and an ListView on the right. The TreeView shows...
I have a winform app for in house use where the below is very common.
Int32? afhAgreement = null;
if (!lkuReveiewAFHAgreement.Text.Equals(string.Empty))
{
afhAgreement = (Int32)lkuReveiewAFHAgreement.EditValue;
}
DateTime? afhAgreementDate = null;
if...
I’m using the WebBrowser control as a html editor in a WinForm application I am building. I have a button which pastes some text into the WebBrowser control which works fine on every machine except 1! Here is the code behind the button click event:
Clipboard.SetText("Some text ...")
WebBrowser.Document.ExecCommand("paste", False, Nothin...
I have this in my form's designer code:
this.referenceNumberTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.clientDetailBindingSource, "ClientDetails.ReferenceNumber", true));
In a method in the form just before it gets displayed I say
this.clientDetailBindingSource = passedInBindingSource;
The controls that ...
I am using ClickOnce deployment for a Windows Forms application and I need configuration information on a machine basis that persists across deployments and across user profiles. As such, per user configuration does not help. I would also like the configuration file to be easily accessible with a text editor in a well known location on...