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# > july 2003 > threads for monday july 21

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 30 31

Quick help w/ Properties
Posted by Doug at 7/21/2003 9:48:04 PM
Hello, Can someone help me quickly w/ properties. I have 2 forms (say Form1 and Form2). When a user enters a value on Form1 I want to make it available to Form2. I declared a public property on Form2 and on Form1 set the property (declared on Form2) to the value then tried to use it on...more >>


unconnected udp socket not receiving anything
Posted by Stephan Steiner at 7/21/2003 8:13:37 PM
Hi I have a small program listening to UDP broadcast datagrams that are periodically sent out. It will stop listening for a certain period if either a sufficient number of packets has been received (this is triggered from a class not in the sample code), or if there has been no data on the net...more >>

Display the image into picturebox without saving image files into Hard disk
Posted by Dev at 7/21/2003 8:13:11 PM
Dear Friends, =20 I am passing the image name, size (in bytes) and imgaeformat (like jpg = or bmp or pdf) through the network. =20 I want display the image into picturebox without saving image files into = Hard disk. Just display the image into PictureBox.... Is it Possible? If = so h...more >>

How can I display build number?
Posted by Abe Frohnman at 7/21/2003 7:19:02 PM
I'm wondering how I can access the version info within AssemblyInfo.cs in my program? I'd like to output the version of my program in a text label but I can't find any clear examples on how to do this. Thanks! AF ...more >>

Windows groups from a domain
Posted by uiranejeb at 7/21/2003 5:54:24 PM
How can I determine the windows groups from a domain? How can I determine all the windows groups to which a user belongs to? (WindowsPrincipal says if a user belongs to a specific group. I need a list with all the groups). Thanks! ...more >>

dynamic objects
Posted by Robert at 7/21/2003 4:59:40 PM
I need to be able to get 20 of the same Label object named sequentialy right on top of each other. What is the best way to do this here is my code --Robbie using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Dat...more >>

Custom control: adding scrollbars
Posted by Gerben van Loon at 7/21/2003 4:51:12 PM
Hi, I've drawn my own control using GDI+. But the control is bigger than a normal form could display, so I want to add scrollbars. Saw somewhere that you have to inherit from "System.Windows.Forms.ScrollableControl". So I did that, and the scrollbars are displayed very nice. But when you actua...more >>

Interface inheritence and COM
Posted by netfever NO[at]SPAM hotmail.com at 7/21/2003 4:45:39 PM
Hi everyone, I wonder if you can shed some light on a problem I have. I am exporting a C# .Net set of classes to COM. All of it is exported properly but the interface inheritences are not in the type library. for example: public interface IA { void proc1(); } public interface IB: ...more >>



Run Jobs Using C#
Posted by Dishan at 7/21/2003 2:31:34 PM
Hi , Does anyone knows how to run SqlServer Jobs using C#?? Regards Dishan ...more >>

