cSharp Interview Questions and Answers


 

Interview Question in cSharp

How should I learn cSharp.net? My background is C/C++

Hello, I am from the old-school C/C++ generation and have seen the C#.net arrive quite fast. Now it seems like everyone wants a C#.net developper. How did you learn this? Any good resource links? Books? I graduated just before the advent of C# and am quite clueless as how to approach this topic. Thanks in advance. I have MS Visual Studio.net 2003 vers 7.1

I have a problem with cSharp.NET, any body can help

Hi, I'm working with visual studio 2003, C#.NET, i've created 2 forms (form1 and form2), form1 calls form2 by clicking a button, when pressing the button form2 appears separated, i want form2 to be loaded on form1 or when loading form2 form1 must disappear, any body can help?

Hi, I;ve a problem with cSharp.NET MS visual studio.NET 2003 , any body can help? I;ll appreciate that

I want to access an Access database, try catch block gave me the error that "syntax error in INSERT INTO statement" while I'm sure that the syntax is true!! what is the problem I don't know!! I need to insert data into that database, plz help!! thx

How to install cSharp

Setup Visual C# 2005 Express Edition
GET TO RIGHT - Yes, I have the installed media.
C:\Program Files\Microsoft Visual Studio 8\
WRONG - Install > - Unable to locate the product. Please enter the location of Microsoft Visual C# 2005
Express Edition - ENU
How correct to installing for setup Visual C# 2005 Express Edition ???

Simple cSharp question

