Quantcast
Channel: Windows Forms General forum
Browsing all 12583 articles
Browse latest View live

Change the button Location

Hi All,I’m working on Visual Studio 2010 C#Thanks to Mr. Blackwood I’m doing the following:privateint Form1StartingHeight;privateint Form1StartingWidth;privatevoid Resize_Begin(object sender,EventArgs...

View Article


Parse Tx(N) and Tab in rtf

I have a requirement where I need to parse the RTF text but I have a problem with tx(N) and \tab because I didn't understand how parse it and how I can replace it by space.Example:{\rtf1\ansi...

View Article


Adding Veritcal Scroll to ContextMenuStrip

Been reading the MSDN doc on the ContextMenuStrip and looking on the internet for the last 2 days on how to add vertical scrollBar to ContextMenuStrip (winForm C#), I can't find anything. Does anyone...

View Article

Image may be NSFW.
Clik here to view.

CONNECT USING TCP

Dear Friends,As I want to connect to remote device and want to fetch the data if some one help me to how it can be achive  in vb.net the  details are given below. please help me if possibleasad

View Article

Anonymous method and static vars

I have what may be a fairly simple problem to anyone familiar with implementing anonymous methods.The first code snippet below shows the typical code-is-working state. A global static IntPtr is...

View Article


How to get string values out of a custom List with a loop...

OK, so I figured out how to create a list that holds two values per item.  I just don't know how to extract them later...  I pasted the custom class and the basic two commands I'm using to instantiate...

View Article

Play MP3 with BackgroundWorker using mciSendString

Hello I am trying to play an MP3 file with BackgroungWorker. My playing function is working just fine without the backgroundworker, so why I can't play it like this?BackgroundWorker bw...

View Article

How to create auto id in a text box using sql server in back hand & visual...

I applied those code in code window but it's not Increasing.plz help me.........PrivateSub costcenterid()TryDim connAsNew SqlConnection(gstrConnection)conn.Open()Dim cmdAsNew SqlCommandcmd.Connection =...

View Article


Best practice to select and copy a file to a remote location?

I have a requirement where when a button is clicked the app connects to a remote pc and the user can browse to a folder on the c drive then copy a file to their pc (not on a LAN but a remote...

View Article


An option to rescalling the GUI size

Hi All,I’m working on Visual Studio 2010 C#I need to give an option to the User to change the Form size i.e. the User could drag the form to other sizes than their default sizes.Is there a function...

View Article

Works on local machine, not on server: Could not load file or assembly...

We implemented the AjaxControlToolkit in development, added some widgets and everything works fine.The local machine is a win7 64-bit machine.When we deploy the web application on our server (win...

View Article

Two events "Contention"

Hi All,I’m working on Visual Studio 2010 C#On my program I’m using the Maximize/Minimize buttons and besides I’m giving the option to manually change the Form.Is there an option to find the difference...

View Article

Form onLoad event not being fired on C# Visual Studio 2010

I am developing a WinForms C# based application in VS 2010, all in a sudden several forms were not firing the onLoad event.I have no idea what can be wrong, last time I checked the forms were working...

View Article


Measure string seems returning wrong first character width!

I've been coding a new usercontrol textbox. (I've my own reasons)Everything is ok, except one:It seems that, the first character of any string, was wrongly measured, even I use Graphics.MeasureString...

View Article

Fixedsingle borderstyle form with sizegripstyle display to resize

Hi ,In my application i want to set the sizable option to my fixedsingle borderstyle form and want to display the sizegripstyle.pls help me....thanks in advance....

View Article


Image may be NSFW.
Clik here to view.

RichTextBox control formatting issue

I have an extended RichTextBox control which is working properly in Windows 7. It is loosing formatting if I run the same on Windows 8. Please find the images I had for Windows 7 and Windows 8.RTF is...

View Article

How to add items to a listview with tile view from bottom to top?

Hi, very new to C# so please be simple!I have a listview created with tile view.  How do I add items to the listview from bottom to top, left to right? (or top to bottom, either will do)The size of the...

View Article


How Do I Set PrinteDocument

hello experts How Can i set PrindCoument so that it can print on 210mm x 90 mm paper centrally In Landscape Mode.i have written the following Methods.On A4 Size paper, portrait Orientation it prints...

View Article

MessageBox - Bold Certain Text

Is there an easy way to accomplish the following:For the code below, I want everything on the right (ball.LogoName, ball.BallColorDescription, etc) to be bold, so that when it shows in the messagebox,...

View Article

Pit file and HL7

PIT file format is one of two industry standard formats used for the electronic transfer of investigation information such as pathology.HL7 is Health level 7.Question is how convert pit file to hl7...

View Article
Browsing all 12583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>