Using reflection to set properties.
Posted by Suresh at 7/21/2003 2:27:30 PM
Hi, How to set the TextBox text property using Reflection. Or to that matter any property of a control. Iam having trouble writing a function of the style public static void SetPropertyValue(Object target, string property_name(as the text or width), object propertyvalue) { target - get typ...more >>

Accessing Shared Folder through C#
Posted by Chandra Sekhar at 7/21/2003 2:00:30 PM
I want to access a shared folder of a different machine (Mapped to my server) say E:\ (which is actually \\myothermac\c$\somefolder") from C#. If I use string strFolder = "E:\myNewFolder"; if (System.IO.Directory.Exists(strFolder)) { ... } it always says the direct...more >>

Access Network Location from C#
Posted by mail NO[at]SPAM sekhar.net at 7/21/2003 1:59:58 PM
I want to access a shared folder of a different machine (Mapped to my server) say E:\ (which is actually "\\myothermac\c$\somefolder") from C#. If I use string strFolder = "E:\myNewFolder"; if (System.IO.Directory.Exists(strFolder)) { ... } I even tried this: ...more >>

Dynamically setting a property for a System.Windows.Forms.Control
Posted by uiranejeb at 7/21/2003 1:30:14 PM
Hi everybody, I have a control that is dragged on a form. Let's say that we have a = textbox control named txt1. I want to dynamiclly set a property of this = control. I know the name of the control at runtime (not at design time). = How can I do this? Thanks....more >>

Datarelations
Posted by pleasehelp at 7/21/2003 12:49:43 PM
Hi, Could someone please explain how the datarelation object works. I am getting very confused. I have 3 tables Document Employee EmployeeToDocumentRelationship I have related these tables together (i think) using the DataRelation object. I am unsure on how to traverse throught ...more >>

backward compatibility - VS.NET2003 and VS.NET2002
Posted by Dev at 7/21/2003 12:48:23 PM
Dear Friends, I have created VC++.NET dll by VS.NET2003.Is it = possible to use this dll(vs.net2003) into C# version (Vs.net2002)? Is there backward compatibility? If so ..How do to this?..If anyone = knows ..please let me know. Thanks, Dev...more >>

Multi-dimensional arrays are not supported
Posted by Fayez Al-Naddaf at 7/21/2003 12:34:11 PM
I got this message when I tried to browse my web service "Multi-dimensional arrays are not supported. Use a jagged array instead" Can someone told me why?...more >>

a stand alone exe as a child in an MDI container
Posted by Sajid Saeed at 7/21/2003 11:29:18 AM
Hi All, I want to know if there is any way a complied EXE created in C# [App_A], can be called by another EXE [App_MDI]. The App_MDI, should be the container for the App_A. (In short App_A should be a child form in the App_MDI parent application) note: App_A will only contain one form. T...more >>

Field level validation
Posted by Yuelin at 7/21/2003 11:19:18 AM
Hi all I want to validate the textbox while user entering each character, I wrote: private void txtAge_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (Char.IsLetter(e.KeyChar) == true) { MessageBox.Show("Age should not contain a letter" ); } ...more >>

Writing Solid Code
Posted by 100 at 7/21/2003 11:00:32 AM
Has anybody read Steve Maguire's book "Writing solid code"? Do you think that the ideas in this book are not applicable in c# language? Does anybody find if(2 == i) istead of if(i == 2) as unnetural and does it lead to more bugs in the code because of it makes programms hard to read. And m...more >>

DataGrid Column Width
Posted by frank at 7/21/2003 10:29:01 AM
How do I set the column width of a column in a DataGrid programatically (in ASP.NET web pages)? I understand I may have to use DataGridTableStyle, but I can't get this to work with web pages. Any help would be appreciated. ...more >>

Inherit more than on class
Posted by Slavyan at 7/21/2003 10:20:12 AM
(I just started to learn C#.NET) What's the syntax in c# for a class to inherit more than one class. I know following syntax: public class MyClass : MyOtherClass { } but I need to inherit one more class. Something like this won't work: public class MyClass : MyOtherClass : MyAnotherCla...more >>

Getting a normalized app path info.
Posted by Frank Rizzo at 7/21/2003 10:16:19 AM
System.Reflection.Assembly.GetExecuting().GetName().CodeBase return the path in URL format. file:///C:/Code/.../MyFile.DLL Is there a function within the framework to return the standard path (c:\winnt\...\x.dll) or a function to convert the URL path to a regular path? Side question. Ca...more >>

Loading an assembly not in the GAC
Posted by bigdaithi NO[at]SPAM hotmail.com at 7/21/2003 8:22:33 AM
Hi, I'm working on a client\server project and I would like the client to be able to check the server to see if it requires a new dll (all of the dlls are based on a single interface).. if so it should download it and load it.. Is there any way of loading an assembly that is not in the GAC,...more >>

C# XML Doc Tags
Posted by Michael Taylor at 7/21/2003 7:14:12 AM
Maybe it's me but I can't get several of the documentation tags to work. They are added verbatim to the generated comment webpage even though the links are accurate. I can't get paramref, see and seealso to work. Furthermore when viewing the members of an enumeration the link back t...more >>

Mixing object model and interface model.
Posted by squail71 NO[at]SPAM yahoo.com at 7/21/2003 6:06:00 AM
Hi to all, Having come from a delphi environment, I remember that when using interfaces, we were told not to mix the object models and interface models. In other words, when I create an object, return and interface straight away, instead of creating an object of type object and then getting t...more >>

Regular Expression - Grouping Question
Posted by ikassaki NO[at]SPAM hotmail.com at 7/21/2003 4:26:30 AM
I am having some difficulty in using Regular expression in .NET with C#. How do I write a regular expression so that it will match both the following strings and also get me the relevant named groups ? 1. select xcol, ycol from sampletable where zcol='val' 2. select xcol, ycol from ...more >>

try catch blocks
Posted by Mike P at 7/21/2003 3:48:15 AM
I'm trying to split up a large procedure into several try catch blocks in order to catch different errors. However, when I split my code up like this, my variables that I am using throughout the procedure are now only recoginsed within their own try catch block instead of the whole procedure. ...more >>

PictureBox to a file
Posted by Samuel at 7/21/2003 3:24:58 AM
Hello coders: How do I save the image painted on a Graphics object into a file? I get an exception when I try to do: Image.FromHbitmap( pictureBox.CreateGraphics().GetHdc() ).Save("C:\location\file.jpg") The exception is: An unhandled exception of type 'System.Runtime.Inter...more >>

Uncompressing using unrar.dll P/Invoke what do I do wrong?
Posted by Oliver at 7/21/2003 2:31:37 AM
Hello ! I am trying to get the unrar.dll working in C#... it seems that I correctly imported the functions as the first 2 function work without problem (RAROpenArchive & RARGetDLLVersion)... however always if I want to execute the RARReadHeader Function I get "Object reference not set to a...more >>

Saving settings
Posted by Arcadius A. at 7/21/2003 1:50:13 AM
Hello! I'm writing a little desktop C# GUI for currency conversion... As currency change often,I'd like users to be able to update the currency rate by manually typing in a form the currency rate( for instance 1 Euro= x USD etc). My question is: What's the best way to save the currency rate fo...more >>

Creating String Collection
Posted by Haim Turjeman at 7/21/2003 1:45:49 AM
i want to create a dynamic collection of strings. the way i know to do this is with ArrayList class stringCol { ArrayList string = new ArrayList(); public string this[int i] { get{ return (string)strings[i]; } set... } ... } (this is only an example of the code) i want to ...more >>

Writing from a Stream to a File
Posted by Rasika at 7/21/2003 1:30:07 AM
I have zip file called "PPC_DATA.zip" that contains four jpg images. Using the code below I can get a ZipEntry, which can be converted into a Stream by using zFile.GetInputStream(e). I want to know how to write the Stream I get in this way into files. I have included the code below, bu...more >>


DevelopmentNow Blog