hi,
I was just wondering why do we need installer programs to create setups?
We can create a desktop application which will do registry changes, registration of assembly, creation of config files and all.
Why dedicated installers are there? Do they serve any other purpose or task that a desktop application cannot do?
...
I have a client-server application, in which I use classic Sockets and threads for receiving/sending data and listening for clients.
The application works fine, but after some random time I get the ObjectDisposedException:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'MainForm'.
at System.Windows.For...
How to bind a control Boolean property to contrary of Boolean application setting?
For example I want to bind "Visible" property of a button to "!Flag", that "Flag" is a Boolean field in application settings.
...
I have a Panel which hosts a number of child controls in a grid layout. The child controls each consist of a Panel with a PictureBox and a Label. When one of these child controls is clicked it becomes "selected" (which basically entails changing its background to a different color) and an event is fired. In the handler for this event,...
I've developed a sample software in c# windows Appliation. How to make it a multilingual supporting software.
For Example: One of the message boxes display " Welcome to sample application"
i installed the software in a chinees os , but it displays the message in english only.
i'm using "string table" (Resource File) for this problem. ...
If we imports more namespace in the code file(cs file) then it affects on perfomance ? Like we should add namespace in the cs file as needed. That is adding more namespace in the cs file affects performance ? Like
using System;
using System.Data.Sql;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq...
hi
i have pdf file and i need to read the text and to insert to any val.
how do to it with C# (winform) ?
thank's in advance
...
Hi,
As in the question. Do you know any good (it would be nice if free) WYSIWYG html editor for WinForms (C#)? There is only one requirement: it has to be manage code only (by this I mean, it can't use mshtml COM object (WebBrowser control)).
I've found this: http://www.modeltext.com/html/ but there is no download/buy option.
I will b...
Hi All.
I have a problem creating MenuItems for a TreeView dynamically: here is the (simplified)code i'm using.
public class CTMProvider
{
private CTM myObject;
//internal CTMManager manager;
//internal string IEEEAddress;
//internal System.Net.Endpoint endpoint;
public CTMProvider()
{
myObject = new CT...
UI is created in VS 2008. I'm using C# .... I need to let the user move/focus between text fields from top to bottom by clicking tab button. How can i do it?
...
Hi Guys,
I have an assembly with few versions registered in the GAC. Now, I want one of my clients which uses this assembly (version 1.3) to point to the newest version (1.4) without opening the source and recompiling the client.
I saw an article demonstrating a technique for doing so using the application config file (winform applicatio...
Please tell me how can i align center to my listbox's text in desktop application.
i am using c#.net in visual studio 2005
I am using window forms..
...
My application has the following UI configuration:
The main form is an MDI container. Its child forms are attached to a TabStrip.
Each user has his set of child forms. Depending on the active user, only that user's child forms are displayed, together with tabs.
This is achieved by going through the main form's MdiChildren and setting ...
I am retrieving a WindowsIdentity object by calling:
win_id = System.Security.Principal.WindowsIdentity.GetCurrent();
with the intention of getting the currently logged on user name, which works fine.
WindowsIdentity implements IDisposable, but since I din't create the object myself, do I still need to call .Dispose() on it when I am...
I am using the Microsoft Chart Controls for .NET 3.5 (C#) and have a chart in a winform.
My hope is to allow the user to change the color palette based on their preference.
How do I iterate through the color properties of the ChartColorPalette and add them to a combobox list?
I know it should be something like:
for each(something in ...
How can i pass the URL property in web browser into an if statement....
private void button2_Click(object sender, EventArgs e)
{
var GameStats = comboBox1.Text;
if (GameStats == "BattleField: Bad Company 2")
{
//Make URL equal to http://statsverse.com/
}
}
...
In a winforms tabcontrol, is there a way to make a certain tab visible but not selectable?
I can make it Visible = false, but I would like the tab to show up but simply not be clickable/selectable.
...
I have a use case where any text box created in the application should be handled and some events should be listened to. I checked the ControlCollection, it does not seem to have a "created" or "modified" events. Also MessageFilter could not receive any create, or destroy events. Is this an optimal way to receive messages or windows hook...
I'm using the following code to put the focus on a window (in this case, a notepad window), and sending some key presses to it everytime button 2 is clicked. However, when I press button 2, nothing happens. Can anyone tell my why my sendkeys command is failing?
public partial class Form1 : Form
{
[DllImport("user32.dll")]
static...
I'm having trouble working out how to lock my application out of a section of code while it waits for a response from an external program
I've used Synclock on a section of code with the Me object in the expression. In this Synclock I call an overridden ShowDialog method of a dialog box, which has a timeout parameter, but does return th...