Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > february 2004 > threads for monday february 23

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

How to make new custom log
Posted by Anders Both at 2/23/2004 11:37:32 PM
How do I make my wery own custom log, so that I don´t need to write into the Application Log. I want a log that I can see in computer manament side by side with the three others : Application, Security and System. Best Regards Anders Both, Denmark. ...more >>


Regasm.exe Interop problem
Posted by awk at 2/23/2004 11:31:10 PM
I have a dll built with c# in VS.net and Register for COM interop is set to true. This builds fine on my xp development machine and the dll output is used by a User defined function in sql server. This all works fine until I put the dll on a production server (small business server) then regis...more >>

No csc.exe
Posted by slack_vi at 2/23/2004 10:01:05 PM
I have installed the .net framework sdk but I cannot find csc.exe file for compiling c#. Is there something I'm missing?...more >>

Read-only properties returning reference types
Posted by Cory Burkhardt at 2/23/2004 9:59:44 PM
I am not sure what the suggested practice is for returning reference types from read-only properties. Consider an example: Suppose I have a Point class that is a reference type. I use the Point class from within a Shape class. I want the user of the Shape class to be able to see the location ...more >>

csc
Posted by gnat at 2/23/2004 9:50:54 PM
Hello microsoft.public.dotnet.languages.csharp, Are there any good howto sites for use of csc? Maybe a FAQ? -- gnat....more >>

Visual Studio .Net Designer
Posted by gnat at 2/23/2004 9:49:29 PM
Hello microsoft.public.dotnet.languages.csharp, I have run into a problem (for the second time now). I have been able to use the designer to put together a gui, but now it seems that the compiler won't listen to the designer and does not take new changes into account. The first time i ran...more >>

obtain win desktop picture
Posted by MuZZy at 2/23/2004 9:38:37 PM
Hello, How do i get Windows Desktop picture to further put it into pictureBox component? Thank you, Andrey ...more >>

csharp with no .NET
Posted by anonymous NO[at]SPAM coolgroups.com at 2/23/2004 9:36:54 PM
I'm a total novice, so please don't laugh. Is there any way I can make a C# executable that does not rely on the .NET framework? ...more >>



moving from vb.net to C#
Posted by alex_xms86 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/23/2004 9:27:38 PM
how do i override an event (e.g. Paint)?? i'm coding a class library and i want to do some things on the paint event, which in visual basic .net sends a "e" parameter which contains the Graphics object used to draw anything you want. thanks in advance... Posted Via Usenet.com Premium U...more >>

