I have a VS2008 setup project, which creates a setup.msi which installs a WinForms application (C#).
Every time I update the version number, the users first have to uninstall the previous version before they can install the new one. Otherwise we get the dreaded "Another version of this product is already installed" message.
This is wha...
I have a form with a picturebox which displays a picture and some overlay drawn in the Paint event handler of the picturebox. The overlay updates itslef (basically changes opacity of different parts of the overlay) based on mouse movement.
Currently, I am calling pictureBox.Invalidate() from mouse moved handler to ensure that the overla...
UPDATE: Just to summarize what my question has boiled down to:
I was hoping that constructing .NET forms and controls did NOT create any window handles -- hoping that process was delayed until Form.Show/Form.ShowDialog
Can anyone confirm or deny whether that is true?
I've got a large WinForms form with tab control, many many control...
Does anyone have any success with WinForms ChartFX 6.2 on Vista or Windows? I'm after a sanity check that it's not just our code. If it's a known issue I can say that upgrading is the only solution.
Currently we get an exception in the Scatter Chart when adding annotations, it looks like it's in the GDI, but the exception can't be caugh...
I am adding a couple hundred controls to a form and the form flickers until its done as it adds each control, is there anyway to stop this?
...
I was wondering whether it's possible to validate a required size for an icon before trying:
Dim myIcon = New Icon(theIcon, requestedSize).
This falls over for negative numbers, so that's an easy check.
It appears it falls over if the number is less than half of the smallest icon.
I've looked at the icon class but can see nothing for...
Is there a way to restart a windows application written in dot net using dot net code
I mean the application should exit and restart itself, on click of a button
...
Hi,
I used to have one project where i had defined all my application settings. In all the different forms I binded controls to those settings and everything worked great.
I decided to split the one project into several ones. One of the projects is now shared by all and that project is now hosting the application Settings.
The problem i...
Hi i want to add controls to my form with a general method, something like this:
void addcontrol(Type quien)
{
this.Controls.Add(new quien);
}
private void btnNewControl_Click(object sender, EventArgs e)
{
addcontrol(typeof(Button));
}
is this possible?
...
Hi,
I currently have a Textbox on a Windows Forms, and I need to dynamically add a PictureBox box control at the right of the Textbox.
I create the PictureBox programmatically and I when setting the location of the PictureBox, i'm setting like this:
pBox.Location = new Point(tbControl.Location.X + ctrl.Width, ctrl.Location.Y);
So i'm...
I'd like to display a string that containts html code (mainly for formating purposes like italic, bold, indentation, colors etc.) from a C# console application.
I don't think I'll need to go with a WebBrowser class for that, since there won't be any kind of navigation possible.
1) What would be the most straightforward way to do it?
2...
How to auto save all properties winforms when closed and auto load all properties winforms when load ? C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace SControl
{
public partial class For...
Hi All
I'd like my app to be able to communicate with itself via the internet but this is proving to be impossible for me. One thing I've never been able to work out is Tcp or the whole networking thing in general.
I have read the docs and seen literally over 30 samples, none of which have ever worked.
All I'm trying to do is send a m...
I am trying to make a desktop client for Request and Response application.
I am able to do GET requests easily. But I was wondering whether someone could help me work out how I could do a JSON request and response. and parse it to a string, from there I can workout how to slit it all up, thanks.
...
I have an application that has 2 forms. When I click a button on form 2 I want it to be able to change the text in form1:
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form1.label1.Text = "Fred";
}
}
The co...
I am trying to save session data to the users local ApplicationData folder, but it Windows just seems to create a new ApplicationData folder with the files inside it wherever it wants. Sometimes it ends up on my desktop, and sometimes it's elsewhere. (like the bin folder, for example).
It doesn't make any sense.
I know that it redirect...
Is there a way to get asynchronous auto-complete in a Winforms TextBox or ComboBox? AJAX is so nice, and I would be amazed if the .NET framework doesn't have a thick client equivalent.
...
Hi Guys,
I'm developing a WinForm app that has an MDI with a menu strip and some menus.
The app has to be themable so the user can choose their own background colour, font colour and font.
I'm having a bit of a problem theming the menu that is currently dropped down. I've been using the backcolor property and set it for both the menu ...
I have a .NET MDI form based application.
I would like to contain errors thrown in a child form within that form so I can invalidate it without closing the entire application.
Is there a solution that does not involve catching all errors in Application.ThreadException?
...
hi every body
i am building a chat system i want if user send a message or recive a message the color of the nickname is blue in the richbox
...