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 2005 > threads for thursday april 7

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

best way to stop arrow key functionality
Posted by timma at 4/7/2005 11:05:01 PM
I've got a c# winform control that I've created. Any time I press down arrow or up arrow, even though I try to handle the key, it tries to take focus away from my control. I've tried this with a bare example control and it does the same thing so it's not something I'm doing (I think at least)....more >>

open binary file and search hex string
Posted by Nikos at 4/7/2005 8:41:25 PM
Hi... I would like to search for a hex string (for example: "E903") inside a binary file... Although I open the file correctly, how do I search hex values? Thanks in advance! Nikos ...more >>

c++ question
Posted by Big D at 4/7/2005 7:41:07 PM
I could not find a c++ news group, So I appoligise for posting here. I have written a c++ program that takes in arguments to create paramaters for many different applications or netowrk info. One parm that I take is three letters. I have been using those three letters passed in to create a ...more >>

any solution for my problem?
Posted by roopeman at 4/7/2005 7:39:04 PM
Dear all; Do you have any solution for my problem? i need monitor network printer server 's job info. to a mdb Database . somebody can help? Thanks! i can not found some uesful help in website! Regards. Roopeman ...more >>

Ó¿Ò, THE GREATEST NEWS EVER ! °º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø
Posted by RonGrossi_38112 NO[at]SPAM yahoo.com at 4/7/2005 6:31:05 PM
http://www.print-it.blogspot.com << The Greatest News Ever! ...more >>

DeviceIoControl from C# ?
Posted by Michael Allen at 4/7/2005 5:47:04 PM
I would like to perform something similar to the below function in C# .NET. The C++ below code is from a Microsoft DDK sample driver application. Specifically, I would like to perform Device I/O Control from a .NET application. Is there any way to do this in C#. I have tried Googling to no ...more >>

C# program with repeating records printed in Crystal report
Posted by Alpha at 4/7/2005 5:13:04 PM
I have a C# program that user would select several search criteria and then outputs to the Crystal Report. A message is output to user if no matching record is found. In my code I also clear, removed and dispose of the table in the dataset that was used which should have nothing in it any wa...more >>

Overriding Properties
Posted by ESPNSTI at 4/7/2005 5:11:41 PM
Hi, I'm very new to C# and .Net, I've been working with it for about a = month. My experience has been mainly with Delphi 5 (not .Net). What I'm looking for is for a shortcut way to override a property = without actually having to reimplement the get and set methods. In other words, override ...more >>



Where's the DOCUMENT object
Posted by AcademicUser at 4/7/2005 4:41:33 PM
An instruction stated "...change the Title property of the DOCUMENT object to..." Where's the DOCUMENT object in a VS C# project? Thanks, Norman ...more >>