grid world and discrete (aliased) lines
Posted by Francois Vanderseypen at 2/23/2004 8:53:17 PM
Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels (.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of the game of life. I would like to draw a line in this discrete space, but it can't be smooth, it has to be aliased or in a block-form corresponding t...more >>

For-loop expression?
Posted by Dave Veeneman at 2/23/2004 8:27:07 PM
In a for-loop, is a calculated expression re-calculated on each pass through the loop, or only once, when the loop is initialized? For example, assume the following loop: for (int i = 0; i < myArray.Length - 1; i++) { // code here } Is "myArray.Length - 1" calculated once, or on each ...more >>

Code worked fine in VB6 but not .NET
Posted by Chad Dalton at 2/23/2004 8:09:54 PM
The code worked perfectly fine in VB6 for converting a decimal length to binary hex, but in .NET it only works when the iNum variable doesn't contain a zero. If zero is passed in then I lose everything in the string. Does anyone know how to make the Chr(0) Function work exactly as it did in VB 6...more >>

Using c libraries: zlib.lib, libjpeg.lib
Posted by MuZZy at 2/23/2004 7:54:06 PM
Hello, I am pretty new to .NET programming and probably my question has an obvious answer: I am starting to port an existing c++ application to c#.NET The first problem i am facing is that the app uses two open-source "c" compression libraries: zlib.lib and libjpeg.lib. I would really wan...more >>

Is There the EOF in C#?
Posted by ±èÀçȲ at 2/23/2004 7:41:14 PM
Is There the EOF in C#.? What is the EOF..? Why C# doen't have EOF ..? Thanks..Enjoy Programming!! ...more >>

"virtual public" vs "public virtual"
Posted by Jon Shemitz at 2/23/2004 7:26:37 PM
Syntax seems to say "modifiers is modifiers" and either is valid, but Google searches seem to show that "public virtual" is more common. Is there any sort of (semi) official convention? -- programmer, author http://www.midnightbeach.com and father http://www.midnightbeach.com/h...more >>

form in tabpage
Posted by Jonas Knaus at 2/23/2004 5:58:40 PM
hi there i am a beginner to c# and my english is bad, altough i hope you can help me. i would like to have a mainform with tabpages.(like vs-studio handels the tabpages). i would like to have these tabpages as single winforms. now is it possible to make all these forms with the designer an...more >>

Security makes .Net a JOKE.....
Posted by Earth Worm Jim at 2/23/2004 5:33:05 PM
MICROSOFT IF YOU WANT TO STOP SECURITY LEAKS IN DEVELOPERS CODE TRY MAKING THE DOCUMENTATION ON HOW TO SECURE .NET APPLICATION UNDERSTANDABLE, TRY WRITING IT IN ENGLISH AND NOT JARGON. ALL I WANTED TO KNOW WAS HOW TO DETERMINE WHICH PERMISSIONS AN ASSEMBLY NEEDS AND HOW TO DENY ALL OTHER PERMI...more >>

BlueTooth in .NET
Posted by Vikas at 2/23/2004 5:09:46 PM
Hello, Is there a support in .NET framework to work with BlueTooth enabled devices? Thanks. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

gdi32/user32/kernel32
Posted by Erik Frey at 2/23/2004 5:04:40 PM
A lot of "Can I do this in .NET?" questions are answered with "Sure! Just use P/invoke!" So I'm curious, are there any good resources that list and discuss the methods in these API libraries? I'm sure it's a broad topic, but I'd still be interesting in browsing through it. Erik...more >>

How to test for objects property that does not exist
Posted by Steve Montague at 2/23/2004 4:56:14 PM
How does one test to insure a property of an objects exists? The debugger shows the object.property as: "error: 'object.property' = does not exist" using: if (object.property !=3D null) results in: "Object reference not = set to an instance of an object." Thanks for help!...more >>

Easy one !
Posted by genc ymeri at 2/23/2004 4:29:39 PM
What directory are stored the icons of Menus/Toolbars of MS Office Visio2003 ? (I checked "Microsoft Common,..." but I dont' see them..... Any idea ? Thanks. ...more >>

Parsing / processing a stream of HTML
Posted by Mark Rae at 2/23/2004 4:23:16 PM
Hi, I'm using HttpWebRequest and HttpWebResponse to return a stream of HTML. Looking for advice as to the accepted / easiest / most efficient way to process this HTML in the background i.e. I don't want to display it all to the user, just pull out certain pieces of it. Specifically, I'm loo...more >>

Giving a form focus
Posted by Tony at 2/23/2004 4:17:47 PM
Hi When minimising my app in Win98SE no button appears on the taskbar until I manually switch to the app using ALT + TAB. Is there a way of ensuring that the icon is visible in the task bar always. I see this also when running my app from teh develpoment studio - Visual C#.Net TIA Tony ...more >>

Reference variable x GC
Posted by Pekus Cons. e Desenvolvimento at 2/23/2004 4:14:18 PM
Hi, I have seen some developers commenting that a reference variable is 'more garbage collection eligible' if the programmer set its value to null after using it, like this: public void MemberFunction() { AnyClass refVar = new AnyClass (); // Normal use of refVar functionalities r...more >>

SelectedIndex in DropdownList
Posted by Pascal at 2/23/2004 4:09:11 PM
hi, does anybody know how to set the selected index in a dropdownlist when page is loaded for the first time? my code looks like: int iCountryID = Int32.Parse(countryID); dsCountryList = ds.getCountryList(); dropCountry.DataSource = dsCountryList; dropCountry.DataValueField = "ID"; dropCo...more >>

How to determine Height/Width of Font
Posted by Adam at 2/23/2004 3:51:07 PM
Can someone please help!! I am trying to figure out what a font is? Assume I am working with a fixed font say Courier 10 point font Question 1: What does this mean 10 point font Question 2: How do I determine how many characters I can get on a line Question 3: How do I determine how many lin...more >>

About conventions : "m_"
Posted by Craig Kenisston at 2/23/2004 3:51:05 PM
I've notice that some Microsoft's code, uses the "m_" convention to refer t private member fields Check this http://support.microsoft.com/default.aspx?scid=kb;EN-US;32608 http://support.microsoft.com/default.aspx?scid=kb;EN-US;32617 http://support.microsoft.com/default.aspx?scid=kb;EN-US;3261...more >>

Visual Source Safe Integration
Posted by Sam at 2/23/2004 3:41:27 PM
Does anyone know if the .NET Framework defines a set of classes that allow you to access Visual Source Safe within your C# programs I know there is some type of COM interface (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/vssauto.asp?frame=true) that allows programmer...more >>

'Inline IF' Statement??
Posted by ChrisM at 2/23/2004 3:39:55 PM
Hi, Someone once showed me a C# statement that worked like: myInt = (if <some condition>then 3 otherwise 4) The syntax is totally wrong, (that's what I'm trying to remember). But it worked like that. He called it a 'Unary If' statement (or somthing like that) ie I could assign either...more >>

Setting Bound Grid Column Width
Posted by Tim Nelson at 2/23/2004 3:34:46 PM
I thought there should be simple way of setting the column width in the a DataGrid. I've set up a table style (properties tab) that lengthen the columns, but I can't seem to bind this table style to the grid (or it's columns I guess). No matter what I do the grid keeps a standard column size ...more >>

WinApp DataGrid COlumn AutoWidth
Posted by Dmitri Shvetsov at 2/23/2004 3:20:24 PM
Hi, Is it possible to adjust a column width of a datagrid column in a WinApp? I know how to do that in a WebApp, but a WinApp is still a problem for me. Do we have this method/property to activate an autowidth feature? Thanks, Dmitri ...more >>

tcp server to serve http reqs
Posted by Paul Fi at 2/23/2004 3:00:38 PM
im making a tcp server and tcp client to exchange Http messages is it possible? if so how from what i know that Http is an app protocol and sits above TCP so how can i take advantage of that in .Net in building a tcp server app that serves Http requests or messages? *** Sent via Develop...more >>

Enter Network Password
Posted by Empire City at 2/23/2004 3:00:36 PM
Enter network password appears when I open a VS Web application and again when I start it before the aspx page appears. IIS is installed on my C: drive but the above project/site is pointing the site to a folder on my E: drive. When I have a project on the C: drive it does not ask for the netw...more >>

Get a real text width
Posted by Dmitri Shvetsov at 2/23/2004 3:00:08 PM
Hi, I need to get a maximum column width in a datagrid. I can get it in a foreach row, but how can I get a real text width if a datagrid column in pixels? So, how can we get a real text width in pixels on a Windows Form? Dmitri ...more >>

how to populate a static hastable?
Posted by Girish at 2/23/2004 2:55:29 PM
How do i populate a static hastable without the need to instantiate the class? any ideas? Im confused. class VAErrorMap { static Hasttable _ErrorMap = new Hashtable(); public VAErrorMap() { //populate has here.. but dont want to! _ErrorMap.Add(1, "error in use...more >>

HELP! communicating with two or more .NET applications
Posted by aherzallah at 2/23/2004 2:18:31 PM
Hi every one, I am trying to create a .NET application that will be called by other smaller .NET applications, can anyone advice me what is the best method/approch to communicate between applications where they have to communicate both way meaning the server recieve and send info from the other ...more >>

How can I tell waht permissions an assembly requires?
Posted by Earth Worm Jim at 2/23/2004 2:18:18 PM
Is there a tool that tells me what permissions my assembly requires? I have add [assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted=false)] to deny all permissions I just want to now grant one I require? Cheers Earth Worm Jim ...more >>

IDE Sucks - Workaround?
Posted by Craig at 2/23/2004 1:56:35 PM
I've searched, read and tried everything until I'm finally frustrated. Apparently this is a known IDE weakness, and I _CANT_ seem to get around it... My problem is working with this line: <A HREF="javascript:popUp('EventLogView.aspx?ID=<%#DataBinder.Eval(Container.Da taItem,"ID")%>')">View</...more >>

Data Type Overflow
Posted by shearne NO[at]SPAM tssg.org at 2/23/2004 1:43:55 PM
Hi All, I coding am application that needs to be VERY time and space efficient. I have a class like: class A{ ushort myNum; ..... } which contains a number datatype. I will have thousands of instances of class A and for the vast majority of instances, the myNum value will fit...more >>

Why doesn't SHGetSpecialFolderLocation work for "Recycle Bin"?
Posted by mengfrank NO[at]SPAM hotmail.com at 2/23/2004 1:33:05 PM
Hi. I wrote a program to get the directory of "Recycle Bin" with SHGetSpecialFolderLocation . It works for "Recent", "SendTo", etc. but it doesn't work for "Recycle Bin". At http://www.dot.net.nz/codesamples.browseforfolder.aspx , and other places, the folder Ids are: /// /// Enum of C...more >>

Compare two texts
Posted by mbouarroudj at 2/23/2004 1:32:47 PM
Hi all, I am looking for a C# code or a third party component that compare two text file and display the difference as the same manner as Visual souce safe showdifference option do thank you for your help ...more >>

Return from two differents Types
Posted by ~toki at 2/23/2004 1:05:55 PM
Having, pseudo. public bool ! string SearhObject( string obj ) { //Look object in a stack //If found return it (as string,of course) // if not found return false } As workaround (in this case) i create a null string that i returned. But some return values are classes that n...more >>

Cubicles
Posted by george r smith at 2/23/2004 12:53:11 PM
I remember that there was a study of productivity in the cubicle environment and Microsoft was quoted. Anyone know of it and where it can be found. grs ...more >>

Is 'Mutex' the only machine-wide sync mechanism?
Posted by David Sworder at 2/23/2004 12:34:46 PM
Hi there, I'm looking for something like a ReaderWriterLock, but machine-specific instead of process-specific. Does such a class exist? I can think of various ways to roll my own but am reluctant to do so if there is already a .NET class that accomplishes this. David ...more >>

SystemTray Icon
Posted by Andrew Mueller at 2/23/2004 12:30:17 PM
Hello, I have a C# service that I would like an icon to show in the system tray upon startup. I put a NotifyIcon on the form and changed the properties as follows: Name: ni ContextMenu: (none) Icon: {points to location of icon file} Size: ...more >>

Using Properties
Posted by Devin Dow at 2/23/2004 12:24:08 PM
Should I be storing a property in a temporary variable for performance = reasons? Example: Assume MyClass has a Property called Center that is CPU intensive to = calculate. Would this: if (MyClass.Center.x > 0 || MyClass.Center.y > 0) ... take twice as long as this: =20 P...more >>

ref vs out
Posted by C# newcomer at 2/23/2004 12:14:15 PM
Hi friends, Is there any advantage or disadvantage (good or bad practice) in using a ref argument vs an out argument or vice versa? Thanks for helping me better understand....more >>

Check for Nulls with Reflection?
Posted by localhost at 2/23/2004 12:03:30 PM
I have severaloverloaded methods that take a multiple combinations of parameters, some which can't be null. I don't want to use try...finally logic all over the place to catch the nulls. I want to create some "catch all" functionality that I can add to every method that will sweep through al...more >>

Newbie: Handle help
Posted by Dean Redmond at 2/23/2004 12:01:15 PM
i'm having trouble assigning a value to a handle. basically i need to perform a mouseclick, wherever the cursor is, on the screen at that time, and i have code that does this using the user32.dll WM_LBUTTONDOWN/UP messages. However, when i run my code, i think these messages are sent, but no...more >>

COM interop - disposing COM objects
Posted by C# beginner at 2/23/2004 12:00:25 PM
Hi folks, When we instantiate COM objects from our .NET code and use them, when we no longer need the COM objects do we have to dispose of them explicitly? If so, how? or do the COM objects also go out of scope and get picked up by the garbage collector? Thanks a lot for your replies....more >>

DataGrid.GetChanges and DataSet.WriteXml
Posted by paulbwalker NO[at]SPAM shinyorb.com at 2/23/2004 11:58:02 AM
I am writing a DataBase Client/Server pair of applications in C#. The client registers a query, the server populates a dataset and its contents sent via XML to be displayed in the client DataGrid. This works fine. When the data is modified in the client DataGrid, the DataGrid.GetChanges call po...more >>

Stange docking
Posted by Franck Jobard at 2/23/2004 11:52:32 AM
Hello I have a form (winform) with 2 panels. The first one (panel_cmd) is dock to bottom. The Second one (panel_all) is dock to fill. At design, When i resize the form, the panel_cmd don't follow the new size. If i resize the height, it stay an empty place on the bottom. No panel have be...more >>

Quick question on C# to VB event conversion...
Posted by craig at 2/23/2004 11:49:51 AM
I was wondering if someone could quickly tell me what the equivalnet to this line of code in C# would be in VB.... item.IsDirtyChanged += new EventHandler(NotifyParent); Thanks! ...more >>

System.String conversion to System.Char*
Posted by ladyeve NO[at]SPAM gmx.at at 2/23/2004 11:49:42 AM
Hi! I've got a problem when converting a System.String into a System.Char*! Problem: Invalid Cast Operation Here is the source: Type type = Type.GetType("System.Char*"); String val = "c"; Object o = Convert.ChangeType(val,type); val can only be a string, because i'm re...more >>

override and new
Posted by naveen at 2/23/2004 11:32:06 AM
hi There are 2 concepts one is new in which u redifine the method and override in which u override a method,but when u overide u can also call the base call method using the base keyword. when we use new keyword and redifine a method in derived class can we call the base class method using th...more >>

C# - How to raise custom Validation Message in Property Grids?
Posted by Shanthi at 2/23/2004 11:22:25 AM
I am using property grid in C# application. Property grid displays the propeties properly. But I have some problem in displaying custom validation message. I have integer type property. When I give invalid values for the property it is throwing System exception as follows. "Invalid Property V...more >>

How to use File Mapping to access OLD VC6 program?
Posted by jiatiejun at 2/23/2004 11:19:16 AM
Can .Net use File Mapping function without Win32 API ? thanks! ...more >>

IClonable
Posted by Zürcher See at 2/23/2004 11:17:10 AM
If I want to implement an IClonable interface, how can I copy the events from my source object to the target "cloned" object? ...more >>

xslt and windows forms?
Posted by Derrick at 2/23/2004 11:08:55 AM
Is there a control that can display the contents of xslt output, basic html also? Thanks in advance! ...more >>

TActionList class in C#
Posted by genc ymeri at 2/23/2004 11:07:37 AM
Hi, Coming from Delphi background, does C# has something similiar to TActionList or TActionManager class ? Thank You in advance., ...more >>

Good reporting solution
Posted by Jay Douglas at 2/23/2004 10:57:55 AM
Greetings. For the most part, my reporting solutions have been ad-hoc (usually html for web apps) to the current project. I'm currently trying to figure out what would be a good reporting solution for primarily asp.net apps, but also my winform apps. I know .net comes with Crystal Reports ...more >>

To create pure old style DLL's
Posted by Olaf.Baeyens NO[at]SPAM skyscan.be at 2/23/2004 10:06:30 AM
Is there a way to create pure old style DLL's? using C#? I need to use these DLL's in a VC 6 project that does not support managed code (as plugins) But the VC 6 code doesn't use Interfaces to that, just classic dll entry points. ...more >>

How to append records in exist XMl file?
Posted by Matrix at 2/23/2004 10:02:21 AM
I want to append records in a XML file,I use XMLTextWriter,but i found it only create a XML file,not append records in exist XML file.why? ------------------------------------------------- XmlTextWriter myXmlTextWrite = new XmlTextWriter(@"C:\myconfig.xml"); myXmlTextWrite.WriteStartDocument(); ...more >>

Simple question regarding postback and viewstate
Posted by dave at 2/23/2004 9:00:18 AM
I have created a web form with 3 different inputs, 1 drop down and 2 list boxes. The drop down selection populates the two list boxes, and I can get this render once, no problem, I now want to change the contents, of either list box based upon multiple selections in the list boxes. In shor...more >>

Non-rectangular Forms
Posted by dln at 2/23/2004 8:58:28 AM
Could someone point me to a good reference point (books, websites, etc...) that will show me how to create non-rectangular Windows forms using C# (although I could probably figure things out if the code examples were in any of the .net languages)? Ideally, I would like to learn how to create no...more >>

VS net Installer
Posted by JJ at 2/23/2004 8:13:18 AM
Hi, I am trying to deploy my app and have added a setup project to my solution. I added the Primary Output and it showed me the dependencies but it didn't have the Framework 1.1 listed. How do I get this installed on client pc as well? Is there anything else I need to install in order...more >>

DataRow and DataTable
Posted by C# beginner at 2/23/2004 7:47:29 AM
Hi all, I have a question regarding DataRows in DataTable. My DataTable name is DtTag. I am filtering a row out of the DataTable based on a column name called "TagName". My question here is DataRow[] Rows = DtTag.Select("TagName = '" + tagName + "'"); How do I check the count of Rows...more >>

Interop problems from C# to VB
Posted by dnlwhite NO[at]SPAM dtgnet.com at 2/23/2004 7:13:03 AM
I am working on an existing .NET (C Sharp) component that had a com interface that was used by a VB component. When it was originally written, it had a class with 12 methods that inherited from that interface. I needed to add two new ones. I was told I would need to create a secondary interfa...more >>

using application blocks
Posted by Philip Townsend at 2/23/2004 7:10:19 AM
Can anybody give me some advice/feedback on using application blocks? What are the prerequisites? Do I need to install componenets, or, do I need to upgrade to the latest version of the .net framework? Thanks... *** Sent via Developersdex http://www.developersdex.com *** Don't just partici...more >>

Modifying Application Object variables in ASP.Net
Posted by brianbender77 NO[at]SPAM hotmail.com at 2/23/2004 6:54:08 AM
I have a static class in my VB.Net ASP app. In this class I want to modify application object variables. What do I need to reference in order for this class to see the application object? Thanks, Brian Bender www.brianbender.com...more >>

problem with regular expression and parsing a sql-statement
Posted by kurze NO[at]SPAM streber24.de at 2/23/2004 5:01:09 AM
hallo ng, i am trying to parse a sql-statement with regular expressions. my goal is to get the parts of the statement. in my thoughts the group-functionality of the regular expressions should do this. my pattern looks like: A) string strPattern = "(select.+)(from.+)(where.+)?(order.+)?"; ...more >>

short (displayed) path and filename
Posted by Charles Conlow at 2/23/2004 3:52:42 AM
I'm certain there's a simple way to do this, but I just can't find the pointers... How to get the huge 'drive:\long\path\to get\there\filename.ext' to something like 'D:\Docu...\filename.ext' I searched through help files, but I must be missing something obvious. Any help here? Chuck ...more >>

Drawing shaded lines and shapes
Posted by John Baro at 2/23/2004 3:36:31 AM
I wish to draw a line say 10px wide at a 45 degree angle (or any other angle) and have it shaded say from gray to red to gray again (or any other color). I can get the line by using a GraphicsPath object but cannot work out the shading part. Is this also possible for say a circle with an ou...more >>

dataformats
Posted by rammohan at 2/23/2004 3:27:48 AM
hello any one can send me sample code to work with dataformats in c#(rtf,html). regards --rammohan...more >>

Properties and fields dude.
Posted by Julian at 2/23/2004 3:26:08 AM
Hi to forum... If i have this.. protected SqlConnection mycnx; public SqlConnection MyCnx { get{return mycnx;} set{mycnx=value;} } Main method { this.mycnx=new SqlConnection("Data..........") } the value of mycnx is stored in MyCnx automatically? Thanks in advance ...more >>

conditional "using"
Posted by ARZ at 2/23/2004 3:26:05 AM
Hi How do I include DLLs based on a condition. Eg., there are 2 DLLs 'Oracle.dll' and 'SQL.dll'. I need to include ANYONE of the DLLs based on a value. Is it possile in C# Thanks in advance ARZ...more >>

FAQ Suggestions
Posted by Richard A. Lowe at 2/23/2004 2:32:41 AM
Hi, here are answers for some of the questions I suggested a short time ago for the m.p.d.l.c FAQ Jon Skeet is organizing. It was Jon's intention that these be 'honed' by the group before being included - so hone away. It's my intention that you merely not 'tear me a new one' for any inaccuraci...more >>

Modify the focus on a control
Posted by Jax at 2/23/2004 1:31:06 AM
Is there any way to actually force a focus to change it's position? E.G TextBox.Focus.MoveRight(1); or somekind of method that can move it? jax...more >>

Office C# code behin : CommandBar Class Problem ?
Posted by cybertof at 2/23/2004 1:08:40 AM
Hello, Could you please tell me what's wrong with this code (c# office code behind) : protected void ThisWorkbook_Open() { try { MessageBox.Show(ThisApplication.CommandBars.ToString()); MessageBox.Show(ThisApplication.CommandBars.Count.ToString()); } catch (Exception e...more >>

How to "include" a set of common ASP.NET controls
Posted by michael at 2/23/2004 1:08:13 AM
I am creating a ASP.NET website and in doing so, I am going to use "TABS" at the top of the page. These "tabs" are the same for the entire website. Is there an easy way (other than Frames) to "include" these common button/tab controls on the top of every ASP.NET page of mine? Thanks in advan...more >>

Variables Access
Posted by iamshady NO[at]SPAM rediffmail.com at 2/23/2004 1:01:44 AM
Hi, I am primarily a Borland Delphi developer and I'm very new to C# (using VS.NET). Here is my problem: I have three forms: frmLogin frmMain frmChgPass After the user authenticates himself in frmLogin, it's visble property is turned off and the main form shows. In the Main form I ha...more >>

Variables Access
Posted by iamshady NO[at]SPAM rediffmail.com at 2/23/2004 1:01:42 AM
Hi, I am primarily a Borland Delphi developer and I'm very new to C# (using VS.NET). Here is my problem: I have three forms: frmLogin frmMain frmChgPass After the user authenticates himself in frmLogin, it's visble property is turned off and the main form shows. In the Main form I ha...more >>

Returning object from AsyncCallback called inside a threaded Infinite loop
Posted by Jim P. at 2/23/2004 12:27:43 AM
I'm having trouble returning an object from an AsyncCallback called inside a threaded infinite loop. I'm working on a Peer2Peer app that uses an AsyncCallback to rerieve the data from the remote peer. I have no problem connecting the peers and streaming Network Streams. When the incoming data...more >>

Printing all data in datagrid?
Posted by vvanheerden NO[at]SPAM hotmail.com at 2/23/2004 12:17:16 AM
Hi all, I need to print all the data in my datagrid to a printer, and the user must be able to choose whether with the grid lines or without. I am a beginner in .net and I would appreciate any help!!! Thanks, Veronika...more >>

How Start a GUI Process with the Main Window Shown when Started from the C# service
Posted by Vineeth Karinta at 2/23/2004 12:16:08 AM
I am trying to display a GUI Process from a C# Service Application, I can see the Process in the Task manager but i canno see the Process GUI window displayed. But if i start the same GUI process from the Normal Application the Window is visible. I use the c# Process class to do this Any suggesti...more >>


DevelopmentNow Blog