Forum: C# Jul 11th, 2007 |
| Replies: 1 Views: 2,123 yes you can pass an array such as
MyMethod(byte[] jpgstream)
{
}
parameters are passed by value as a default so no need to specify byval. If you want to pass by reference then specify ref... |
Forum: C# Jul 10th, 2007 |
| Replies: 1 Views: 1,203 I personally put them in seperate assembly for testing and not compile the assembly for deployment. |
Forum: C# Jul 10th, 2007 |
| Replies: 3 Views: 5,004 It seems you have copied (or used) a VS 2003 application in VS2005. There were some subtle changes when VS2005 was introduced which included Partial Classes.
Previously when creating a windows... |
Forum: C# Jul 10th, 2007 |
| Replies: 1 Views: 1,094 You have all your logic in a big tangled mess.
I suggest you start by writing in pseudo code what you want to do and then code. You have while loops that do nothing, while loops inside for loops... |
Forum: C# Jul 10th, 2007 |
| Replies: 3 Views: 1,828 For real simplicity just add a string to the items collection with dashes in it "-------" or underscores "________"
Not nice but simple.
Otherwise you will need to use the GDI tools and the... |
Forum: C# Jul 6th, 2007 |
| Replies: 3 Views: 3,148 90% of what you do in C# (or any OO language for that matter) is in functions.
I am not sure exactly what you are asking though - I know you are new to C#. You ask if you can put some repetative... |
Forum: C# Jul 5th, 2007 |
| Replies: 9 Views: 2,481 Hey guys
Dont reinvent the wheel :) the guys at Microsoft have developed a central data access layer and other useful stuff. It is in their applications blocks in Patterns and Practices and there... |
Forum: C# Jul 5th, 2007 |
| Replies: 1 Views: 5,634 the arguments are an array so you add the whole argument into the array.
eg. p1.arguments.insert("loginname=Admin",0);
p1.arguments.insert("loginpassword=true",1); |
Forum: C# Mar 6th, 2006 |
| Replies: 24 Views: 5,491 well c# can work with 1.1 if you built it with 1.1. something built on 1.1 will run on .net 1.1 or 2.0 but something built with .net2 will only work on 2.0 runtime |
Forum: C# Mar 6th, 2006 |
| Replies: 24 Views: 5,491 no. every program needs its framework, whether it is java or anything else.
Why? Problems? |
Forum: C# Mar 5th, 2006 |
| Replies: 9 Views: 6,316 when do you call CalcColumn()?
You havent quite grasped the concept which is where you are going wrong but thats why we are here :)
Are you using a strong typed dataset to get your data? You dont... |
Forum: C# Mar 5th, 2006 |
| Replies: 9 Views: 6,316 database1Dataset.Columns.Add(Column1);
that line is incorrect
Cannot add a column to a dataset... need
database1dataset.Tables["sales"].Columns.Add(Column1);
if sales was the table name |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 for some reason the posted message didnt show up.
It is probably because he doesnt have the framework on his pc. Just go to MS Downloads and download dotnetfx.exe for .net 2 (that way he can run... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 not paying attention again!!! lol
hklp = hklp.OpenSubKey("HKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users");
is wrong. hklp already equals... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 lol dont worry.. will teach us both to pay more attention.
Like i said before... take a break and come back to it.. sometimes you cant see the wood for the trees or just keep following the wrong... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 c# is case sensitive... i thought you wouldnt just blindly copy n paste.
valnames.Length |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 sorry my fault not paying attention..
valnames.length |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 ok that helps a lot :)
you need this bit of code
RegistryKey hklp = Registry.CurrentUser;
hklp = hklp.OpenSubKey("HKEY_CURRENT_USER\\Software\\America Online\\AOL... |
Forum: C# Mar 5th, 2006 |
| Replies: 1 Views: 1,627 Lets make it simple and to the point.
1. This is C# not C++ forum
2. Read the forum rules.. we dont do your homework for you
3. If you want help then post code using the code tags, and ask... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 if you can see it in reg edit then it can be done in C#.
The trouble is i am working blind here as cannot see your registry etc and dont have AIM myself.
Can you tell me what the value is in your... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 but you went and changed the key now.
it used to be
Object obc = hklp.GetValue("Users");
and now you just posted
Object obc = hklp.GetValue("Identifier");
be careful when you code you make... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 Thats because you made a mistake. In C# a \ is an escape sequence (used for special characters such as carriage return \r or new line \n). So a \ in a string is also a special character and so... |
Forum: C# Mar 5th, 2006 |
| Replies: 4 Views: 1,862 maybe consider using a property for each of these. It would appear that you will want something outside of your class to change the values so you dont want to make your fields public (or internal)... |
Forum: C# Mar 5th, 2006 |
| Replies: 1 Views: 6,316 What are you using to deploy the project? If you create a setup and deployment project you control the install directory there (though if you dont want the end user to be able to change then you... |
Forum: C# Mar 5th, 2006 |
| Replies: 9 Views: 6,316 you create an unbound column in the sales and use the Expression property whose value is quantity*price (assuming those are the two column names). Only create bound columns if you want data saved in... |
Forum: C# Mar 5th, 2006 |
| Replies: 24 Views: 5,491 Whats the problem? you didnt say if there was an error.
What is the value in the registry? Is it a delimited text? |
Forum: C# Feb 22nd, 2006 |
| Replies: 4 Views: 2,775 so he asks in a C# forum? lol |
Forum: C# Feb 10th, 2006 |
| Replies: 4 Views: 2,436 then one of three things has happened.
Either it didnt work in the first place and you made a mistake in that it compiled but didnt run. Or you ran it on a different pc. Or you have made a change... |
Forum: C# Feb 10th, 2006 |
| Replies: 4 Views: 2,436 One of the references you removed was in use by the axleadlib. Put them back and then get it running then remove them one at a time and test. the axleadlib has a dependency on something. |
Forum: C# Feb 8th, 2006 |
| Replies: 5 Views: 2,994 Paste that code above in your button click event.
In the second line - p.StartInfo.FileName=file;
replace the word "file" on the right of the equals with the name of your program you want to... |
Forum: C# Jan 29th, 2006 |
| Replies: 4 Views: 3,150 Is it the users password or the application password? Its going to be tricky. Best place would be isolated storage and possibly some encryption but you wont stop a determined person finding it.
... |
Forum: C# Jan 27th, 2006 |
| Replies: 10 Views: 6,479 i doubt it is legal. You would almost certainly violate the license agreement |
Forum: C# Jan 24th, 2006 |
| Replies: 15 Views: 18,562 There is a big difference between asking a specific question (as in your other post about the external program) and a general "someone write my program for me" question.
People will always help... |
Forum: C# Jan 24th, 2006 |
| Replies: 10 Views: 6,479 so you are saying the other program is not yours? But you want to use it in yours? Just one word - LICENSE! No programmer in their right mind is going to grant you a royality free license to do... |
Forum: C# Jan 23rd, 2006 |
| Replies: 15 Views: 18,562 But the question he asked was so open ended. Is it windows or web or web services login? VS2002, 2003, 2005? What datasource? XML? SQL Server 2000? SQL Server 2005? Notepad? Webconfig? Excel?... |
Forum: C# Jan 23rd, 2006 |
| Replies: 5 Views: 14,764 C# is less forgiving than VB in terms of lazy programming. In C# if a method signature has a parameter designated as 'ref' or 'out' then when you call that method (as in you call the winsock.GetData... |
Forum: C# Jan 23rd, 2006 |
| Replies: 10 Views: 6,479 Can i ask why? Is the new program an enhancement of the old? Or is the new program using some features of the old? Either way i would make the old program a class library and then it (or parts of... |
Forum: C# Jan 21st, 2006 |
| Replies: 3 Views: 37,866 sorry... got me on a bad day yesterday
i would look up the string split on msdn and also the stringsplitoptions (if you have .net2 - vs2005) and enumerators.
but to get you going just leave out the... |
Forum: C# Jan 20th, 2006 |
| Replies: 3 Views: 37,866 that is because you copied from something before understanding what you were doing :D StringSplitOptions is optional for a start and is new in .net2 so unless you are using that leave it out. It is... |
Forum: C# Jan 19th, 2006 |
| Replies: 16 Views: 12,262 if i get time i will have a look more closely :)
Anyone know how to get 26hrs out of a day yet? |