Visual C# General,323 - Visual C#,
Recent update: 2008-3-21

how to make an installation file for my written program in c#

129 byte By musichenryviolin at 2008-3-7
hi all, the question as the title please help me to solve this anyone can give me a flavour thanks henry

how to make a installation file in c#

129 byte By musichenryviolin at 2008-3-6
hi all, the question as the title please help me to solve this anyone can give me a flavour thanks henry

VS2005 Image Library Gone!

293 byte By LeeHambley at 2008-3-5
Hey fellas, I've got the beta2 Team system thing, - nearly had a heart attack watching the MSDN.TV thing regarding the image library.. but my install didn't include it for some reason, and ideas or suggestions why - it's not somet silly like an extra download from somehwere on msdn is it ?

Please tell me what is IOperationInvoker in WCF and the situation where we impl

104 byte By prem at 2008-3-5
Please tell me what is IOperationInvoker in WCF and the situation where we implement this interface

Anyone know Accountability pattern?

128 byte By erdsah88 at 2008-3-3
Does anybody have an idea about accountability pattern from martin fowler. We have problem figuring out the database schema.

How C# talk with Flash Communiaction Server

136 byte By c#crack at 2008-3-1
Hi buddies, do any body gone through, how C# communicates with Flash Communication Server? any idea.. please help.. thanks, Vinu

DataGridView new row

151 byte By DavidA.Coursey at 2008-2-28
Why when I add a new row to a DataGridView do all the textboxes show (null)? How do I make it so that these are just empty textboxes? Thanks dave

Compare two word files and show the place where there is a change.

106 byte By sn at 2008-2-28
I want to compare two word files and if they are different i need to highlight the place where it differs.

serialPort Questions

