blah blah blah is here! blah blah » Close

0
votes
1 answers

Check button back color then change

In Winforms, i've 1 Button. how to do 1. after button clicked, the back color setup in Red 2. 2nd button clicked, if back color is in red color, the button back color become as normal how the if else statement looks like? Me only have ...

0
votes
1 answers

Enabling/Disabling buttons on a form based on selection from combobox

Hey guys i am new to Visual C#, and would like to get some help. I have two forms, Form1 and Form2 Form1 has a comboBox where numbers can be selected. and Form2 has a bunch of buttons which are disabled. Once i select a number from the ...

0
votes
1 answers

Outlook Add-In event after send?

foamy
1822

So I have this code, right: private void InternalStartup() { this.Startup += new System.EventHandler(ThisAddIn_Startup); this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown); this.App ...

0
votes
1 answers

Print picturebox image

Hi Guys, I have a picture box and a multi line text box on my form, i cant seem to get the code right to print the image from the picture box and the text in the text box with the text at the bottom of the page, The code below draws a rec ...

0
votes
1 answers

doubt regarding properties

Hi, i know that we should not have access modifiers for both get and set of a property. can anyone pl. tell me the reason for it.. Thanks & Regards, Anil.

0
votes
1 answers

update database

I can not update database using datagridview Can any one suggest me what to do .

0
votes
1 answers

Chopping Sting

inputPath = @"\\machinename\\newfolderName\\targetfolderName"; how to get expected output as shown below : output : targetfolderName Thanks.

0
votes
1 answers

How to create a user groups and assign authorities in win app c#?

hello i want to create a user groups in my win app, such that the admin can decide which authority can he give to any registered user at runtime.. for example the administrator can prevent any user from viewing any form or control in the ...

0
votes
1 answers

.NET framework.. version check

Hi all, My questions is rather non technical.. How can I find which version of .NET framework is currently associated with my Visual studio 2005. When I checked control panel, I found that i hav all three versions installed.. 2.0, 3.0 a ...

0
votes
1 answers

what for?

Have a problem to understand for command. Have a example here First what is line 1, why those , What about line 2. so confusing to me. Thanks 1. int i, somme, n=10; 2. for (i = 1, somme = 0; i <= n; i = i + 1) 3. somme = somme + i ...

0
votes
1 answers

How to make a single, protable EXE file for a program? (C#.net 2005)

I need to compress my program into a portable EXE file... how do I do that? I'm using Visual Studio 2005

0
votes
1 answers

sound problem - game

hello, im programming in windows application and using this code for sound: System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.SoundLocation = @"..\\ctf.wav"; player.Pla ...

0
votes
1 answers

[JOB] Silverlight/C# Developer, NYC | 110-140k

Recruiter/Client notes: Locals preferred, but will accept relo and will pay relo for a rock star. US/GC preferred, but will transfer H1/H1B visas too. Candidate has the option to work in their satellite office in San Fran, but they'd pr ...

0
votes
1 answers

Date Time Picker Value

I'm trying to copy the value from a date time picker to a text field on button click, what code would work, something like the below? date_TimeTextBox.Text = dateTimePicker1.ToString("DD/MM/YYYY");

0
votes
1 answers

Egular Expression

"^([0-9]|[1-9][0-9]|100)(\\.00)?$", how can I fix this regular expression to only allow input 1.00 and 100.00(no inputs of 0.00 allowed). Thanks

Feedback