Groups | Blog | Home


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# > may 2004 > threads for monday may 3

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

Config Files
Posted by Cantekin Guneser at 5/3/2004 11:59:38 PM
hi firsly, i have one projec that is clas library project (dll project). i have config file for this project an i am using appsetting section. until here no problem i wantto use this dll in a web application, when i adding my dll as a refferance , dll stars using config file of web aplicati...more >>


ImageList Help
Posted by Donald Smith at 5/3/2004 11:25:07 PM
Hey, My C# just started doing something weird with imagelists. I have an Imagelist with about 5 icons in it, and it use to compile perfectly. But all the sudden, it gives me this error: "An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dl...more >>

Setting a Pixel
Posted by Bob Palank at 5/3/2004 10:56:56 PM
I think the ability to set a pixel on a graphics surface ought to be straightforward and I tried to illict Dr. Guis opinion but he was too busy to respond. So I think he must agree with me but fears authority ;-} What do others think ? ? ? My original email and Dr. Gui's assistants reply is sh...more >>

How to write Mime messages in C-sharp?
Posted by HishHish at 5/3/2004 10:46:02 PM
I have a Java code that I want to convert it to C-sharp in order to put it in my ASP.NET web application. I used the JLCA (Java Language Conversion Assistant) for conversion, but it gave me many errors indicating that there are not matches in .NET for those Java classes!! The Java code is: ***...more >>

Serial Port interfacing
Posted by Kevin at 5/3/2004 10:26:02 PM
Hi all I am having a problem reading from a serial port, first of all I have now resorted to using the MSComm ActiveX control on my Windows Forms to provide me with the interface to my serial port. is there no other way to do this - it has to be simple or well explained because I'm still new to th...more >>

MS punk arse bitches
Posted by Barba at 5/3/2004 10:11:23 PM
Bastrads. I want my money back. And time invested into crap. Whenever I ask something tricky, noone answers. Memory profilers shows that when I open and close a child window 10 times, in memory all 10 windows remain. I have turned off virtual ram to see if stupid .net would clean memory. But ...more >>

Beep Win32
Posted by pnp at 5/3/2004 9:58:34 PM
When this executes Win32.MessageBeep(BeepTypes.IconExclamation); (or any of the other beep types) nothing is heard... Any Ideas? ----------------------------------------------------------- using System; using System.Drawing; using System.Collections; using System.ComponentMod...more >>

treeview and multithreading
Posted by Mitch A at 5/3/2004 9:31:31 PM
I have an app that populates a treeview from a DB. I would like the UI to repaint during this potentially long operation, so I want to spawn a new thread to populate the list. The problem is how to update the treeview from the worker thread without violating the prime directive of Windows prog...more >>



Scroll Bars on Datagrid
Posted by The Real Andy at 5/3/2004 8:23:13 PM
I would be surprised if this hasn't been asked before. I tried a google search but could only turn up info on how to put scroll bars on a web datagrid. Any ideas on how to do this with windows forms?...more >>

try, catch, finally- whats the point of finally?
Posted by apaulk NO[at]SPAM 141.com at 5/3/2004 8:22:23 PM
It seems to me if you have a function like this public void blah() try { blah blah; } catch { blah de blah; } #code that executes whether there is an error or not# return; Then the code at the end will execute just as if it were in a finally bloc...more >>

How to create dependant properties???????
Posted by Paul Loveless at 5/3/2004 8:00:39 PM
Hi all, I'm creating a simple user control that has two properties that represent a range of valid integer values. For example: int minimum, maximum; public int Minimum { get { return mimimum; } set { minimum = value; } } public int Maximum { get { return maximum; } ...more >>

