|
Thank you.
It's little snippets like these that make life much easier .
Is there a website out there where you can do a search on these things. I hunted for hours without any luck.
Once again, thanks.
Glen Harvy
|
|
|
|
|
How about MSDN ?
You will find everything there.
|
|
|
|
|
|
What is the simplest way to serialize a class into a string?
i.e. something like that:
object o = new Something();
String s = SerializeToString(o);
object o = Deserialize(s);
-- modified at 9:14 Saturday 5th August, 2006: note to self - markup is messageboard specific!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Tree<t> in C# || Fold With Us! || sighist
|
|
|
|
|
The SerializeToString method could XML-serialize the class, and the Deserialize method could deserializer it using the XmlSerializer class. The resulting XML document could be read in as a string, thus giving you a string-serialized object.
|
|
|
|
|
How can i change the width of CrytalReport(.rpt) at design time?
Thank
|
|
|
|
|
Hi All,
I have created a class file and compile it ,make it as .dll file
and also created strong name and i just installed it into the GAC.
How to use this assembly in my newly developed class file..
How to accesss the methods in an assembly..?
Thanks
paul
|
|
|
|
|
Your project has a "reference branch in the solution explorer. Right-Click there, and select "Add Reference"
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Tree<t> in C# || Fold With Us! || sighist
|
|
|
|
|
Thank you..
if i didn't use visual studio for generate class file.
I am using Note pad and compile it in the command line compiler..
In this case how can i use that assembly in my new class
Thanks
Paul
|
|
|
|
|
Hi,
I have a C# windows application. I am also deploying the SQL Express along with my application. When both SQL Express & my application has been installed, in a custom action, i attach my database to that SQL Express,create a login and user account. I also give SYSADMIN role to my created account. At the end, i set the authentication mode of my SQL Express to SQL Server only(i.e. Normal or Standard). Now when i try to connect to that database using my created account, it gives error message:
"Login failed for user <user name="">. The user is not associated with trusted SQL Server connection."
with Error no. 18452 Level 14 State 1. On the internet, i have searched for the solution of this problem, but they only say that you should change the authentication mode of your SQL Express from Windows to Mixed. I did that( as last step of my installer's custom action). But that did not work also.
Another important point is that, I am using standard SQL Server 2005 for accessing SQL Express. There it shows its authentication mode of SQL Express correctly as SQL Server's authentication after i have changed it in custom action. But it also does not allow to login using that user name and login. Also if i create any account using SQL Server Management Studio in SQL Express, that account is also unable to login using SQL Server's authentication.
Please help me to solve that problem. Any suggetion, any link etc...
Regards,
Wasif Ehsan.
|
|
|
|
|
Once you change it to mixed, it will work, so long as you're using a login that is valid for that instance of SQL Server.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
We have windows service as batch application and web application as configuration GUI for batch application. I am trying to package it using VS 2003 Deployment options, not sure which project to choose.
Installing package(setup.exe) should create webforms in Virtual root and install windows service.I know how to use service installer and web setup, but not sure how to combine both.
Regards,
MaulikCE
Regards,
MaulikCE
|
|
|
|
|
hi
first : how to print forms in vs2005 ??
second : if datagrid records have many records. how to print it in multiple page ?
Please give me an example ..and source ..
thanks ..
|
|
|
|
|
hi all ,
I have a table with some field e.g. name , fname , ...
I want to take a dynamic Report from my table by clicking checkbox in my form for some fields' the table .
Is there any example for Report Generator in c#.net .
thanx for any help ,
Regards,
s_mostafa_h
|
|
|
|
|
If you're using VS2005 you can generate reports using Crystal, there's a version of Crystal Reports included with it.
WM.
What about weapons of mass-construction?
|
|
|
|
|
thanx for ur reply ,
if it possible ,give an example .
Regards ,
s_mostafa_h
|
|
|
|
|
|
thanx a lot ,
Regards
s_mostafa_h
|
|
|
|
|
Hi,
I have created a structure as follows
public struct symbol
{
char szKeyword;
int dflt;
bool fPassDflt;
int idx;
}
symbol SYM;
I would like to create an array of the structure and write the variables in. I have found a sample in the help for a normal array as follows:
int[,] myArray = new int[,] {{1,2}, {3,4}, {5,6}, {7,8}};
What I want to do is pass the values of the structure but I can't get this to work. Any suggestions?
Thanks
Stephen
|
|
|
|
|
Make a constructor in the struct.
I have given the member variables some more descriptive names, but as I couldn't figure your variable names out, I may be way off what you intended.
I also made the member variables private and made read-only properties for them, so that the structure is immutable.
public struct Symbol {
private char keyword;
private int defibrilator;
private bool passDefibrilator;
private int index;
public symbol( char keyword, int defibrilator, bool passDefibrilator, int index) {
this.keyword = keyword;
this.defibrilator = defibrilator;
this.passDefibrilator = passDefibrilator;
this.index = index;
}
public char Keyword { get { return this.keyword; } }
public int Defibrilator { get { return this.defibrilator; } }
public bool PassDefibrilator { get { return this.passDefibrilator; } }
public int Index { get { return this.index; } }
}
As you have a constructor, you can easily create an array of structures:
Symbol[] symbols = new Symbol[] {
new Symbol('a', 42, true, 1),
new Symbol('b', 8, false, 5),
new Symbol('c', 199866, false, 377378423),
};
---
b { font-weight: normal; }
|
|
|
|
|
|
Can I add Barcode to my C# project?if any body have idea them plz let me know
|
|
|
|
|
Yes. Anything is possible. Search in CodeProject for "Barcode". You will find more than one article...
|
|
|
|
|
how i can add eventhandler to C# application?
|
|
|
|
|
Please be a bit more specific what exactly your problem is
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|