-
- ServiceInstaller | ServiceProcess Installer Executable Path?
by Philly
- 1 Replies
- Last post
by Karthikeya Pavan Kumar .B
- hi,
can anyone tell me were the var is to change the path of the executable for ether ServiceInstaller or ServiceProcessInstaller from (System.ServiceProcess.x)
what i am trying to do is make myself an easy way to install custom service enterys so i can sort all my web services out. so bascly im reinstalling them all (hopfully with my own applicaion) so i need to be able to set the p
-
- N-Tier Applications Samplem, Any?
by hydro_suicide
- 2 Replies
- Last post
by Be.St.
- I'm new to N-Tier application in windows form/web forms, can someone give me some code samples and ideas about N-Tier and Business Objects
I'm a bit confused.
Thanks.
-
- Does VS.NET 2005 provide menu for "Adding a Field to a C# Class"
by daniel mark
- 1 Replies
- Last post
by Chris Brandsma
- Hello all: I refer to http://msdn2.microsoft.com/en-us/library/aa287572(VS.71).aspx and found VS.NET 2003 provides this function. However, I cannot find the corresponding menus in VS.NET 2005. Where could I find those menus Thank you -Daniel
-
- How to communicate with a c# and a c++ application?
by Amda
- 1 Replies
- Last post
by Peter Ritchie
- Hi, I want to send messages between a c# application and a c++ application (visual c++ 6.0). I've been reading articles on this topic on general and so far only managed to come across those that discussed mechanisms such as remoting and named pipes (both seem to be useful if both apps were built using .net) Is it possible to use windows messaging to communicate between a c# and a c++ application A
-
- convert byte to hex
by bslim
- 3 Replies
- Last post
by nikov
- Hi all,
I have a byte data and I would like to convert to hex.
byte noOfByte = data[5];
May I know how to do that
I had come across this
System.Globalization. NumberStyles .HexNumber
but not sure how to do that.
Can someone please help
-
- C# application without .NET Framework
by mladjoboy
- 13 Replies
- Last post
by IsshouFuuraibou
- Is it possible to make the dll-s file in C# which will work on machine without installed .NET Framework
Is there any software which can resolve this problem I find on Google Salamander .NET Linker, Native Compiler and Mini-Deployment Tool
But I didn't try to use it.
-
- how do i send strings peer to peer (like the old winsoxk control)
by shimshon
- 1 Replies
- Last post
by CalvinR
- hi all.
i'm lookin for a simple way to transfer strings between 2 IP's .
something like the old WinSock control (peer to peer)
-
- Restricting Class to create only one object ?
by C#_Starter
- 14 Replies
- Last post
by C#_Starter
- Hi ,
I have a C# Server library , and multiple instance of window forms and webforms uses this library.
(All have reference included of that single server library)
I want that who ever connects to that server get same object . I have a method in server like this
Code Snippet
private static object SingletonLock = new object ();
private static Server
-
- Getting method name on compile time
by Ido_ba
- 14 Replies
- Last post
by Peter Ritchie
- Hi,
I would like the compiler (.Net 2.0/3.0) to embedd a method name in the code for me.
For example, i would like to write:
class MyClaa
{
public void MyMethod()
{
....
Logger.Log(*MethodName*, ex)
......
}
}
On compile time, i want the compiler to replace *MethodName* directive with th
-
- Converting a Visual Studio 2003 project to Visual Studio 2005 (partial class in Form Designer)
by MartinGravert
- 3 Replies
- Last post
by PhilippG
- Hello,
when creating a new form with VS 2005 the Form Designer automatically creates a partial class named Formxxx.designer.cs. This file containes mainly the InitializeComponent method, where the controls are instantiated and the member values are specified. The concept of partial classes is very usefull, since the user written application specific code is separated form the from designer
-
- How to use multithreading in for loop?
by ashwin_k_s
- 10 Replies
- Last post
by Alberto Poblacion
- Hi,
I have application where I am showing couple of database servers in datagrid. I am using some logic to update selected databases. I am using following code in my application:
AsyncDelegate del = new AsyncDelegate (BeginProcess);
AsyncCallback cb = new AsyncCallback (EndProcess);
IAsyncResult ar = del.BeginInvoke(cb, del);
In BeginProcess function, I am iterating
-
- How can I run this line from within a C# console app?
by rcook349
- 2 Replies
- Last post
by RizwanSharp
- I have the following line that I wish to execute from within a C# Console Application.
svcutil.exe http://localhost/COWFeedyardService/Services/Animal.svc /out:Animal.vb /config:App.config
Manually, I can open the Windows SDK Command Prompt and type exactly the above and it works. But how can I make it work from within a console app
Thanks for any help, Ron
-
- static methods in WebSevices
by ashk1860
- 3 Replies
- Last post
by Isaiyavan Babu Karan
- hi
Is it possible to use static methods in webservices when I create a static method in a WebMethod and update the refrence in the other project. still can't access to the public static method. and I wonder if it is possible or not
thank you in advance
-
- Format date as MySQL Format
by Flea#
- 4 Replies
- Last post
by Flea#
- Hello,
I am really hung on this minor issue of trying to format my date to insert into a MySQL database. MySQL requires the format of the date to be YYYY-MM-DD, so I need to be able to convert the date in C# to match this format and I am unable to do so. I have tried the following example:
Code Snippet
Label1.text = string .Format( "{0:yyyy-MM-dd}" , DateTime
-
- AsyncWaitHandle.WaitOne
by aipet
- 9 Replies
- Last post
by IsshouFuuraibou
- hello. i was interesting to check AsyncWaitHandle timeout. let's say my async method comes to enfinit loop.i let it runs for 4 secs and then force to exit. but somehow it does not work for me... it runs after 4 sec not signaled... thx
[STAThread]
static void Main( string [] args)
{
//
// TODO: Add code to start application here
//
Class1 c = new Class1();
c
-
- Set Compability mode by program
by fawtoi
- 1 Replies
- Last post
by OmegaMan
- Hi all
I want set Compability mode(Windown NT 4.0 (service pack 5)) for Application by program, but can't seted it
so that Pls seggest for me.
Thank!
fawtoi
-
- STL.NET with type parametrization in C#
by Markus Mae
- 3 Replies
- Last post
by Kea
- Hello,
As I can see, at present there is no way to use STL.NET (cliext) in C#. We can only develop some typedef or class wrapper (with exact type instead of template!) in managed C++ and reference it in the C# project. And no type-parametrization can be organized due to STL.NET classes are templates, not generics. Or is there any tricky solution
Thanks,
Mae
-
- the Parameter 'address' cannot be an empty string
by willthiswork89
- 1 Replies
- Last post
by Adamus Turner
- try
{
MailMessage message = new MailMessage ();
message.To.Add( "willthiswork89@msn.com" );
message.From = new MailAddress (textBox1.Text);
message.Subject = "BUG REPORT" ;
if (radioButton1.Checked == true )
{
message.Body = textBox2.Text;
}
if (statusf == "nono" )
{
message.Body = statusf + "\n\n\n" +
-
- where are WM_ messages
by 4B7
- 3 Replies
- Last post
by sirjis
- I am coming over to C# from C++ and am overriding WndProc but get an error that says "the name WM_CHAR does not exist in the current context" is there a namespace that I need to include to have access to use this, or is it done entirely differently in C#
-
- Project.Properties.Settings, How safe it is????
by Pedro Luz
- 5 Replies
- Last post
by Pedro Luz
- Hi everybody I'm kind of new to C# and Visual C#... I was wondering... How safe it is to save information in the Project.Properties.Settings It's safe to save critical information like user names, passwords, emails, or it's better to use another way to save that kind of information and just use the Settings for low level information thanks
-
- Why there is no virtual constructor and destructor in C#?
by bhavu
- 11 Replies
- Last post
by Barrycade
- Hi,
Why there is no virtual constructor and destructor in C# Can anybody explain me....
I know this is fundamental question and everybody should know this......but while reading C# book, I was wondering why not
-
- how to make a setup file?
by adorer
- 3 Replies
- Last post
by RizwanSharp
- After I developed my windows application I tried to make msi and exe setup file but I couldn't .. Is there anybody can help me in that
abest regards ,
-
- How to Compile c# Projects into single .exe file
by David Y.
- 2 Replies
- Last post
by David Y.
- I have 5 project in 1 solution
1 is a console app that is compile into 1 .exe
4 are class Libray that are compile into 4 .dll
and i want to compile it to just a single .exe file
-
- TaskList - Question
by h1
- 4 Replies
- Last post
by h1
- I love the tasklist. It's awsome.
One problem though, it is pretty much useless when I close the file...
For example: I can tag MyClass.cs with a bunch TODO(s). When I close the file that has MyClass.cs my TODO(s) disappear.
Is there a workaround
Thanks
-
- Why does my C# program spits out cerr, clog, cout.txt files?
by Azurewrath
- 6 Replies
- Last post
by Azurewrath
- Anyone knows the reason and a way to prevent this Thanks, Aw