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# > september 2003 > threads for monday september 8

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

splitter problems
Posted by John at 9/8/2003 11:20:57 PM
Hi, I have a group of controls in a panel on the right-hand side of a splitter and a treeview on the left-hand side. The only configuration that I can find to make the right-hand side resize correctly is: lhsTreeview - Dock = Fill, Anchor = Top,Left splitter - Dock = Right rhsPanel - Dock...more >>

Collections, Are they helpful for passing many parameters to method?
Posted by VM at 9/8/2003 11:17:46 PM
Can collections help me pass several parameters to a method? For example, I need to pass 10 different string and integer values to one method. How would I declare a Collections type, store these 10 string and int values into the Collection, and then pass just the Collection with the Method call? ...more >>

Calling windows forms from a class in C#
Posted by jonhyland NO[at]SPAM hotmail.com at 9/8/2003 11:04:25 PM
Ok, I'm a little rusty on this, it should be a simple problem but I can't figure it out. How can I handle form events in my main code page?? I'm creating a Windows App in C#. Rather than make my main form the startup object, I'd rather put my Main() function in a class or code file. Why? ...more >>

Binding to my property??? How???
Posted by Vlatko at 9/8/2003 10:57:36 PM
I would like to write a class that has property, for example, MyText and I want to be able to bind a Text property of a TextBox to my MyText property. When I change the value of MyText property in my class that change should be visible in binded control. How can I do this? Thx. P.S. This is...more >>

Beginner: Window Not Responding While Continuous Loop Executes
Posted by Shamrokk at 9/8/2003 10:35:31 PM
My application has a loop that needs to run every 2 seconds or so. To acomplish this I used... "Thread.Sleep(2000);" When I run the program it runs fine. Once I press the button that starts the looping function the window becomes unmovable and cannot close under its own direction (the upper r...more >>

Switch to different language in Windows XP
Posted by eikel at 9/8/2003 10:24:35 PM
Hi I am a newbie c# programmer, I would like to know how to make a function that switches between languages in windows XP/2000. The languages can be set manually in the language bar. Thanks for any help! Regards E. ...more >>

Creating Online forms from PDFs
Posted by Pawan at 9/8/2003 9:38:37 PM
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done before and have no idea how to do it). Now these online forms will be shared by 1200 users. VB a...more >>

Adding images (bitmap) to any colum of a listview
Posted by Ivan Figueredo at 9/8/2003 8:41:57 PM
Hi, I have successfully implemented a simple TreeView Control with a corresponding Listview. I know how to assign a bitmap to the first item of a Listview, but is it possible to add a bitmap to any column of a Listview? Finally, I was wondering if it is possible to have the each row...more >>



Standard Library in C# - std
Posted by Nuno Esculcas at 9/8/2003 7:52:56 PM
Hello, I use a lot the std (standard library) in VC++6 (map, set, vector, etc) now i want to use the same functionality in C#. Where is the std? it disapears? or still exists? (if exists how it's used?) If it disapears, is there any thing that came to replace? with the same perform...more >>

IntPtr - what is this!?!?
Posted by Nuno Esculcas at 9/8/2003 7:48:27 PM
Hello, I come from C++ and i now have to work with C#, and someone tell me that bye bye pointers but i think this is not true, i must convert a DIB image in something that i can use in C# (like Image or Bitmap) and the only thing i can do is a DIB into a IntPtr (a pointer). I do this with ...more >>

Using Port 80 with UDP/TCPIP possible?
Posted by Mike at 9/8/2003 7:41:31 PM
I would really love to use port 80 for an socket/tcpip based app. I remember in java there was a method called HTTP tunneling where you could use port 80. Also in kazaa i believe there was/is an option to use port 80. How is this done as i would love to be able to do this. Thanks ...more >>