1676 byte By SmileyMicros at 2008-2-27
I tried unsuccessfully to use the DataReceived event to read data from the serial port. It gives a thread exception and I cannot figure out what the error message is trying to tell me. So I put a button on the form and added: private void button2_Click(object sender, EventArgs e){ while ...

How to invoke a form class from different NameSpace?

897 byte By Chakravarthy at 2008-2-26
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i ...

file upload user control

723 byte By ppl1 at 2008-2-25
well...i created a user control - <form id="Form1" encType="multipart/form-data" runat="server"> <table> <tr><td><input id="filename" type="file" name="filename" runat="server"></td> </tr> <tr><td><input id="uploadBtn" type="button" ...

Why is it called C#?

97 byte By BubbaDuck at 2008-2-25
C++ is the next iteration of C, hence "C++" But why did they call the next one C#??

User name missing after product activation

454 byte By PhilipKing at 2008-2-24
Can anyone tell me how to add my user name to a Visual Studio Express product after activating the product?For example, in Visual C# 2005 Express Edition Beta 2, when I select 'Help' from the Menu bar and choose 'About ...' in the upper-left corner it says: Licensed to: Unknown User Name.I ...

vs 2005 B2 compile error

2668 byte By ThisBytes5 at 2008-2-23
This may not be the best group to ask in as the question is about the beta, if there is a better place please point me to it. I've had beta 1 installed, after a re-install of the OS this weekend I installed beta 2. I opened a project that I had written with beta 1 and tried to compile it, ...

Generic: open constructed type vs. instance type

765 byte By Smarty at 2008-2-22
On the one hand:Given the generic class declarationclass List<T> {...}some examples of constructed types are List<T>, List<int> and List<List<string>>.A constructed type that uses one or more type parameters, such as List<T>, is called an open constructed ...

StreamReader and File Position

3968 byte By ThomasD.Greer at 2008-2-22
I'm processing large binary files. These are PCL files, and I'm looking for page boundaries. I want to store the position of each Form Feed, which in PCL is decimal 12, hex 0C. However, that byte can also exist as part of a raster or other binary structure.So I loop through the file, and when ...

How to invoke Windows Forms from Different project created Using VS?

897 byte By Chakravarthy at 2008-2-21
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i ...

Format the checkBox Glyph with an image of 25x25

270 byte By psp at 2008-2-21
Hi, I need create a CheckBox control .In this I want the checkBox Glyph with an image of 25x25 over it and the text should be displayed as it is,The behavior of the CheckBox control should be as microsoft check box control. So how to format the checkbox glyph???

How to invoke the Windows Form from different Project?

897 byte By Chakravarthy at 2008-2-20
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i ...

How to invoke WindowsBased Form from Different Project?

897 byte By Chakravarthy at 2008-2-19
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i ...

How to invoke a Form from Different Project?

897 byte By Chakravarthy at 2008-2-18
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i ...

MDI Menu merge not working

541 byte By ReeceWilliams at 2008-2-17
Has anyone had any success menu merging with the toolstripmenuitem in an MDI app?There doesn't seem to be any way to merge without duplicating menu items in the child menu.eg:Parent:File->New->-->ExitChild:File->SaveResults in (at best!):->New->-->Exit->SavePlus, if ...

Nested Generic Approach

895 byte By EagleTsui at 2008-2-16
The following is my class definitionpublic abstract class FieldDefinitionBase<AttributeType>public abstract class FieldDefinitionCollectionBase<T> : List<T> where T: FieldDefinitionBase<Attribute>public class DataFieldDefinition : ...

How can I make _Path1 to streach within the width of the _Grid1 for the TabItem

1239 byte By guest at 2008-2-16
<!--Style for the TabItem.--> <Style x:Key="OldTabItemStyle" TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Border Name="border2"> <Grid x:Name _Grid1>...

How can I turn on High Contrast Mode from inside my Windows Forms Application

164 byte By guest at 2008-2-16
What is the best way to change the colour scheme of an application to high contrast mode from inside the windows form as opposed to from the user preferences panel.

IMPLEMENTATION OF C# IN PHYSX TO CONTROLL ROBOT.

334 byte By SAMRAT at 2008-2-16
HELLO EVERY ONE, I AM ABOUT TO START A PROJECT ON "MOVEMENT OF ROBOT ARM" USING C# AND PHYSX SIMULATION S/W. COULD YOU PLEASE HELP ME HOW TO APPROACH TO WORK OUT SUCCESSFULLY. I NEED SOME BASIC IDEAS ON HOW TO DEAL THIS PROJECT. MAIN AIM IS TO COMMUNICATE WITH THE ACTUATORS(DYNAMIXEL AX-1...

Nullable Value and Generic

527 byte By EagleTsui at 2008-2-15
I want to mark a generic class to support nullable value. The following is my classpublic class DataField<T> where T:System.Nullable<T>{ public T Value;} But it can't. Why?Please help ...

Whither encapsulte field in Express beta2?

280 byte By StackAdder at 2008-2-15
Where did the refactor/Encapsulate Field option go? That was dead handy, and I was looking forward to more like it to speed development not less! Have I missed something? Is there a config option hiding somewhere to switch it back on? Or should I know how to roll my own by now?

How this code work(C# 2.0)? It shouldn't!

505 byte By MVPUser at 2008-2-15
What makes you think that, there is no ambiguity possible, the compiler can directly deduce the best function member to call, 3 is an int parameter and there is a non-generic method F1 taking an int as argument, non-generics takes precedence over generic parameters, overload resolution solved, ...

How to know the generic value is nullable value or not

293 byte By EagleTsui at 2008-2-15
I cannot do it. How can I do? public class Test<T> { public Test() { } public bool IsNullable() { if (T == typeof(Nullable<T><img src="/library/msdn/emoticons/emotion-5.gif" alt="Wink" /> return true; else return false; } }

Fast Range Search?

905 byte By Manip at 2008-2-15
I am going back over an application that I have written trying to cut a few ms off a search. It is a very simple thing actually but hard to make faster. A number is passed in and there is a constant collection of ranges, the algorithm needs to return all the ranges that contain the number. The ...

Sending mail with C#

2066 byte By nicpn at 2008-2-14
can someone out there please help me.I need to know how to send mail using C#. I have a class that will be throwing parameters (see below): private void SendToAnalyst() { string emailSubject = string.Empty; string emailAddress = string.Empty; StringBuilder sb = new StringBuilder(); //To Do: ...

RichTextBox with PAGING ??? Please HELP !!! Urgent

208 byte By DanyC at 2008-2-14
Hello. Is there a free control for C# that supports text formatting (font, color, numbered and bulleted list) and also PAGES just like word ? Is there a way to create those pages for a richtextbox? Any ideas?

Visual C#

1015 byte By AnjaTr at 2008-2-14
Hello!I wrote 2 days ago ... i had a question about installation (like others).... but in my case.... if i want to load my program, made in visual C# (version Beta, but the first one), there comes message:"Package 'Visual Studio Settings and Project Designers Package' has failed to load ...

get value of an element

217 byte By ppl1 at 2008-2-13
i created a class1 that has 2 properties (x and y) and i added items to a hashTable-> hashTable1.add("key1",new class1()) now i want to get to x of an element in the hashTable, how can i do that? thanks

Nesting Stuff...

930 byte By DavidA.Coursey at 2008-2-13
I have been writing C# for about two years now, but always web-related technologies - ASP.NET, Web Services, Class Libraries for Exchange. Now I am attempting to make a small Windows Forms application and I am having some trouble.I want to have what I would call a Repeater in ASP.NET. I ...

split a into each alphabet and sucstitute a word for each of the alphabets.

193 byte By sury at 2008-2-12
I want to write a program where each word submitted will be split into alphabets and a word will be substituted for each of them. example : LATE L:London A:Apple T:Tower E:Egg

serialize mail messages

281 byte By JanLimpens at 2008-2-12
For a message queue I need to serialize (and later on deserialize) many MailMessage s. Quite generally I ask myself, which is the best way to do this? To .eml? To a mbox format? How can this achieved? Are there any free libraries (open source preferred)? Thanks a lot Jan

Removing elements during iteration through a Dictionary

903 byte By johtib at 2008-2-11
I'm trying to iterate through a Dictionary and remove some of the elements according to some criterion. I get an InvalidOperationException that says: "Collection was modified; enumeration operation may not execute." IDictionary<IPAddress, DateTime> peers = new Dictionary<IPAddress, ...

Request for New C# forum

174 byte By MikeF at 2008-2-10
I just wanted to put up a request for a C# forum for beginers. It would be nice if there was a specific place to intereract with other begining programers using C#. Thanks.

Interprocess Communication

493 byte By MVPUser at 2008-2-10
wrote in message news:2016b2a6-2078-47b2-9a4d-0de7235d489c@discussions.microsoft.com... Hi all, I've a unmanaged exe named Modbus.exe which polls the serial port and get the data.I want to communicate with this application from my .NET application to get data from that app.I can able to do ...

How to: Specify a Tracepoint Action

144 byte By joe at 2008-2-9
Hi all! I'd like to know How to Specify a Tracepoint Action. If anyone can help me i will quite thankfull have a nice day joe

Database connection dilemma

505 byte By Sandrina at 2008-2-8
Hi!I have a dilemma concerning connections to databases... Should I open a new connection for each query, OR should I leave the connection open for all queries, and close it at the exit of application? I suppose it is a matter of personal taste... The application in question is a client/server ...

Date

128 byte By Sandrina at 2008-2-8
How do I get today's date and put in an object/variable? Thanks <img src="/library/msdn/emoticons/emotion-1.gif" alt="Smile" />

how to craete a graph in a windows application using C#

401 byte By gaith at 2008-2-8
Dear all, i have a problem, i have created a windows application using Microsoft Visual C#, i want to create a graph in this application according to some inputs, but it shouldn't be through the use of any other web applications, just through my windows application (means inside the form it self...

assemblies question

458 byte By MVPUser at 2008-2-7
wrote in message news:5d8d1995-842f-44f7-a0f4-662b1d2771d8@discussions.microsoft.com... i have 2 classes(class x and y) in one assembly ,now i want that only class x will be able to create objects from class y, how can i do that? thanks in advanced Make the class internal, and check ...

Problem with Regular Expression

4440 byte By joseph5600 at 2008-2-7
I have written code to check whether a particular input text matches to a collection of regular expressions given in a hashtable. My problem is that my application is getting stuck when i give certain inputs. It is when it doesn't match with other entries of the hashtable. The code is as ...

Loads of errors and warnings trying to load a beta one application into beta 2

1050 byte By SteveJo at 2008-2-7
HI any ideas how to go about fixing this would be greatfully received.I've upgraded beta 1 to beta 2 (following all the uninstall instructions). Simple apps load and run just fine but a more complex app I've written gives 9 errors and 16 warnings - the warnings are mainly now obsolete ...

Visual Studtio 2005->File->New Project->Shows an empty box

349 byte By VarunSood at 2008-2-7
Hi All, I am new to .NET, and have just downloaded "Visual Web Developer 2005 Express Edition Beta 2". I want to start building C# applications but on Selecting File->New Project, gives an empty box with no "project types" and "templates".Do I have to install C# express edition separately OR ...

C# and Office Interop Drag And Drop Event

242 byte By danycxxx at 2008-2-7
Hello. I am using Word 2003 interop in a C# windows application. I want to to a drag and drop operation onto the word control (from a treeview I want to drag sone text into word) , but I can't seem to catch it. Is there anyway to do that?