Hello thanks for looking at my question, my last question had a great turn out so i've decided to ask another, and again it's probably extremely simple (but difficult for me!). I've had a few people tell me that you can find the entire C# function (Command) library in visual studio. however, i can't seem to find it to access it. if anyone could tell me what exactly i do with visual studio (I'm using visual studio C# 2005) to get to the C# function list, it would be appreciated. however, if you aren't sure about visual studio, but know a good online resource for C# (Specifically functions as they are what i am looking for) please post those as well! thanks in advance!

Do i have to have cSharp express with xna

I have visual studio team suite. I want to install xna but it says i need visual c# express. How can i install it on my visual studio(has c# 2005)

Do I have to include .net framework in a setup file in cSharp

hello all:
I developed a windows application using c#, and then created the setup file for the application, whennever i install it on a target machine that doesn't have visualstudio installed on it, it asks for a .net framework download before completing the installation, I'm using visual studio.net 2005, and i read that it includes the .net framewrok by default and we don't have to add it.. does anybody knows what's the problem??
thank u

Seeking for an ASP.net cSharp Flash+AdRotator

Anyone knows how I can use the built in control named "AdRotator" in visual studio 2005 to play flash (.swf) files ?
Thnx !

What would cause this error in my cSharp statement

It doesn't like "Category." If I remove all the code to handle the category column, it works fine. I'm working in Visual Studio 2005, and I'm stumped...???

MY CODE:

OleDbConnection myConn;
myConn = new OleDbConnection("Provider=Advantage OLE DB Provider;Data Source=\\\\server123\\ m \\dst \\plx_data\\ planfaxsystem.add; User Id=XXXXXXXXXX; Password=XXXXXXXXXX;");

myConn.Open();

string morningStar = "MorningStar";

string sql2 = String.Format("INSERT INTO PERFORMANCE_TABLE(SecurityName, Ticker, Cusip, Category) VALUES ('{0}', '{1}', '{2}', '{3}')", fundName, ticker, cusip, category);

OleDbCommand cmd = new OleDbCommand(sql2, myConn);
cmd.ExecuteNonQuery(); // ** CRASHES HERE **
if (myConn != null && myConn.State == ConnectionState.Open)
{
myConn.Close();
}



ERROR MESSAGE:
Error 7200: AQE Error: State = 01004; NativeError = 2102; [Extended Systems][Advantage SQL Engine]Data truncated INSERT INTO SYSTEM_PERFORMANCE (SecurityName, Ticker, Cusip, Category) VALUES ('Newton Balanced', 'STASX', '001285400', 'Moderate Allocation')

Making Internet Connection using Auto Dial up Using .net cSharp

Hi,

I want to create dialup network and/or auto connect to internet from within my application.

If there is not already created dial up network then i need to create new one. If there is no modem installed, make warnings.

I need to do all these on Visual Studio 2005/2003 desktop application using c#.



I have done so many R&D's on it, but unable to achieve what exactly i want.

I tried InternetDial method of wininet.dll to connect internet but It opens the default dial up dialog and i need to connect manually. But i want it to be connected automatically without clicking to connect within windows dial up.
I tried to use InternetAutoDial but it didn't get success.



I tried IO.Port class in VS 2005 and tried to pass AT commands, some response i got from modem but unable to connect.

Could you please tell me whether i m in right way or not?
I am i need proper sources of guide like books or your help or any sample code etc.

Thank you

cSharp help please

In C# Visual Studio 2005 how do I make it so that when the mouse is no longer in the group box area something happens? Here is my code so far:

private void groupBox1_MouseHover(object sender, EventArgs e)
{
btnTopIncrease.Visible = true;

}

How do I modify this code so that this happens when the mouse is out of the area?


Thanks,
Sophie

A question about cSharp

In Visual Studio 2005, the main() method (the program entry point) always resides in a file called "Program.cs." I want to change my program entry point to another file, how do I do this in VS 2005?

Web browser with cSharp

I've been trying to develope a sort of web browsar with c#, visual studio 2005.
And my default browser is IE.
Now the problem is when I go to a webpage with a link that is supposed to open in a new window, when I click on it it opens IE and goes to that address.
is there anyway I can fix this?
Basically it's supposed to open a new windows of the same application and goes to the link.
is there anyway I can control the links inside the document of the web browser component of Visual Studio so I can send the address to the new window and do the job?

Any good tutorials or help on cSharp? Please

I recently got Microsoft Visual Studio 2005 and I want to begin and experiment in C#. I've read through a few tutorials on the program, but it doesn't really help alot...

Can anyone please refer me to a good tutorial for BEGINNERS..hehe. I really want to be good at C#.

Thanks,
CK

Can anyone recommend a Code Review tool for cSharp

I am looking for a Code Review tool for C# that

1. Integrates with Visual Studio 2005
2. Allows you to easily add custom rules
3. Doesnt cost a mint !

The main need for this tool is to ensure that our developers adhere to our Microsoft Coding Standards and our own specific set of standards.

So far I have come across:

* FxCop - only works on assemblies and is difficult to customise
* Code Analysis for Visual Studio Team Edition - too expensive
* SSW Code Auditor - trial version seems buggy

The following site is the best I have found for simialr tools but none really meet the criteria:

http://sharptoolbox.com/categories/code-...

Any help would be greatly appreciated.

Seamus

Exception when I run a program developed with cSharp .net 2.0

I used visual studio 2005 to developed an application. it was working well. recenty i used "Computerinfo" class of "Microsoft.VisualBasic.Devices" namespace. for which I had to add a visual basic dll as reference. But my problem is when I run the program from Visual Studio 2005 IDE It works fine. but after publishing It throws an exception with 'detail', 'quit' and 'continue' button.

************** Exception Text **************
System.Management.ManagementException: Provider load failure
at System.Management.ManagementException.Th... errorCode)
at System.Management.ManagementObjectCollec...
at System.Management.ManagementObjectCollec...
at Microsoft.VisualBasic.Devices.ComputerIn...
at Microsoft.VisualBasic.Devices.ComputerIn...
at MountUp.MainUI.MainUI_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(.....

How to use a web service in ASP.NET cSharp to check user details

I've create a website in visual studio's 2005 in ASP.NET C#, one part of my website requires to check the user details for example personal details and bank details.
The web service must contain the following

-If the details entered by the user don’t match the original
Entered previously by the user and is stored with their profile. Then a message appears asking the user to adjust their details.

-If the details are correct then I want a message stating that the transaction was successful

- Check the type of card that they are using

- if there’s not enough funds in the correct return a message stating that there’s not enough funds in the account.

It’s basically the same process as when you’re using Amazon to purchase goods. For example checks the details that you already have stored in your profile (personal details & bank) if they match it checks that the funds are available in your account. Can someone write the code in C# ASP.NET using Visual Studios to using the web service to accomplish this(has to be in the web service)

Thanks

How to make a website written in cSharp.net into an executable file

i have made a website with certain linked pages in C#. net (visual studio 2005) and i have to put it on our institution LAN.Pl advice how to package it and make it executable so that i can see the site across the net work from any computer.

What is the class equivalent to ;java.lang.ClassLoader; in cSharp

I am testing Visual Studio 2005 Java Language Conversion Assistant (JLCA) 3.0 and got this error.

Visual cSharp 2005 express and connecting to access

How can I find where to drag and drop a oleDbConnection to my form in Visual C# 2005 express edition? It's in the toolbox for .net studio 2003 but I cant find it for C# express.
12345