Newbie question -- passing strings to properties?
Posted by Richard Brown at 9/8/2003 6:37:02 PM
I have the following two classes... public class classA { private string text; public string Text { get { return text; } set { MessageBox.Show(Text); text = Text; MessageBox.Show(Text); } } } public class classB {...more >>

C++ classes
Posted by james guittard at 9/8/2003 6:26:08 PM
I need to write some generic C++ classes that use the standard template library and would like to write a test harness in c# for these classes. What approach should I take?...more >>

Q: DataGrid and DataTimePicker
Posted by Soul at 9/8/2003 6:25:51 PM
*** I am not sure this question belong to *.languages.csharp or *.framework.windowsdorms.databinding, so I post to both *** Hi, Currently I have a DataGrid which bind to a DataSet. One of the column in the DataSet table consist of DateTime value. I also have two DateTimePicker (startDate ...more >>

Threads, textboxes and scrolling
Posted by wesmanjunk NO[at]SPAM hotmail.com at 9/8/2003 6:05:23 PM
Threads, textboxes and scrolling Thanks in advance for any information on this matter. I have run into a small richtextbox, scrolling and tread issue. Which has me totally confused. Instead of trying to explain it I wrote some small C# code to demonstrate the fact that in the threaded version...more >>

Word Headers/Footers in C#
Posted by Cemil Örüm at 9/8/2003 5:54:44 PM
Hello, can anybody tell me, how I can change the header and the footer of a word-document with c# ? I already know, how to open word and how to create a document and paste text into it, but I cannot access the header/footer. Thanks for your help, Cemil ...more >>

Source Safe for Class Library? Need help.
Posted by Brett P at 9/8/2003 5:53:29 PM
Hello, I am a C# developer working for a state agency. We are currently trying to come up with a standard approach for using Visual Source Safe (VSS). I have read the team development articles on MSDN for Microsoft's recommendation, which I agree with. But, there is some resistance...more >>

Writing in .config XML application configuration file.
Posted by msnews.microsoft.com at 9/8/2003 5:33:02 PM
Hi all, I was trying to find an easy way to write in the standard configuration (like app.config) xml-based files. I found classes that can be used to read this information (in System.Configuration) like the ConfigurationSettings.AppSettings property, but I was not able to find anything to wr...more >>

Access Database - will not update/insert/delete on server
Posted by peashoe NO[at]SPAM yahoo.com at 9/8/2003 5:21:24 PM
I have an asp.net website with an Access Database that works great on my local server, but when I migrated to our production server, none of my sql processes works (i.e update, insert, delete) Does anyone have any ideas as to why this may be happening? Thanks in advance ~Lisa~...more >>

The scroll bar is not appearing in the panel control - Please help me !
Posted by Anand Ganesh at 9/8/2003 5:14:11 PM
Hi All, I am trying to draw a picture in a panel control. It is drawing up correctly. When the picture size is greater than the panel control, I am expecting horizontal and vertical scroll bars to draw up but for some reason it is not appearing. I have set Autoscroll = true and even the ...more >>

Send click event to DataGrid
Posted by WillCat at 9/8/2003 4:13:21 PM
Is there a way I can send a click event to a datagrid. I want to simulate a user clicking on a heading to sort the display. ...more >>

DataView / DataRow
Posted by Hein Albrecht at 9/8/2003 3:29:11 PM
'ello How can I get the DataRow of the DataGrid's SelectedItem for the bound DataView's DataTable? Thanx Hein ...more >>

vs.net 2003 missing Form.Name property
Posted by Kun at 9/8/2003 3:28:47 PM
Hi there, I think vs.net missing default name for new form. Scenario: 1. I create new Window Application by default it give me Form1 2. I add Form2 3. In Form1_Load event I try to get form2 name what I get is empty string not Form2 ---- solution: I went into Form2 private void Ini...more >>

Handling null DateTime objects?
Posted by Manish Jain at 9/8/2003 3:09:38 PM
Platform : ASP.Net/C# void SomeFunction(DateTime date) { string text = date.ToString(); //This crashes if date is null } I am using a construct similar to above. I want to check if the date is null or nor before processing it, but I am not able to figure out the syntax. Please s...more >>

RegisterClientScriptBlock - does not work
Posted by Reena at 9/8/2003 2:50:29 PM
Hi, private void Page_Load(object sender, System.EventArgs e) { System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); strBuilder.Append ("<script language=JavaScript> "); strBuilder.Append ("<!--"); strBuilder.Append ("var intWidth = window.screen.availWidth - 40;...more >>

How to autofill a web login page and autosubmit?
Posted by Morten Wennevik at 9/8/2003 1:35:26 PM
I have a login.aspx page consisting of a username label and textbox, password label and textbox and a submit button. I want to programmatically autofill this and post it back. I am using the ActiveX IE/Browser object to navigate to the windows page However, I'm unsure of how to post the inf...more >>

GetCurrentDirectory?
Posted by Dan at 9/8/2003 1:17:40 PM
I have built a C# Windows application using a C# library hosted in a DLL. Both the library and the application need to access some files which at program installation are placed in the EXE's path; thus, I use Directory.GetCurrentDirectory() to initialize the default filenames so that they point ...more >>

Single Instance
Posted by Shawn at 9/8/2003 1:03:28 PM
How to prevent my app from being instanced more than once ...more >>

Tumnails in .NET
Posted by Marcelo López at 9/8/2003 11:47:15 AM
Hello, i have to improve a like "win Explorer " application and i need the Tumbnails view. I am using a listview, wich has the list, details views, but it's hasn`t the tumbnails one. If someone had to deal with this problem, please give me some idea. Regards Marcelo ...more >>

Dealing with Null Values
Posted by Max Sandman at 9/8/2003 11:13:51 AM
I'm getting increasingly frustrated with C# and its exceptions on null values. Rather than try to deal with it on a hit-or-miss basis as exceptions pop up, I thought I should try to learn exactly how C# deals with null. Of course, there's nothing obvious in the docs like "Dealing with Null Va...more >>

Dataset
Posted by Fredje at 9/8/2003 11:13:40 AM
Hello, In my application I'm using a typed dataset. Now I want to display 3 row from that dataset as one listItem in a listbox. There are 2 rows form the same table and one linked by a id form the parent table. I also want to be able to sort on one of the 3 rows at runtime. How can I do ...more >>

CD Burner
Posted by Ryan Moore at 9/8/2003 10:58:26 AM
Are there any free CD-burning classes available for C#? If not, what are the best commercial options? Thanx ...more >>

Folder Security
Posted by Dishan at 9/8/2003 10:34:41 AM
Hi all how do I set folder security permission to full access.( for "Everyone" or Specific user ) regards dishan ...more >>

What happens during Array Assignment? Examine MSIL?
Posted by tom at 9/8/2003 10:23:28 AM
Hello I was wondering what happens when one declares 2 arrays: private object [] arr1; private object [] arr2; fills them appropriately and then writes: arr1 = arr2; I was wondering if only a reference was changed or if some copying was occurring. Also, Im using C#.Net V7.1.3088 i...more >>

truncating / resizing stream
Posted by andrewcw at 9/8/2003 10:18:45 AM
Should be simple, I open fileX, then serialize my content back out ( with position set to 0 ). This works well as long as my new output is larger than the old file input. But when my output is smaller, it does not overwrite all the data and so I get the new output plus the overhanging pi...more >>

string.IndexOf - does not work
Posted by Reena at 9/8/2003 10:11:39 AM
Hi, code from .aspx page... using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; private...more >>

Help! Reverse engineering of DotNet is SO EASY ! (Crackers rejoice!)
Posted by Ed Sutton at 9/8/2003 10:07:21 AM
I am about to release an outside beta version of a commercial .NET application. I just ran ILDASM on my executable and I am freaked-out about how easy it is for someone to reverse engineer my source code. Running on a webserver is NOT a solution; this is a WinForms app that talks to a USB devi...more >>

Repost: messages in compact.net
Posted by Adam at 9/8/2003 9:56:03 AM
I've posted about this previously, but failed to receive a satisfactory response, so have included a code sample: I am trying to receive messages from an HTML viewer control in compact.net (c#), but cannot use message window as the control's parent window, as this is invisible and so the ...more >>

Long delay playing sound for Win API
Posted by Dennis C. Drumm at 9/8/2003 9:45:03 AM
Using the Win API to play a sound with the code below in my Windows Form application. I get a huge delay (seems like application is hanging) just prior to the sound being played each time. Is this something to do with unmanaged code? Is there any way to fix the delay and speed the process up? ...more >>

MSHTML...
Posted by Mat at 9/8/2003 9:37:54 AM
Hi all. I need to build a little HTML parser. I made 2 versions, for console e for window. In console mode it seems to work (but not always, sometimes it doesn't parse the HTML file), in window mode (target winexe) I get no result... This is my code: === CODE === using MSHTML; using System...more >>

DataTables with columns traversing rows
Posted by Wayne M Jackson at 9/8/2003 9:36:19 AM
I have a DataTable where the Columns are name: Col1 = FirstName Col2 = LastName Col3 = MiddleInitial What I have noticed, it is easier to use the above in the form or rows, however what I need is for them to be columns eg: Fname LName MI Joe Blow M John Doe N I have ...more >>

ASP.net OLE DB --> MS Access network
Posted by js at 9/8/2003 9:27:40 AM
ERROR: The Microsoft Jet database engine cannot open the file...It is already opened exclusively by another user, or you need permission to view its data. I have <identity impersonate="true" /> setup for network: Client --> IIS Server --> Network Location for Access DB. I know the u...more >>

How do you refresh web forms?
Posted by Jax at 9/8/2003 8:34:54 AM
I'm kind of used to the windows forms make a change then type down the good ol' this.refresh(). But in web forms i dont seem to have that choice no refresh, update or anything that sounds vaguely like it. Surely i dont need a brand new webform to display a slight change in the layout or appearan...more >>

Capital letters in a COMBOBOX. How can i do it ???
Posted by thomaz at 9/8/2003 7:44:11 AM
How I can place in capital letters the text of a COMBOBOX? For TEXTBOX I use: textBox1.CharacterCasing = CharacterCasing.Upper;... How to make the same for a COMBOBOX? There isnt a CharacterCasing metod for a COMBOBOX......more >>

object address
Posted by Weimin Zhang at 9/8/2003 6:32:53 AM
I have a problem to pass an address of a control to a function under C# .net 2003. The control is loaded on a windows form, but the control is an OCX (COM component). The function is in a C++ static dll (like an API function),and the function expects a long (32 bit) variable for an address...more >>

Okay to construct object in static constructor?
Posted by Adam Smith at 9/8/2003 4:33:27 AM
Hello. I'm wondering if it's okay to construct the same object within static constructor: public class Proc { public Dataholder d;//some other class //I've created static ArrayList al; int val; static Proc { al = new ArrayList(); f...more >>

FTP through proxy server
Posted by Sriram at 9/8/2003 3:59:46 AM
Hi, I need very simple FTP feature to only download files. It is important that it should work through a proxy server. I found some FTP code on the web, but didn't find proxy support. Does anyone have some code that can FTP through a proxy server? Thanks in Advance, Sriram. ...more >>

Howto center CaptionText
Posted by rudy meijer at 9/8/2003 3:25:35 AM
How can I display a tableName on the center of a dataGrid1.CaptionText?...more >>

Help with Random Algorithm
Posted by Johnny Snead at 9/8/2003 2:38:38 AM
Hey guys, Need help with this random sort algorithm private void cmdQuestion_Click(object sender, System.EventArgs e) { Random rnd = new Random(); //initialize rnd to new random object System.Random iRnd = new System.Random(); string theNum = iRnd.Next(0,8).ToString(); lb...more >>

Passing Custom Object into Backend Layer
Posted by Octavie van Haaften at 9/8/2003 2:09:32 AM
Hai there, I have a custom object called objSelection of class clsSelection. This class is defined in my FrontEnd C# Windows application and has some properties. I want to pass this object to an Backend object, like this: btnOK_Click(..) { ... BE_Selection myBE = new BE_Select...more >>

Basic Questions
Posted by Ramesh at 9/8/2003 1:39:19 AM
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time process? 2. What information contained in sn key. I gone through that it is having public key....more >>

can someone help me out here w/ MSHTML in c#?
Posted by Hasani at 9/8/2003 1:18:02 AM
When I parse this page, I manually count 27 tables, but MSHTML only reports 9. Here's my code HTMLDocumentClass htmlDoc = new HTMLDocumentClass(); System.Runtime.InteropServices.UCOMIPersistFile tempFile = (System.Runtime.InteropServices.UCOMIPersistFile)htmlDoc; tempFile.Load(@"C:\nestedtable...more >>

Deep XML Serialization revisited
Posted by Jesper Denmark at 9/8/2003 12:04:00 AM
Hi, I've had a lot of trouble finding a good tutorial showing deep serialization in XML in C#. All samples I've found shows merely serialization of a single class. If I want to serialize members of a class like the 'data' member of the Person class when I serialize the person object - whi...more >>


DevelopmentNow Blog