Setting DateTime.Parse( ) default IFormatProvider
Posted by vooose at 4/7/2005 4:11:41 PM
Consider an application which has *many* references to DateTime.Parse(string); Is there a way, say when the application first starts up to force this method to use a specific IFormatProvider, so every DateTime.Parse(string) is really DateTime.Parse(string, format); (where format is de...more >>

Listview problems
Posted by Søren Reinke at 4/7/2005 3:59:28 PM
Hi everyone. In a little program i am writing i have a listview, i fill it with data from an ArrayList which contains a lot of objects. The data for the columns are differente fields in the objects in the ArrayList. I have also added column sorting, when a user clicks a column. All that w...more >>

initial directory of openfiledialog
Posted by Eps at 4/7/2005 3:44:38 PM
I have a problem that is driving me crazy, I have and openfiledialog but I can't seem to set its initial path. I have the initalDirecotry property set to the correct path but it always opens at the last directory I opened a file in. Does anyone have any idea how I can fix this ?. Also ...more >>

Default values and form inheritace
Posted by Olaf Baeyens at 4/7/2005 3:30:08 PM
I am trying to create a control, using standard user components A. The I use that component A as part of a new component B. And finally I drop that component B on my form. Now in Component A I filled in some default fields like this. [Browsable(true)] [DefaultValue("Title"), Category("Appea...more >>

System.Runtime.InteropServices.Marshal.SizeOf(a) = 1 ?
Posted by Claire at 4/7/2005 3:28:36 PM
char a = 'p'; if (System.Runtime.InteropServices.Marshal.SizeOf(a) == 1) dothis(); else dothat(); SizeOf(a) is returned as 1. I thought chars were 16 bits in size. Why is it returning 1 to me? thanks Claire ...more >>

treeview node
Posted by Hrvoje Voda at 4/7/2005 3:08:05 PM
How to check if a user selected a child node from treeview? Hrcko ...more >>

Watching memory use. What tools can I use
Posted by Claire at 4/7/2005 2:54:14 PM
Im sat here watching task manager and the memory consumption of my application rising second by second. What tools are there out there for me to use to find where it's all going please? (I wish we were able to do garbage collection ourselves. Excruciatingly poor idea microsoft. That's been t...more >>

Closing a Form
Posted by Sherwood Page at 4/7/2005 2:49:33 PM
Greetings, I have a "newbie" question related to forms. I have the following code in which I display a second form when a button on the first form is pressed (using the "Click" event). private void btnClickMe_Click(object sender, System.EventArgs e) { ActiveForm.Hide(); frmInstruction...more >>

Icon in EXE
Posted by Brian at 4/7/2005 2:29:57 PM
I want to add an icon to my project's exe file, so that when i create shortcuts to it, they use that icon. I've added the icon to my project and marked it as an embedded resource. I've changed my form's icon property to use the icon, but i think i need to do more. I've added a deployment ...more >>

Static controls
Posted by Dhanraj K at 4/7/2005 2:21:28 PM
hi, i have some controls in a form which are declared as static for example :- public static System.Windows.Forms.ComboBox comboBox1; it is working fine and i am able to access the control from other forms without creating an object of it. But when i make any changes in the form li...more >>

Listview image question.
Posted by Paul Tomlinson at 4/7/2005 2:09:16 PM
All, I have a listview and I want to add an image to each row (detail view) to acompany the row text. However I simply want the image to be a square block coloured in, in a particular colour For example I want the image of row 0 to be a red square, row 1 to be a blue square , row 3 to b...more >>

Deep/Shallow copy when returning objects (DataTable) from methods
Posted by bubby at 4/7/2005 2:04:21 PM
Should I be concerned about the classic "Deep/Shallow" copy problem when returning objects, specifically a DataTable or DataView from a method? For example, see the code below: private DataTable LoadStuff() { DataTable dt = new DataTable(); .... dt.Columns.Add(...) .... dt.Rows...more >>

textbox blank
Posted by Hrvoje Voda at 4/7/2005 1:58:53 PM
How to check if user entered a simbol and not a blank in textBox? Hrcko ...more >>

Strongly typed datasets and nested repeaters
Posted by Duncan Welch at 4/7/2005 1:46:28 PM
I have a strongly typed dataset that returns two tables - "items" and "itemdetails". In the strongly-typed dataset designer, I've created a link (relationship) between the two tables based on a foreign key. I want to put them into a nested repeater, but I'm having problems finding a "nice" wa...more >>

Windows Mobile, Pocket PC, PDA, etc. question
Posted by Keith Smith at 4/7/2005 1:38:17 PM
What is the difference between these items and can Visual C# write apps for them? Windows Mobile Windows CE Pocket PC PDA Palm Pilot ...more >>

Fundamental question about bound controls
Posted by kaborka at 4/7/2005 1:15:02 PM
I have a WinForm with controls bound to a typed recordset that was generated by the Dataset Designer. There are several ComboBox controls with their DataSource bound to different lookup tables. Everything is working fine, except when I need to handle a null default value in the data record c...more >>

debugging an application and using the Output window?
Posted by Flip at 4/7/2005 12:11:02 PM
When I'm trying to debug an app in VS, I'm trying to get the value of a variable by typing out a question mark and then the variable name. But when I do that I get an error from the Output Window. :< I know this can be done, and I've done it before, but I can't remember how I flipped the "mo...more >>

Initialize Array
Posted by MAF at 4/7/2005 12:08:45 PM
Is there a quick way to initialize an array with one value for example int[] IDs = new int[100]; I want all items to be initialized to -1. ...more >>

Convert from Base64 to binary - Problem
Posted by ablyplus at 4/7/2005 12:07:18 PM
Hi, I have conversion like following: string Source; // convert from Base64 to binary byte[] bytIn = System.Convert.FromBase64String(Source); Everything works fine. Problem is in Source Data. If "Source" data are not in the proper format I have got unhandled exception of type "Syste...more >>

proper form Show()?
Posted by Flip at 4/7/2005 12:04:40 PM
I've seen one way of opening up another form in a C#/WinForms app and I had done it another way and I would like to know what the gurus think is the correct/better way? I've seen one way, where the parent class/form instantiates the child form, and still in the parent form, sets properties ...more >>

Use Process.Start to execute Ipconfig
Posted by Manoj Nair at 4/7/2005 11:46:38 AM
Hi, In our application we need to use the Process command to execute and retrieve the string that is returned when we execute IpConfig on the command prompt.( yes have to use IPConfig) the following code doesn't seem to work. Process p = new Process(); p.StartInfo.UseShellExecute = false; p.S...more >>

System.DllNotFoundException: Unable to load DLL
Posted by Anna at 4/7/2005 11:35:04 AM
When I run a c#DotNet web service, I have the following error: System.DllNotFoundException: Unable to load DLL The dll that cannot be loaded is a C dll. That's why it cannot be put in the GAC. This dll is located in c:\Program Files\MyApplication\bin The environment variable "PATH" contains ...more >>

validate attribute usage
Posted by tolisss at 4/7/2005 10:56:38 AM
Hi i have to custom attributes for using with properties. What i want to do is instruct the compiler to throw a warning or ever better an error if both attributes are used in the same property. Is it possible? any ideas? thnks in advance *** Sent via Developersdex http://www.develope...more >>

calling an event?
Posted by Flip at 4/7/2005 10:51:08 AM
I have an event on my form which is on the keyup event. In another part of the form, I want to be able to call that logic. I have tried calling that even method with passing (null, null) and things worked. But my "spidey sense" tells me that's not the correct way to do it. Is there a bet...more >>

button action
Posted by Hrvoje Voda at 4/7/2005 10:44:08 AM
When I start writing something in textBox I would like that a specific button is Enabled=true! How to do that? Hrcko ...more >>

comboBox
Posted by Hrvoje Voda at 4/7/2005 10:34:10 AM
How to fill comboBox with data from database? Hrcko ...more >>

dll location
Posted by Rodolfo at 4/7/2005 10:03:55 AM
I referenced a COM dll, but I need to ask, in execution time, the direction of the reference. anyone knows how to do that? if I called the assembly location it gives me the location of my project, not the location of the dll Thanks ...more >>

Evaluate true in C# using switch
Posted by Jim at 4/7/2005 10:02:31 AM
Hey all, I'm hoping someone may be able to help me. I need to evaluate some strings to see if their values are what I expect and it doesn't seem to work. Any help you can provide would be really appreciated. Here is my non-working syntax: switch(true) { case Header.ParentSectionDisplayNam...more >>

Calling an internal constructor
Posted by Pete Davis at 4/7/2005 9:29:26 AM
I know I can use reflection to call internal, protected, and private methods in a class, but I need to instantiate an object that is public but has an internal constructor (The CurrencyManager class). Is there a way to do this with reflection? I'm so mad at MS about the CurrencyManager desig...more >>

Gracefully terminate after force quit?
Posted by Andrew S. Giles at 4/7/2005 9:15:05 AM
Hello, I am looking for an article, or some information about how to get a C# windows forms application to trap the "End Process" event from the Task Manager? Is such a thing possible, and if so, where is the information on the event the would be raised located in the .NET framework? ...more >>

+=
Posted by Peter Kirk at 4/7/2005 9:04:21 AM
Hi a simple question about the meaning of "+=" in C#. What does something like this mean: this.TextBox1.TextChanged += new System.EventHandler(this.TextBox1_TextChanged); Is it a call to an "add" function or something? (I know that in C# one can implicitly cause a call to a "get" or a ...more >>

HELP!! Why doesn't this code sort correctly?
Posted by batatoon at 4/7/2005 9:04:10 AM
Hi, I could use some help with this because I've run out of ideas. I need to sort an arraylist containg objects of type TA, but so far no luck. Here's the code: Class TAList: ArrayList { normal arraylist methods... .... add .... remove public TA Item(int i) { if (_tacol.Count=...more >>

Calendar that allows data entry
Posted by marc.henderson NO[at]SPAM gmail.com at 4/7/2005 8:47:20 AM
Hi all, I want to add a month callendar to my application that allows data entry and will display data. Basically I would like the user to select a day and then enter data for that day. When they save the info then the data they entered would appear under the number of the day in the month. ...more >>

Large number of objects. Use static functions?
Posted by Claire at 4/7/2005 8:35:10 AM
If I need to create thousands of objects of the same type, is it more economical (memory wise) to use static member functions where possible? How about virtual ones? ...more >>

Searching for Text in a TextBox
Posted by MoonWa at 4/7/2005 8:29:03 AM
Short of going char by char, how do I search for a pattern in the text for a textbox Thanks MoonWa...more >>

TCP buffer splitting question ?
Posted by Sharon at 4/7/2005 8:09:01 AM
At the TCP server side I'm using: /////////////////////////////////////////////////////////////////////////////// IPAddress DEFAULT_SERVER = IPAddress.Parse("127.0.0.1"); IPEndPoint ipNport = new IPEndPoint(DEFAULT_SERVER, 31001); TcpListener m_server = new TcpListener(ipNport); while( true...more >>

java STW or winforms in as desktop application
Posted by Elhanan at 4/7/2005 8:02:21 AM
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current database for other application is SQL-SERVER. they have 12 users. i suggested doing it in winf...more >>

Canceling selecting a different item in a ListView
Posted by David Anderson at 4/7/2005 7:37:09 AM
I'm working on a Windows app that has a ListView containing a bunch of items. When the user clicks on an item, the app displays the item'd details. The user then has the opportunity to edit these details. The user should click the Save button after each change, but of course that doesn't alway...more >>

Advice on making a control ...
Posted by TT (Tom Tempelaere) at 4/7/2005 5:09:06 AM
Hi everyone, I'm making an application that edits the configuration files of our software package. One of those things in the configuration files is configuration of heads. These heads form a matrix, eg a 2 x 3 matrix. H H H H H H I want to make a control that pictures the head. At f...more >>

How to make File control read-only in dot net?
Posted by Dharanesha at 4/7/2005 4:47:04 AM
I have used the following statement in ASP.NET <input type="file" runat=server ID="file1" readonly=true /> But the browse button next to textbox is not enabled when I execute the above statement. Please help me out in this regard. Thanks in advance. ...more >>

Using arrays to display a date.
Posted by Vikas Arya at 4/7/2005 4:43:05 AM
Hi. Any suggestions on how I might build a form which allows my user to enter a number from 1-365 and return a date in the 'mm/dd' format? I would like to use an array to do this. Thanks. -- Thanks, Vikas Arya...more >>

Help with displaying text in textbox??
Posted by trint at 4/7/2005 4:39:12 AM
I have a textbox that I've watched in debug which receives this string: "557614" However, it doesn't display the text. Here may be the reason, so I need to know the proper way to do this: public class ThreadFunction1 { //put new thread process here public void getOneAtATime() { ...more >>

User control has no impact on parent control
Posted by David K. at 4/7/2005 4:29:32 AM
My question concerns C# Windows Forms user controls. I have created navigation user control. It gets the parent control's CurrencyManager to its bindable property. In the control, any change in the CurrencyManager position is displayed OK. But the problem is that the position of the parent Curre...more >>

Printing In C#
Posted by nicholasrolfe NO[at]SPAM yahoo.com.au at 4/7/2005 2:54:00 AM
Hi There When printing in C#, it seems that the printer 'shifts' the print area down and to the right. So, even if the print document's DefaultPrintSettings margins are set to 0, the printed page still has a 'printer added' left margin and top margin. Consequently, when printing with 0 mar...more >>

Form focuse
Posted by [Yosi] at 4/7/2005 2:07:03 AM
Why I can't catch the Form lost focuse event ? I mad a FORM , I want to print message each time I moved to another application my my desktop . I thryed the following but not work . this.LostFocus += new System.EventHandler(this.Form1_LostFocuse); private void Form1_LostFocuse(object sender...more >>

when put a class in another class
Posted by Wilfried Mestdagh at 4/7/2005 1:59:07 AM
Hi, When do you put a class in another class and when not ? It seems in most case both work fine, but in some case not. I'm not yet smart enough in dotnet to know when and wy. Can someone enlighten ? I give example to enlight what I mean. This one has the CFG class in the class Rx: name...more >>

Problems with Reflection please help
Posted by Alexandre at 4/7/2005 1:51:05 AM
Hi, im currently working on making myself a MySql Object Abstraction Layer so that i pass in objects and it does the database trasnsactions using reflection so far everything works except the select since im trying to rebuild the objects in my method based on an object i pass in i am no...more >>

many for cycles
Posted by xxxxyz NO[at]SPAM abv.bg at 4/7/2005 1:50:19 AM
Hi, I have an array and I want to make many "for" cycles as follows: int[] a=new int[n]; ....//init a for (i1=0;i1<a.Length;i1++) for (i2=0;i2<a.Length-1;i2++) for (i3=0;i3<a.Length-2;i3++) ... for (ik=0;ik<a.Length-k-1;ik++) { f(a[i1],a[i2]....) //some...more >>

A problem on using Remoting & GAC
Posted by BLAdeMAN at 4/7/2005 1:47:06 AM
I want a .net component, that a lot of applications can share one instance of it. So i wrote the following code: 1.TextViewer.FormTextViewer(the component): using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespac...more >>

Calendar.SelectedDate
Posted by bernardpace NO[at]SPAM yahoo.com at 4/7/2005 1:26:16 AM
Hi, I am using a calendar to show dates. Now I am setting my own date; myCalendar.SelectedDate = myDate; The date that is shown in the calendar is today's date. How can I move the calendar to show the date that I have set. Can someone help me out. Thanks in Advance...more >>

Tcp Server for several clients data conflict ?
Posted by Sharon at 4/7/2005 12:23:02 AM
I'm writing a TCP server that receive data from several clients. The code: Socket clientSocket = server.AcceptSocket(); // server is a TcpListener object. And now I start a thread that handle the clientSocket received data from the client, and I going back to wait on the server.AcceptSo...more >>

Optional Method Arguments from C#
Posted by sachinx at 4/7/2005 12:21:01 AM
I am calling following Powerpoint method expression.AddPlaceholder(Type, Left, Top, Width, Height) Here Left Top Width Height are optional parameters with Type as float How to call this method in C# without passing any value for above parameters I am trying ti your Type.missing but not wor...more >>

Suggestions to control concurrent users...
Posted by pnp at 4/7/2005 12:00:00 AM
Hi all, I've developed a win C# app that is actually database driven using SQL server 2000. The idea is that only one application will be installed on a server in a network and the program will be able to run at each client machine by just double-clicking the application executable through a...more >>

How can i get the Property value using Reflection (Return type: Collection of controls)
Posted by Mudassar at 4/7/2005 12:00:00 AM
i want to get the property value using reflection. Scenerio: i have a status bar on MDI form. it has property named "Panels" and i want to get a specific panel from that panels collection using reflection. Please let me know. Thanks C# Developer Mudassar ...more >>

C# ASP .NET Book
Posted by emr at 4/7/2005 12:00:00 AM
Can you please suggest me a good book? i' ve never done asp or something similar before. ...more >>

Software Access Point in C#
Posted by emr at 4/7/2005 12:00:00 AM
Hi, i'm looking for an access point example in c#, a simple one or something useful or ideas. Thank you very much. ...more >>

Thread Marshalling help
Posted by Steve at 4/7/2005 12:00:00 AM
I have two objects, each on a different thread. Object 1 periodically fires an event, which Object 2 sinks. How can I marshall the event from Object 1 to the thread on Object 2? ...more >>

Integrated Security
Posted by Emmanuel at 4/7/2005 12:00:00 AM
Hi, I would like to make an application that uses the windows access control list to enable/disable features of the application depending on the user. The idea is to reuse the Windows NT user accounts and groups and allow the app user to configure which winnt user accounts and groups can ac...more >>


DevelopmentNow Blog