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# > april 2004 > threads for friday april 9

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

Beginner dealing with *.dll
Posted by Newbie at 4/9/2004 11:31:24 PM
I have some controls (dll's) - how to import & use them in C#?? (VB = Imports ...) Any link? thnx! ...more >>


A call for help?
Posted by Ayende Rahien at 4/9/2004 6:04:22 PM
Does anyone knows how to interate FreeTextBox 2 (www.freetextbox.com) with dasBlog (www.dasblog.net) ? I'm using Firefox as my browser, and it drives me *crazy* that I can get a rich text box on it. I tried to fiddled with it myself, but the size of the project is a bit daunting for a weeken...more >>

Initializing base portion of a derived class
Posted by J.J. Feminella at 4/9/2004 5:27:56 PM
(Please disregard the previous message; I accidentally sent it before it was completed.) I have source code similar to the following. public class Vehicle { protected string dataV; // ... more protected fields } public class FourWheelVehicle : Vehicle { protected string dataFWV...more >>

How can you detect a mouse double click on a text box?
Posted by Harry J. Smith at 4/9/2004 5:27:15 PM
How can you detect a mouse double click on a text box? I tried the following but it does not work. private void richTextOut_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) // Process Mouse up in output TextBox { if (e.Clicks == 1) // if a single click (always == 1 ??)...more >>

Initializing base class portion of a derived class in a constructor
Posted by J.J. Feminella at 4/9/2004 4:47:52 PM
I have source code similar to the following: public class Vehicle { protected int dataA; // ... additional fields } public class FourWheelVehicle : Vehicle { protected float dataXYZ; // ... additional fields // [ constructor goes here ] } public class SUV : FourWheelVeh...more >>

removing border from Flat buttons
Posted by JSM at 4/9/2004 4:32:32 PM
Hi, is there any way of removing the border from a button when the style is set to Flat. I am assuming the best way is to create a class derived from a standard button and override the On_Paint method but I'm not sure what I would need to do to remove the border within this method Any help ...more >>

newbie questions on C#
Posted by Danny Ni at 4/9/2004 4:26:17 PM
Hi, Does c# has functions to check if a String can be successfully converted to a DateTime? VB.Net has IsDate() And does c# has functions to convert a delimited string into an array? VB.Net has Split. Thanks in Advance ...more >>

Getting value from dynamic controls postback problem
Posted by Mike at 4/9/2004 3:35:14 PM
I create a dynamic control and added it to a panel. I get the selected value of the control via a btn_click() but my problem is everytime the page is postback the selected values go back to the first element in the dropdownlist. but if i call the control creation with if !=postback then the ...more >>



how do you wire your own form control event handlers
Posted by Daniel Billingsley at 4/9/2004 3:26:46 PM
If you double click on a control on a form in the designer it writes the handler stub and links it for what I guess is considered the "default" event of the control. Double-click on a form, for example, and you get a _Load() handler. The link is handled in the InitializeComponents() method, whi...more >>

Slow SetPixel performance
Posted by Peter at 4/9/2004 3:26:19 PM
Hi, I found the SetPixel performance is very poor. it took lots of time to twist dots for a large image. I wonder if there is any other way to speed it up. Thanks. Peter http://www.infopx.com ...more >>

Getting MSIL code from VS.NET
Posted by Alex Fennell at 4/9/2004 3:06:05 PM
Hi All I can't seem to find anything about this but is there a way to get VS.Net to compile into ASCII MSIL rather than a binary assembly? Would I have to use the command line compiler to do this?...more >>

How to get standard windows's title and menu 's height?
Posted by Ekey at 4/9/2004 2:54:07 PM
Hi: i try to use GetWindowRect and GetClientRect API,but i think it wrong. Following as: GetWindowRect((int)hwnd,ref windowRect); GetClientRect(hwnd,ref clientRect); int winHeight = (windowRect.bottom - windowRect.top) - (clientRect.bottom - clientRect.top); Is winHeight t...more >>

connection string
Posted by Selen at 4/9/2004 2:32:01 PM
In asp.net what is the best way for storing connection string? Thanks.... ...more >>

Populate Array
Posted by Anil at 4/9/2004 2:08:08 PM
Hi All, I have a string which has product names, which are seperated by comma. The number of products in the string are random. I want to populate the array using the string, one product per level. Please let me know how to do it. Thanks in Advance, Anil ...more >>

Newbie - please help with wierd unhandled exception issue
Posted by Daniel Reber at 4/9/2004 2:01:10 PM
I am getting a strange unhandeled exception message. The same code is working on many serevrs but I am getting an error at this one. The server is locked down security wise and many of the windows services are disabled. The code and unhandeled exception message, is below. Any ideas? Thanks ...more >>

App Quesion
Posted by ion at 4/9/2004 1:30:58 PM
My application is a 2 tier design (client and db server) however I split it up into 3 components: UI layer, business layer and data access layer. My question is regarding how the UI interacts with the business layer. I split my UI layer into two sub layers: Forms and UI control classes. In m...more >>

TextBox.PasswordChar set to true?
Posted by rosty at 4/9/2004 1:01:46 PM
This is taken from MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html /frlrfsystemwindowsformstextboxclasspasswordchartopic.asp) "When the PasswordChar property is set to true, cut, copy, and paste actions in the control using the keyboard are not allowed, regardle...more >>

Maybe new to C#?
Posted by Brad Allison at 4/9/2004 12:47:40 PM
Okay, I am for the most part a VB programmer. Why would I want to learn C#? Is there any advantages over C# and VB? And if I did want to pursue C#, can anybody recommend any starting books. Thanks, Brad ...more >>

Windows Forms DataGrid
Posted by JimK at 4/9/2004 11:33:47 AM
Is it possible to change the the width of the farthest left column, the one with the arrow or sideways triangle pointing at the currently selected record? (C# .Net) *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

command prompt?
Posted by Yurez at 4/9/2004 11:21:02 AM
Wanting to try a little project of making my own little shell/dos prompt sort of thing. However not sure best method to make the prompt over on the left and to keep it from being overwritting by the user? Any ideas? Believe I would be making this as an MDI with textbox windows or something simila...more >>

connect sql server from another domain
Posted by C#User at 4/9/2004 11:17:44 AM
hi, For the local sql server, the connection string is like: Data Source=(local);Integrated Security=SSPI;Connection Timeout=5;DataBase=northwind But for another sql server on another domain, what the connection string should look like?? i appreciate your help! ...more >>

Looping to find dynamic control values c#
Posted by Mike at 4/9/2004 10:45:34 AM
Can someone help me figure this out... I've created dropdown boxes dynamically and added them to a panel on my page. how do i get the selectedvalue of the dropdownlist from the panel when i click the submit button? I've tryed : pnlName.Controls[0] to see if that would find the dropdownl...more >>

Remove EventLog without EventLog.Delete
Posted by Bob Dankert at 4/9/2004 10:40:24 AM
I am trying to remove an EventLog I accidentally created (typo) without having to write a program just to delete the log. Is there an easy way in windows to do the same as EventLog.Delete would do? Thanks, Bob Dankert ...more >>

newbie question on casting a DateTime field from datareader
Posted by Danny Ni at 4/9/2004 10:24:50 AM
Hi, I used SqlDataReader to retrieve a resultset from SQL server. Say the SqlDataReader name is drEmployee, it has a DateTime field which I like to convert it to ShortDate format. I tried: drEmployee["HireDate"].ToShortDateString() No go. Does not even compile I tried: drEmployee["HireDa...more >>

Is this a safe way to hide the main form?
Posted by Peter Steele at 4/9/2004 10:09:45 AM
I'm writing a tray application and I of course want to hide the main form when the appstarts. I've experimented with a couple of techniques to do this, including setting Opacity to 0, but this seems a bit kludgy. I ended up doing this: static void Main() { new MyAppForm(); Applicati...more >>

How to register a hotkey for a Form and its controls
Posted by zhimin at 4/9/2004 9:55:53 AM
I want to register some hotkey for my form: If user press Ctrl + Enter, the result is equals to the OK button clicked If user press F2, the textbox txtNumber focused and so on I had read the document for the hot key, they are prepared for menuitem, not for form and controls Thanks! ...more >>

Convert.ToXXX VS XXX.Parse
Posted by Zoury at 4/9/2004 9:23:52 AM
Hi There! :O) I was wondering if there was any differences and/or preferences between both? -- Best Regards Yanick Lefebvre ...more >>

newbie question on C#
Posted by Danny Ni at 4/9/2004 9:02:53 AM
Hi, I am looking for a function that will give me one value if a condition is met, other value if not. I vaguely remember in C there is something like this: (a>b? a,b) Is there anything similar in c#? TIA ...more >>

Can I access the logon ID?
Posted by Bill at 4/9/2004 8:38:29 AM
I am creating a file that will be uploaded to the mainframe for which a requirement is the id of the person who created it. Rather than have them key it in, I prefer to use the logon id of the user who created the file. Is there an easy way to do this? ...more >>

what's wrong with lock(this) ?
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 4/9/2004 7:40:32 AM
I have seen some debate but am not clear on what the problematic implications of the expression lock(this) are. Microsoft seems to advocate it, but others seem to be against it. Pros and cons? -KJ...more >>

Result difference between hash code providers in .NET
Posted by Tony at 4/9/2004 7:22:31 AM
Hi, what is the difference in result between the various hash code providers in .NET? I can see that they are all returning numbers, but have no idea on the differences between the algorithm. Thanks Tony ...more >>

Thrown application exception bypasses class deconstructor?
Posted by Doug Wiley at 4/9/2004 7:21:02 AM
Hello All For reference MyClass myClass = new MyClass() myClass.MyMethod() It appears that if you throw an application exception in MyMethod(), the myClass deconstructor will be bypassed. Can anyone confirm this please? I have a database layer class that disposes connections in the deconstruc...more >>

C# test
Posted by test at 4/9/2004 6:50:26 AM
test *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Is a lock required if...
Posted by Invalid at 4/9/2004 6:11:09 AM
I launch a worker thread that periodically reads a volatile bool abortRequested, which could be set to true by my main form. IOW, there is one thread that can read that bool and one different thread that can set it. See code below for an overview. In a C or C++ environment, my current approac...more >>

Monitoring a Directory
Posted by Steven Blair at 4/9/2004 3:58:10 AM
Hi, I need to monitor a directory for files. When a file is moved into this direcotry I need some sort of event to be called and the file will then be picked up. I have done this type of thing using MFC, and used FindFirstFile, making a call to that ever x milliseconds. I am just wondering if...more >>

right justified lable - how to line up?
Posted by Glenn Lerner at 4/9/2004 2:41:06 AM
I have Label controls with TextAlign property set to MiddleRight. For some reason, the text doesn't always shift all the way to the right. Example: If I put "10" it seems to be shifted all the way to the right. If I put "1,000,000" it shifts little bit to the left leaving little space to t...more >>

How to use streamreader to read ascii 8 charecters
Posted by G.Esmeijer at 4/9/2004 12:25:44 AM
Friends, Want to read a textfile with characters that go above 7F ( ascii > 128) and put the results line by line in a string to process it further I used a streamreader to do so but the readline() methods in someway skipps the characters > 127 . I used the binary reader as well, same result....more >>


DevelopmentNow Blog