Search:
Type: Posts; User: trenches
Search:
Search took 0.04 seconds.
-
September 29th, 2007, 03:22 PM
It looks like SetContainerType is expecting an int and not ContainterTypes as its parameter, so, as Mutant_Fruit suggested just change the parameter type from int to ContainerTypes and you won't need...
-
September 27th, 2007, 05:02 PM
Where's the source of the parameter information? If it's a database then maybe you can pass a datarow object to the constructor. . .
-
September 27th, 2007, 04:35 PM
I have a SQL task that fetches some data from sql server 2005 which is then fed to a foreach loop to iterate through the recordset and call a webmethod for each record. The method parameters are...
-
September 25th, 2007, 11:10 PM
Can you move the dialog (form?) to assembly A? You can still leave the logic in B. . .
-
September 25th, 2007, 10:58 PM
Adding to Mutant_Fruit's suggestion, you should declare default constructors on on these classes, e.g., Alpha(), so the actual construction process is fixed. . .
-
September 24th, 2007, 08:09 PM
Include
using System.Reflection;
-
September 23rd, 2007, 08:52 PM
Is this the property you're looking for
dataGridView1.Rows[0].Selected = true;
-
September 23rd, 2007, 08:45 PM
Arjay makes some very good points and they'll make more sense to you as you gain experience. Here's your code, slightly modified to compile and work
public class class1
{
public string x =...
-
September 23rd, 2007, 08:26 PM
It sounds like you are looking for something like an event bubble, as far as I know that's only available in web environment. So, I think your options are limited to what you seem to be dreading and...
-
September 23rd, 2007, 12:26 AM
-
September 22nd, 2007, 08:52 PM
you need to cast before you can access the child properties. . .
Child cs = arrayX[0] as Child;etc.
-
September 22nd, 2007, 08:42 PM
So, you can't reference ICQMAPI.dll in C#, is that the problem?
-
September 22nd, 2007, 12:02 AM
The DisplayValue shows in the combobox because you are writing it to the bound dataset which is on the client. If you also explicitly write the ID, It'll work as is. However, that may not be a good...
-
September 21st, 2007, 11:35 PM
Well, it's obviously not returning the ID, so try refreshing the datasource and you may also need to rebind the combobox
-
September 21st, 2007, 09:46 PM
You wont be locking the UI if you listen on a port. Try this out
const int PORT = 81;
const int BACKLOG = 10000;// it will vary based on os
// create the socket
Socket listenSocket = new...
-
September 21st, 2007, 11:06 AM
The answer may lie in the selectcommand query from the two apps. So, why don't you post the two select queries and may we'll know why. . .
-
September 20th, 2007, 05:27 PM
Your tblMachinesTableAdapter needs an InsertCommand
-
September 20th, 2007, 05:15 PM
-
September 20th, 2007, 05:13 PM
Something like this may work
Process process = new Process();
//Program you want to launch execute etc.
process.StartInfo.FileName = @"C:\Program Files...\R-2.4.0\bin\R";...
-
September 20th, 2007, 04:26 PM
You may also consider a slight addition to jmcilhinney's code to prevent malfunction if some other developer was to set the button's dialog property to OK in design
private void button1_Click(object...
-
September 20th, 2007, 03:40 PM
This could do the trick (only the first numeric though. . .and the numeric must have space around it)
static void Main(string[] args)
{
string data = "some number 1,006.05 and other value";...
-
September 18th, 2007, 05:34 PM
Arjay makes a very good point but it could be a little bit of work, depending on the scenario. I've run into similar situations and found it simpler to add a preventive validation after the fact. . .
-
September 18th, 2007, 05:29 PM
You're right, I did have it mixed up, thanks for pointing that out. So, the only benefit of a ref on a reference type so far is the ability to have the called method point it to a different instance...
-
September 18th, 2007, 05:10 PM
If you create a local instance of Class1 in the Class2.Test (using Arjay's example), the instance goes out of scope when the Test method does and would get garbage collected sometime after. So, what...
-
September 18th, 2007, 02:23 PM
This will work
name = "\"nick\"";
This will not work
name = \"nick\";
|
Click Here to Expand Forum to Full Width
|