Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: Thomas Barbare [x]
code throw execption by Thomas Barbare
Answer 18 Apr 2013   license: CPOL
Your are not using the same Initial Catalog,First :string connstring = @"Data Source=LENOVO-41B3F2CE\SQLEXPRESS;Initial Catalog=IMS;Integrated Security=True;Pooling=False";Second :string constr = @"Data Source=LENOVO-41B3F2CE\SQLEXPRESS;Initial...
Problems with font in XNA by Thomas Barbare
Answer 18 Apr 2013   license: CPOL
Ok, I tried to find why you got that, take a look at this post : XNA weird 3D painting It's seems to be the same problem, a render state problem after drawing with spritebatchChange this attribute after using spritebatchGraphicsDevice.RenderState.DepthBufferEnable = true;
setup_Api_methods in c# by Thomas Barbare
Answer 18 Apr 2013   license: CPOL
UINT SetupDeleteError( __in HWND hwndParent, __in PCTSTR DialogTitle, __in PCTSTR File, __out UINT Win32ErrorCode, __in DWORD Style);ParametershwndParent [in] Handle to the parent window for this dialog box.DialogTitle [in] Optional pointer to a...
Answer 18 Apr 2013   license: CPOL
You can get the number of files matching the pattern :int Number= Directory.GetFiles("path", "pattern").Length;And then use this number for creating new file ex : int Number= Directory.GetFiles("C:\\myfolder", "Stanly*.txt").Length; ...
C#
Change default Excel by Thomas Barbare
Answer 17 Apr 2013   license: CPOL
You can change values of the default program for .xls in the Windows registry.A link to the Registry class
how to increment textboxvalue by Thomas Barbare
Answer 17 Apr 2013   license: CPOL
If the textbox can contain only numerical values :int value = int.Parse(textBox1.Text) + 1;else use :if (int.TryParse(textBox1.Text, out value)) { value += 1; }
C#
Answer 17 Apr 2013   license: CPOL
First you have to be able to log on the remote computer using windows credentials, I suggest you to take a look at this codeproject article Windows loginWhen you are logged in the remote computer :Before using this you have to reference System.ServiceProcess and add the following using...
C#
Answer 17 Apr 2013   license: CPOL
Regarding your last comment :We don't know how you wants to do that, but there is programs already do that.Take a look at the Sysinternals Suite, there is PsList which allow you to see remote process etc ... You can maybe call it and gather informations.PsList[+]
C#
Answer 17 Apr 2013   license: CPOL
Little code snippet about timer. Hope that help. Timer timer; int secondsToPlay; private void StartPlay_Click(object sender, EventArgs e) { timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); ...
Answer 17 Apr 2013   license: CPOL
As Sergey Alexandrovich Kryukov said :You can use the Control property Focused like that :foreach (Control item in this.Controls) { if (item.Focused&&item.GetType()==typeof(TextBox)) { MessageBox.Show("I'm the textbox...
C#
Answer 17 Apr 2013   license: CPOL
Check example here :Win32 Registry Setvalue
C#
Answer 17 Apr 2013   license: CPOL
Or/And use css
C#
Answer 17 Apr 2013   license: CPOL
Use that if you wants to keep the size ratio, best mode in most case.pictureBox1.SizeMode= System.Windows.Forms.PictureBoxSizeMode.Zoom;
C#
XML text Editor - Text Box by Thomas Barbare
Answer 17 Apr 2013   license: CPOL
You can also take a look at this Wysiwyg HTML editor tutorial written in C# which use DOM of IE.It may help you.Wysiwyg HTML editor written in C#
Answer 17 Apr 2013   license: CPOL
There is a lot of things to read on MSDN : Programming Outlook 2003but as db7uk said you have to write the mail body in a file and it's work
Answer 16 Apr 2013   license: CPOL
I think you can't use Directory class for FTP, use FtpWebRequest instead.FtpWebRequest Class[^]
How add bottom at Row datagrid by Thomas Barbare
Answer 16 Apr 2013   license: CPOL
You can add the column with that :dataGridView1.Columns.Add(new DataGridViewButtonColumn() { Name="ColumnName", HeaderText="Header" // add here properties for the new column } );
C#
XML Editing - Rich Text Box by Thomas Barbare
Answer 16 Apr 2013   license: CPOL
For your 1st statement use KeyPress event, it will be triggered everytime you hit a key.private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if(char.IsDigit(e.KeyChar)) { MessageBox.Show("is digit"); } }
Answer 16 Apr 2013   license: CPOL
You can also call an external program with arguments and it will do it for you. Like 7Zip for exemple :System.Diagnostics.Process proc = new System.Diagnostics.Process();proc.StartInfo.FileName = "7za.exe";proc.StartInfo.Arguments = "x " + folder + "\\*.*" + " -o" +...
Answer 16 Apr 2013   license: CPOL
You can bind at RowsAdded event.void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) { foreach (DataGridViewCell item in dataGridView1.Rows[e.RowIndex].Cells) { if (item.Value.GetType() == typeof(int)) ...
Answer 16 Apr 2013   license: CPOL
I think I understand your problem. My solution is to add an event to the dynamic textbox which will be called when the value has changed.In this case I really don't understand why you need to do that, your texboxes are empty.private void comboBox1_SelectedIndexChanged(object sender,...
C#

Page 1 of 1


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid