|
venkatasivaramaprasad wrote: Please let me know why we are choosing C#.Net instead of VB.Net.
Well, not all of us are. Those who are, probably are because we came from C++. The only reason I know of to use C# is unsafe blocks. The reasons to avoid VB.NET include all sorts of nastiness, like hard to read code, 'magic' conversions that can really bite you when you don't expect them, and the VisualBasic namespace, which is full of rubbish imported from VB6.
But, if you know how to navigate the minefield that is VB.NET, the end code is basically going to run the same and do the same things.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
because vb is so ugly that when I look at some vb code I don't know whether to say "bue.." or "yuk!!"..
life is study!!!
|
|
|
|
|
Hi,
I am developing a chatting application with a Web Service as the central monitoring Server.
The Web Service methods will be used by the clients (Windows and Web) to Add User, Send and Recieve messages.
Can anyone help me in realizing this functionality as I have less knowledge on Web Service?
A sample code with this regard will also be helpful
Thanks in advance,
Murali
|
|
|
|
|
Ur Server code will have all the functionality of Add User, Send and Recieve messages. Then add a webservice to this server project. In the webservice add distinct WebMethods for each of ur task. Create a instance of the server inside this method and make an appropiate call.
ex. server.cs-
class server
{
AddUser(){}
}
in webservice.asmx
class service
{
[webmethod]
AddUserService()
{
server sr = new server();
sr.AddUser();
}
}
This example is just to help u to start. Once u start u can know how to invoke methods.
|
|
|
|
|
Thanks for the info.
Do you have a sample application on this regard?
Thanks in advance,
Murali
|
|
|
|
|
Hello everyone,
Here is my situation and I need your help guys. I have a loop to filter some data out of the DatGridView. I would like to assiagn each data to a specific TextBox (Five TextBox in total). The text boxs are names :
textBox1
textBox2
textBox3
textBox4
textBox5
Can someone be kind enough to tell me how I can assiagn each data to a textbox according to its index? This is what I mean:
for (int i = 1; i <= 5; i++)<br />
{<br />
textBox[i].Text = foundRows[i].ToString();<br />
}
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
do it in other ways.
TextBox tb[] = {textbox1,textbox2,...,textbox5};
for(i=0;i<5;i++)
{
tb[i].Text = foundRows[i].ToString();
}
|
|
|
|
|
Lets say these 5 buttons are placed on Form1. Than you can write this:
for(int i=1,i<6 i++)
{
Form1.Controls["textbox"+i.ToString()].Text=something;
}
|
|
|
|
|
Khoramdin wrote: textBox1
textBox2
textBox3
textBox4
textBox5
If you give them real names, they may make more sense. Then add a tag to each which is the same as the column you want to assign there, assuming they are columns from a single record. Then loop through the controls collection looking for the one with that tag.
Or you can create an array of textboxes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I need to implement daemon functionality(which is available in java) in c# without using windows service and sql job. Please let me know if anyone has any idea about it.
|
|
|
|
|
Prajin wrote: without using windows service
Why, what is wrong with a Windows Service?
|
|
|
|
|
Hi,
I need to implement daemon functionality(which is available in java) in c#. Please let me know if anyone has any idea about it.
|
|
|
|
|
In my application i am using a user control "aguage3" my problem is
private void aGauge3_ValueInRangeChanged(object sender, AGaugeApp.AGauge.ValueInRangeChangedEventArgs e)
{
GuageIndex = e.valueInRange;
}
but i need this GuageIndex value(which is coming from above event) in another event called
private void aGauge3_DoubleClick(object sender, EventArgs e)
{
}
The first event is in timer control so it varies automatically
how can i get this GuageIndex value in double click event
Please help me in this
Thanks in advance
PraveenKumar Palla
|
|
|
|
|
It looks like "GuageIndex" is a member variable of the class, so you should have no problem accessing it in the "DoubleClick" event handler. Otherwise, if there is a way to access this value in the control itself, you can do that in the "Double"Click" handler. Just guessing:
private void aGauge3_DoubleClick(object sender, EventArgs e)
{
int guageIndex = aGuage3.ValueInRange;
}
This assumes the existance of a ValueInRange property in the Guage control class.
|
|
|
|
|
yes "GuageIndex" is a member variable of the class, but the event aguage3_valueInRangeChanged is in timer which raises when the needle of the guage changes, so the "GuageIndex" value varies automatically but i need this exact value when i double click on the guage(user control)
NO "ValueInRange" property for the aguage3 user control
Thaks
PraveenKumar Palla
|
|
|
|
|
praveenkumar palla wrote: but i need this exact value when i double click on the guage(user control)
What do you mean ? How is the value ever not 'exact' ? How are you hoping for a delegate to help here ? Either way, you get the value when the event is fired, it's the only value you're going to get.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how do i change any date and time format to current computer datetime format.
|
|
|
|
|
What are you asking ? Doesn't the DateTime class automatically format in the current locale settings ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Use the convert.datetime and pass the IformateProvider information... You should be able to resolve the problem
|
|
|
|
|
RemotingConfiguration.Configure(Application.StartupPath + "\\Client.exe.config",false);
hi the above code is configurting the remoting with an config file
although i dont mind using an configuration file i would like to key in the ip programically...
could any one show me how i can set the ip programically while the rest of the configuration data get from the configration file pls
|
|
|
|
|
I study computers and multimedia and i just got my lesson in C language.I have a book with the name C outside but without # or ++ ...
I need to run a program hello world with these commands only:
#include <stdio.h>
main()
{
printf("Hello World\n");
}
I have the Visual Studio 2005.Can anyone tell me how to begin this little project?
Step by step please.What kind of project shall i begin. i used to work with C but in Visual Studio 6.With this version i am very comfused.
Thanks a lot
|
|
|
|
|
This is the C language.
In C# it would be
using System;
public class HelloWorld
{
public static void Main()
{
Console.WriteLine("Hello World!");
}
}
Regards,
Satips.
|
|
|
|
|
In here are any help topics about the C language?
Do you know how to write this hello world program in the C language,but in Visual Studio 2005 ?
Thanks a lot
|
|
|
|
|
In c i used to write Hello world.
<br />
#include <stdio.h><br />
<br />
main()<br />
{<br />
for(;;)<br />
{ <br />
printf ("Hello World!\n");<br />
}<br />
}<br />
But in VS2005 you try as how CG said.
Regards,
Satips.
|
|
|
|
|
C++ is a language built on C. You can create a C++ project and put C code into it. You can change the file names to .c from .cpp to get the compiler to force it to be C code and not C++.
C# is a completely unrelated language that uses the C in the name to indicate that it's syntax is somewhat similar to C++. Use the Visual C++ forum for C questions if you have them in future.
Good luck !!
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|