How to add ( " ) double quote character to a string?
Posted by Özden Irmak at 5/3/2004 7:38:52 PM
Hi, I've to add ( " ) double quote character to a string which I later save the string into a file? How can I add this character to a string in C#? 3 times double quote doesn't seem to work... Thanks... Özden ...more >>

Garbage Collecting and real-time processing.
Posted by CSharpX at 5/3/2004 6:06:04 PM
Hello, can someone please give me a tip or two on the following problem: I have a system of linked objects which stores properties of on-screen drawn objects. When i select each object on the screen the application slowly over 10-20 seconds grows slower, and the computer runs out of memory so the...more >>

Form coordinate
Posted by MAY at 5/3/2004 6:00:15 PM
hi, I have two forms, how can i put a form on another form at a particular corrdinate, e.g. point(10, 10)..... form1.Location=??? Thanks! MAY ...more >>

Re: Structs
Posted by Daniel O'Connell [C# MVP] at 5/3/2004 5:33:49 PM
> It also covers any value type with unique charactersitics that I'm not > thinking of or don't know of. Things like TypedReference or Nullable<T> in > 2.0 may or may not have special behaviour\treament that I don't know > of(those are just examples of value types that could potentially have ...more >>

How Do I Update Grid On Another Open Form?
Posted by Steven C at 5/3/2004 5:29:50 PM
Hello: I am a Forxpro developer trying to come up to speed in C#. I'm trying to do in C# what I do effortlessly in Foxpro, and that is to call a grid refresh method in the parent form from the child form. I have a customers form with a grid bound to a dataset, and a child form "Add Custo...more >>

taboo' calling vb namespace from c#
Posted by Crash at 5/3/2004 5:01:43 PM
I want to call the=20 DateAndTime.DatePart() Method in VB from C#, i have correctly added the reference to the VB = dll, etc... but when i call this function like this DateAndTime.DatePart(DateInterval.Weekday,DateTime.Now,FirstDayOfWeek.Sun= day,FirstWeekOfYear.Jan1) or DateAndTime.D...more >>

How get a reference to another form?
Posted by Bill Todd at 5/3/2004 4:48:29 PM
Form B needs to call a public method of Form A. How can form B get a reference to the instance of Form A using its name or any other method? Is there a collection of form instances that can be searched? -- Bill...more >>

How display RowState in computed column?
Posted by Bill Todd at 5/3/2004 4:45:46 PM
Is there any way to display the RowState of each row in a computed column in the DataTable? -- Bill...more >>

blogs.msdn.com ?
Posted by ±èÀçȲ at 5/3/2004 4:35:37 PM
Did you know..? There's a blog in MSDN.!! blogs.msdn.com But I don't know how I join and create blogs in blogs.msdn.com. please teach me. ...more >>

ResetTransform
Posted by Yaron at 5/3/2004 4:11:02 PM
Hi I am drawing a room using a variety of transform matrices. Initially, I use ScaleTransform to apply the current zoom level to the drawing. Then, accordingly I might use RotateTransform and TranslateTransform when drawing things at an angle (such as text). However, after I use RotateTransform an...more >>

recommend UML book
Posted by kids_pro at 5/3/2004 3:59:18 PM
hi there, Could you please recommend some good book for UML design? I got one from Wrox but it doesn't help me much. Regards, Sokun ...more >>

Display contents of Data Grid
Posted by Ken Allen at 5/3/2004 3:45:28 PM
I have an application that invokes a remote process that returns a (possibly empty) DataSet as the result, and the contents of this are then displayed in a DataGrid by setting the data source to reference the DataSet. I cannot figure out how to have the DataGrid automatically show the data itself...more >>

Are there any OBD II .NET components for saleout there?
Posted by acool at 5/3/2004 3:36:40 PM
I am very interested in building some OBD II compliant automotive software and I was wondering if there were any OBD II .NET components available out there at this time and if so where? ...more >>

Can an MDI child listen for mainmenu events on the MDI parent?
Posted by Tom at 5/3/2004 3:23:24 PM
Rather than merge child menus, I would like for some common functionality between various MDI child forms to process an event fired from the main menu, depending on who is in focus. Is this doable? ...more >>

C# Book reccomendation for C++ programmer.
Posted by Jake Montgomery at 5/3/2004 2:35:04 PM
Hi, I am a very experienced C++ Win32 programmer using VS 7.1. Are there any recommendations for C# books that assume no prior C# knowledge, but will not require me to slog through a lot of novice stuff about OOP and basic programming techniques that I am already familiar with? Thanx ...more >>

FormatMessage with parameters in C#
Posted by Andy Robinson via .NET 247 at 5/3/2004 2:11:46 PM
i'm trying to call FormatMessage and supply some arguments for it= to substitute into the message string=2E i can get it to grab the= message, but i can't convince it to substitute the arguments=2E i've got the arguments in an ArrayList (though i started with= them in a byte array along th...more >>

brute force
Posted by didgerman at 5/3/2004 1:56:40 PM
Chaps, I'm looking for a brute force string search. I'd like to use it on a form and out the result of each 'pass' into a text box line. Cheers ...more >>

Unloading a GUI Assembly
Posted by vineeth at 5/3/2004 1:51:02 PM
Hi I have GUI assembly which is loaded into a seprate Appdomain using AppDomain::Load method, after using it's function i unloaded the assembly by calling the AppDomain.UnLoad() method. But i can still use the UI components displayed earlier when i loaded the Assembly. How is this possible, it sh...more >>

XSD schema and SQL database
Posted by RS at 5/3/2004 1:49:10 PM
Is it possible to create a database form an XSD schema? ...more >>

Application Database
Posted by Dougie at 5/3/2004 1:27:01 PM
I want to include a database in an application, the application must be deployable with it's own database system and is basically used for storing records. Is this easy enough to build into an application? Doug. ...more >>

Read raw data from db a nd parse them?
Posted by feel at 5/3/2004 1:13:42 PM
Hi, i need to read data from an Access Database. My problem is that all data have to be parsed or calculated so i'm looking for the fastest way. How to do that? Do i need a dataset or two ,first with raw data and the second with calculated data?But in this case how to pass raw data from a d...more >>

Stop a function
Posted by Ricardo at 5/3/2004 12:41:01 PM
I made a program that generate random numbers and put it in a listbox when the user click go. The problem is: how can i made a button stop, to stop the method that is running??? []s... ...more >>

Can Request.UserHostAddress trace IP behind Proxy?
Posted by Tom at 5/3/2004 12:36:04 PM
Hi If I set a proxy in IE to view a view site. My IP is 223.12.98.244 and the proxy IP is 202.156.87.179 Can Request.UserHostAddress trace 223.12.98.244? I use C# If not, how can I trace the IP of the user? I have a web application, I am afraid of being hacked and could not find the origin...more >>

PadRight
Posted by john sutor at 5/3/2004 12:31:41 PM
Is there something wrogn with this syntax? It does not put in the padded characters. string hk="Assembly"; hk.PadRight(35,'-'); this.textBox1.Text=hk + "Test"; The output is AssemblyTest ...more >>

Help with basic remoting
Posted by Diego F. at 5/3/2004 12:29:48 PM
Hello. I've been testing basic remoting samples where I have a DLL, a server and a client. The server registers a channel and the type of the object (from the DLL). Then the client receives a object from the channel. My question is how to send objects (from the DLL also), and moreover, store o...more >>

Get properties of IIS Server
Posted by Hardy Wang at 5/3/2004 11:48:17 AM
Hi, I am using DirectoryEntry to access IIS properties. After searching MSDN, I get "The Internet Information Services (IIS), and WinNT providers do not currently support Count, so each will throw a NotSupportedException.", so that I cannot use following codes to enumrate properties. Dire...more >>

undefined value how?
Posted by tjaldor NO[at]SPAM hotmail.com at 5/3/2004 11:28:52 AM
I am used to initilize vars with Null to mean undefined, but in c# even complex types such as DateTime are considered value-types so they cant be null. So far I have worked around the problem using values that are outside the normal working range of my programs or some other workaround, but in...more >>

Security Model
Posted by Z D at 5/3/2004 10:29:41 AM
Good Morning, I was looking for some feedback, guidance, input, comments, suggestions or just general thoughts on the following: For our internal development, I'm trying to create a general, reusable security framework that is very flexible. It would have to handle both Authentication and ...more >>

2 VC# COM problems
Posted by Uty at 5/3/2004 9:46:21 AM
As the subject suggests, I have two questions about using COM objects in C#. I'm using two different objects, each of which is giving me a problem. The first object ... we'll call it AppXControl. Here's some Visual Basic 6 code I've written which gets the code connected to the COM object. Priva...more >>

Re: How-to add methods and properties of C# classes?
Posted by Martin R-L at 5/3/2004 9:14:16 AM
Nicholas, After some research; I've concluded that an IExtenderProvider component should do the trick. Still have empirical work to do... // Martin Rosén-Lidholm To:"Martin R-L" <martin_rosenlidholm@msn.com> From:"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> Sub...more >>

Processor...
Posted by greg at 5/3/2004 8:31:05 AM
How can I know if the processor is still used for an application or not Thx all.. Greg...more >>

How to Determine which DC answers LDAP Query
Posted by Robert Bryan via .NET 247 at 5/3/2004 7:00:48 AM
Hello, Is there any way to determine which server answers an LDAP query? One that is not directed at a particular server that is. ie. DirectoryEntry oUser=new DirectoryEntry("LDAP://Domain/DC=Domain,DC=COM","","",AuthenticationTypes.Secure); Thanks, Bob ---------------------------...more >>

Distributing software programmed on visual C#.net 2003
Posted by Matt at 5/3/2004 6:26:05 AM
I have made a program which has an instillation of about 0.5 MB, and am now ready to put in online. The problem I have though is that if i try to run it on another computer it comes up with the message, "The application failed to initialize properly (0xc0000135). Click on OK to terminate the appli...more >>

Certificates and WebRequest
Posted by Bobstar at 5/3/2004 5:41:07 AM
Hello.. In the good old days where I programmed using wininet.dll, I did'nt need to do anything to retrieve a sourcecode from a secureed site eg. HTTPS - port 443. But in the new .NET it seems a lot more difficult, infact I dont seem to be able to solve a webrequest using SSL. How do I manage ...more >>

Threading
Posted by John Baro at 5/3/2004 5:30:46 AM
How can I create a form on a separate thread? FormA running on ThreadA FormB running on ThreadB TIA JB ...more >>

why not?
Posted by ISMAILRAJPUT at 5/3/2004 4:33:37 AM
this.oleDbSelectCommand2.CommandText = "SELECT kitaab, waraq FROM shajra WHERE mahal = '" + comboBox1.SelectedItem.ToString() + "' ANDperi LIKE '%" + textBox4.Text.ToString() + "%'"; this.oleDbSelectCommand2.Connection = this.oleDbConnection1; this.oleDbDataAdapter2.Fill(dataSet2 , "mydata2"...more >>

foreach and IEnumerator
Posted by Hans at 5/3/2004 4:16:03 AM
I implemented the IEnumerator interface in some classes to enable the use of the foreach statement. As you probalbly know, the interface asks for the implementation of object IEnumerator.Curren bool IEnumerator.MoveNext() an void IEnumerator.Reset() The help to IEnumerator.MoveNext de...more >>

How many virtual memory is being used?
Posted by Luis Pinho at 5/3/2004 4:11:27 AM
Hi, I would like to know is there's any method that can give me the quantity of virtual memory being used my C# application. I search in the System.Diagnostics namespace but the amount of memory that I get from the different counter has nothing to do with the virtual memory showned in the ...more >>

pcap_if structure in C#( urgent )
Posted by Vineet S at 5/3/2004 4:11:26 AM
Hello friends, i am doing a project in C# which involves accessing funtions and structres from winpcap. so i would like some one to please help me to access the pcap_if structure in my C# program. i have tried doing it by DllImport but i am not able to do it. Please help me its very urgent....more >>

NotifyIcon and runtime Icons
Posted by Scatropolis at 5/3/2004 1:52:44 AM
I'm trying to create Images/Bitmaps during runtime and converting them to icons so I can use them for the NotifyIcon class. I searched but couldn't find anything about this. I know all about creating images and editing them...it's the "getting the image to the tray" part that's getting me. ...more >>

INPUT MASK FOR TEXTBOX IN WINDOWS FORM
Posted by msnews.microsoft.com at 5/3/2004 12:35:11 AM
Hello. How can I set input mask for TextBox in Windows Form? For example I want to mask (format) TextBox for inputing phone number like (999) 999-99-99. The TextBox must first show something like this: (___) ___-__-__ How can I do this? ...more >>

Classic / XP theme
Posted by Mark Rae at 5/3/2004 12:23:50 AM
Hi, I'm writing a WinForms app in C# and would like to alter the button images on the toolbar depending on whether the user is using the WinXP theme or the Classic theme. Changing the image list is the easy bit, but does anyone have any code for detecting which theme is currently in use? An...more >>


DevelopmentNow Blog