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 2004 > threads for monday september 20

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

Bring Up The WinForm Application
Posted by A.M at 9/20/2004 11:30:17 PM
Hi, How can I bring up a WinForms application window among several other windows? I have tried Show() method, but it doesn't always work. Thanks, Alan ...more >>

¿Bug en el editor del VS NET 2003?
Posted by Zephryn Xirdal at 9/20/2004 10:45:59 PM
Hola. Al editar una línea de propiedades como public int MainFormTop {set {m_mainFormTop=value;} get {return m_mainFormTop;}} todo en una misma línea, el editor, al terminar el paréntesis de cierre del get o del set, se coloca enmedio del nombre, no sigue al final. Supongo que será un...more >>

GetWindowText: does not work!
Posted by Mauro at 9/20/2004 10:42:58 PM
Hi, as subject i've a problem with the API GetWindowText. I declare the function GetWindowText: [DllImport("user32.dll", EntryPoint="GetWindowTextA")] public static extern int GetWindowTextt ( int hwnd, string lpString, int cch ); When i try to call it in this way: Win32...more >>

Cursor.Position
Posted by Lasse at 9/20/2004 10:01:29 PM
Hi, If the user clicks a panel, how do I get det point where it is clicked? Cursor.Position returns the point on the form, but maybe there's another way? Thanks in advance! -- Lasse ...more >>

why doesnt user control support transparent ?
Posted by Tom at 9/20/2004 9:09:54 PM
why doesn't user control support transparent ? even after you programmatically make it transparent the controls that you add on it still doesn't transparency where they normally would in a winform why is that ? Tom ...more >>

newbie question...
Posted by ShipHead at 9/20/2004 8:05:22 PM
#using <mscorlib.dll> What is this actually doing in my code? Is this like including mscorlib.h and linking with mscorlib.lib? ...more >>

Metaclasses?
Posted by Fernando Rodríguez at 9/20/2004 7:53:59 PM
Hi, Does C# have metaclasses, 'a la' Smalltalk or even Python? TIA...more >>

Writing the Xml Declaration Using XmlTextWriter
Posted by Dan at 9/20/2004 7:46:06 PM
I'm trying to write an XmlDocument to disk using an XmlTextWriter. Everything is fine except that I can't get the XML declaration to come out. I'm using the code below. What am I doing wrong? XmlTextWriter writer = new XmlTextWriter(m_FileName, Encoding.Default); writ...more >>



visual studio problem with comment web pages
Posted by Jorel at 9/20/2004 6:53:03 PM
Hi. I am just running through the hello world tutorial and when I attempt to generate the comment web pages (like javadoc) it just creates a page with no content. Um....this is the tutorial and it's really hard to screw this up. But I managed somehow. My source file is exactly as shown in the...more >>

How can I access this Win API code?
Posted by leodippolito NO[at]SPAM terra.com.br at 9/20/2004 6:43:26 PM
Hello all, I need to get the MAC ADDRESS of a NIC without using WMI. Microsoft has this piece of code in their knowledge base: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q118623 How can I access this kind of funtion from a C# program? An example would be great... Thanks f...more >>

why doesn't treeview provide application-defined sort?
Posted by Alan at 9/20/2004 6:39:36 PM
Hi all, Besides the Sorted property, the TreeView control in .Net FCL doesn't provide application-defined sort. But I put several kinds of data into the treeview, and hope to sort them respectively. If setting its Sorted true, all nodes will be sorted. It's not my requirement. Any idea. al...more >>

protected internal interface
Posted by Sgt. Sausage at 9/20/2004 6:33:16 PM
I know it's not possible, but I need a protected internal interface: protected internal interface ISomeInterface{ // yadda yadda yadda } Basically, I need an interface that is completely accessable from within the assembly (internal), but is not valid outside the assembly except fo...more >>

UserControl in Listbox
Posted by Peter Osawa at 9/20/2004 6:27:19 PM
Hi, how can I insert an UserControl as an item in a listbox... I need this because the amount of UCs displayed isn't alwyas the same, and I think that displaying UCs in a listbox is the cleanest way, because the user must be able to reorder the UCs too... TIA...more >>

image on button in windows form from url on the fly
Posted by sunnyz NO[at]SPAM lycos-dot-com.no-spam.invalid at 9/20/2004 6:02:23 PM
hi all plz help me in displaying image on button in windows form from a url or website.I am using C#.The image should not be stored on local computer...the function shud get the image directly from the website and display it on the button ...more >>

Why no array property in C#.
Posted by dingdang NO[at]SPAM ihug.com.au at 9/20/2004 5:58:13 PM
I have been using Delphi for a few years, now using Delphi8 and VC#. I just had a preview on VC# 2.0. I was wondering why there is no array property? While there is in VB.net, Delphi.net and IL. For example, in Delphi, I could have tStringsObject.strings[i]; tStringsObject.values['somet...more >>

Marshaling an array of structure
Posted by Pas de Spam at 9/20/2004 5:36:03 PM
Hi, I have some problem in marshaling array of structure. I have to exchange a structure of data with a C++ program. This structure data contains a field which is an array of a custom type. I can't find the correct sequence to declare the marshal attributes of my structures, I always got ...more >>

problem with security
Posted by gzathegeeniahz at 9/20/2004 5:17:05 PM
It maybe a simple one,but... I made a web aplication in C# with a login page and everything,but I want to make a Sign out section also.Well I am using a Response.Redirect("login.aspx"),but when I get redirected back to the login page,with simple clicking on the browsers back button I am all l...more >>

Using PInvoke to call functions has multiple behaviors
Posted by John Smith at 9/20/2004 4:51:52 PM
I wrote some code in C in a dll which I would like to call from C#. However I'm stuck because of the strongly typed behavior of C# which makes limitations. Here are the prototypes for two functions which I have trouble mapping: int _SetOption(int nOption, void *pSetting); void *_GetDataF...more >>

binding textbox to dataset - newbie question
Posted by mal at 9/20/2004 4:28:01 PM
Hi, I have binded a textbox at runtime to a dataset in the form load using: textBox2.DataBindings.Add("Text",dataSet41,"status.name"); I have a datagrid that is bound to the same dataset and I want the textbox to display the "name" column of whatever row is currently selected on the datagr...more >>

System Service
Posted by Ryan Moore at 9/20/2004 4:20:44 PM
Anyone have a good article on creating a .NET installation package which registers the program as a system service so it automatically launches on system boot? thnx ...more >>

sql server connection pooling
Posted by Green at 9/20/2004 3:25:33 PM
Hi, I has a web application which execute lots of query and store procedure from the sql server 2000. I want to have a central controlled connection pool so as to all the connection will get the connection from this pool and return to this pool. How can i do this. Is there any article recomme...more >>

passing parameter as an interface type
Posted by wiredless at 9/20/2004 3:19:46 PM
What is the advantage of passing an interface type? according to UML (visio) when i reverse engineer existing code to a UML diagram I get the error "UMLE00046: sample[Parameter] : [Parameter - WFR1] - An interface cannot be used as the type of a parameter." for this code: public ...more >>

Receiving mouse events (WM_MOUSEMOVE, etc) outside of form
Posted by jason NO[at]SPAM mailinator.com at 9/20/2004 2:55:50 PM
I'm trying to implement some pretty basic behavior in c#/.net 1.1 Forms but can't seem to find all the requisite pieces. When a user clicks on the background of the form, I want the app to start receiving MouseMove updates -- whether the pointer is over the form or not (this being the crucial pa...more >>

Disable VscrollBar in DataGrid
Posted by Hans [DiaGraphIT] at 9/20/2004 2:35:04 PM
Hi! In a windowsapplication i have a datagrid where I dont want the vertical scrollbar to be visible. I can't find HorizontalScrollBar and VerticalScrollBar properties anywhere. I've tried to create controls for this... without luck. Here is the code I'm using. Please tell me what I'm...more >>

Terminate A Long Running Method
Posted by Dan at 9/20/2004 2:15:02 PM
Good Day, I have a Windows Service that is responsible for processing somes files. One method of the service invokes another method which may take a while to complete its work. Something like this pulbic class A { public void ProcessFile() { B Test = new B(); Test.DoWo...more >>

ADOX
Posted by Randy at 9/20/2004 1:57:10 PM
Hello, I'm not sure if this is the correct place to post this, but I've got a C# app in which I've added a reference to the ADOX (Interop.ADOX) library and I'm using... ADOX.CatalogClass cat = new ADOX.CatalogClass(); cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Sourc...more >>

try/catch on performance gather runs amuck..sometimes
Posted by Greg Merideth at 9/20/2004 1:29:32 PM
I have a custom service running under win2k3 that grabs performance data and stores it into a sql database. I've noticed on occasion when the data gathering stops, using the sysinternals process explorer that the open handles of the process rocket from the usual 120+ to around 3-4,000 and e...more >>

Adding MessageBox to web application
Posted by Don at 9/20/2004 1:00:01 PM
How can I add a Messagebox to my web application? I have a datatable in my web application and I'd like to show a messagebox when the table's empty. Thanks. ...more >>

PDF & C#
Posted by Adam at 9/20/2004 12:57:39 PM
hello all, i am looking for free library that will allow to me to create a pdf files, but my intention is to create pdf that will contains polish national characters... (i don't want to use iText, Reports.NET and sharppdf from source forge does not fullfil my needs (natianal charactersets). ...more >>

Webservice - start, stop and "uptime"
Posted by MA at 9/20/2004 12:50:00 PM
Hi all! I know there is other newsgroups for webservices, but I don´t get any answers on those. I have developed a webservice that writeing and reading files in different folders. Question 1: I need to be able to stop this service by using a web interface (using a stop button). But I c...more >>

ControlCollection in ASPX page
Posted by Lubo¹ ©lapák at 9/20/2004 12:46:43 PM
Hi, I need from ControlCollection on aspx page select all TextBoxes. How can I do it? Thanks ...more >>

CoInitializeSecurity in ASP.NET
Posted by Clas Hortien at 9/20/2004 12:28:23 PM
Hello, i try to get access to a local virtual server object. I have a aspx page with a button and textbox, this is the code: public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.Button btnFillBox; protected System.Web.UI.WebControls.TextBox txtHost; pro...more >>

Design mode frustration -- deleting code
Posted by Eric Hudson at 9/20/2004 11:57:02 AM
A quick rant and a question. Why does the designer in VS2003 delete code about custom components that it can't load? I've had large sections of forms disappear in the blink of an eye just because I've introduced a small error in a widely used custom control that makes it throw an exception...more >>

Problem with submiting the page
Posted by Ashish at 9/20/2004 11:44:56 AM
Hi Guys I m dealing in a situation tht there are two panels in a page. Each of the tow panels have some textboxes and submit button.ie. Each of the text boxes in both panels have RequiredFieldValidators on them.Now the problem is that whn i fill the text boxes of on panel and press the su...more >>

Files
Posted by bernardpace NO[at]SPAM yahoo.com at 9/20/2004 11:22:02 AM
Hi, I need to store string data in a file, basically name and surname. I was going to work by the use of a textfile, where on each line I would have first the name and then the surname seperated by a ;. Can this be done in some other way, to be more efficient, both for reading, writin...more >>

use DataRepeater in CSharp
Posted by muhamad at 9/20/2004 10:48:54 AM
Hi, How can I use the DataRepeater in CSharp , this control exists in VB6 ,i never used it . I want to insert into the DataRepeater TextBoxs that will show all the time data from the database . Does anyone have an example or direction ? ...more >>

newbie ?
Posted by John Smith at 9/20/2004 10:42:16 AM
I want to start learning C Sharp. Do I have to purchase Visual Studio to start learning and practice? Or can I do without? Thanks, JS ...more >>

Is there a way to calculate BIG numbers expressed as strings?
Posted by ssk NO[at]SPAM chol.net at 9/20/2004 10:34:49 AM
Hello! I wonder if there's a good way to make a function that calculates 2 big numbers (whole numbers) expressed as strings and return a result string with the value of a number? For example: string MyAdd(string s1, string s2); s = MyAdd("10", "20"); //=> returns "30" When the number...more >>

label edit on list view
Posted by David at 9/20/2004 10:25:07 AM
hello to all... i've one more question... how to make listview to enter to "label edit" state... -- let say, user of my program click on "rename item" button, and focus sets to list view item, to state of editin its label thnx... David... ...more >>

adding Outlook Attachments generates exception
Posted by Peter Wullems at 9/20/2004 9:08:51 AM
I use C# to parse incoming emails for a predefined type and structure of message content and construct replies automatically, attach a file and place the generated emails in the drafts folder. There I can review and decide which ones to send. The program was working fine the other day and ...more >>

can't delete picture....
Posted by David at 9/20/2004 8:28:47 AM
hello to everybody... in of directories on my pc i have a list of su-directories, and in each directory theres an image "picture.ico"... so then my program is starting to run, i add a new listviewitem to my listview component then each item represents one of this subfolders, i also has ima...more >>

Canonicalisation Question
Posted by Buddy at 9/20/2004 7:53:57 AM
Hello, I want to know if .Net supports the following features that I require. - Canonicalise (c14n) the XML document - generate a 160-bit binary secure hash from the canonicalise XML using the SHA-1 algorithm - encode the binary data using base-64 to produce a 28 character string. Ple...more >>

Questions for expert .Net developers
Posted by Brian at 9/20/2004 7:51:07 AM
Dear my friend, I can use Process.MainWindowTitle in my C# windows application to get all opened IE's title information. But I don't know how to get the url information. I can see all threads information for every IE process by Spy++. What do the "Window"s of each thread mean? Who can give m...more >>

Turning on the NumLock Key
Posted by James Kirkup at 9/20/2004 7:42:55 AM
Hello, Does anyone know in code how to turn the NumLock key on in C#? with regards James *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

PasswordChar doesnt mask passwords
Posted by Joe Spin at 9/20/2004 7:42:50 AM
Hi, I'm using the TextBox.PasswordChar property with a '*' to mask passwords written in the textbox. In some workstations it works fine , but there are some workstations (win2K and XP) that when the user enters the password it is not masked and you can see the actual chars and not the aster...more >>

Repost: CallContext.GetData - cannot be used in the constructor of the Server object (Remoting)
Posted by José Joye at 9/20/2004 7:40:40 AM
I'm playing around with the "CallContext" class to pass around extra information between my client and Server applications (implemented with Remoting). My Server is a SAO-singlecall. If I try to use the CallContext.GetData() method to retrieved information from within a method in the Server p...more >>

storing raw SQL
Posted by Mark at 9/20/2004 7:21:15 AM
Previously, all our applications have used stored procedures against SQL Server for data access. However, we are now hitting an Informix database and need to pass raw SQL queries. Where's the best place to store these sometimes lengthy queries? In a method that returns a single string prefix...more >>

[DataGrid] Formatting values before binding
Posted by Jesper Stocholm at 9/20/2004 7:07:46 AM
I have a WinForm datagrid that receives data from a DataSet. One of the colums is anm INT-column from the database, and I would like to format these INTs before binding them to the control. I format the grid by applying a style to it, and I have seen in the doc that there on the object Data...more >>

A Simple Question2
Posted by Preston at 9/20/2004 6:32:08 AM
int a = 1; how to print out a like 00000001 if a++, print out like 00000002...0000xxxx thank u ...more >>

question about media player programming
Posted by rutledj NO[at]SPAM rjrt.com at 9/20/2004 6:17:13 AM
Is there a way to programmatically display a video and a still graphic in mp? Think a background movie with gentle waves with a "thoughts" text in the foreground. Thanks, Rut...more >>

How to insert a new element in XML file?
Posted by kmriyad NO[at]SPAM vsnl.com at 9/20/2004 5:21:15 AM
Hi all, Let say I have the following XML file: <?xml version="1.0" ?> <Store> <cdCollect> <cd id="1"> <title>Latest Hits</title> <price>17.3</price> </cd> </cdCollect> <Books> <book id = "1"> <title>ASP.NET</title> <isbn>121212</isbn> <price>32.65</price> </boo...more >>

C# Equivalent for ObjectOutputStream.reset in Java
Posted by Kannan T via .NET 247 at 9/20/2004 5:05:56 AM
Hi All, Is there any equivalent C# method for reset method of ObjectOutputStream in Java If so do let me know. Advance Thanks ! ! ! -------------------------------- From: Kannan T ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>wrktbKWhl0KCGfaSOi...more >>

How to stop windows service from within
Posted by Vlad at 9/20/2004 3:50:04 AM
I have a windows service that spawns several threads. One of those threads may catch an exception that will require the whole service to shutdown. What is the proper way to do it? I did some search on this subject, and the only thing that I found is to create an instance of ServiceController and ...more >>

Stream writer in c#
Posted by kiran_rallabandi NO[at]SPAM yahoo.com at 9/20/2004 3:24:11 AM
Hi, Can we use network path for reading the file using streamwrite function? The below code is working fine. string strContentsTemp, tmp; StreamWriter objWriter; strContentsTemp = this.TextBoxHttpFetch.Text; tmp = "C:\\temp:\\xyz.cfg" objWriter = new StreamWriter(SGMSDashBoardConstant...more >>

print exe
Posted by Frank at 9/20/2004 3:17:58 AM
Guys I have got an exe which takes a printername and file(s) as arguments for printing. This is running fine on the local machine (printing to a network printer from the local machine) Can I put this exe on a server and allow users to print on their networked printers. Should I be...more >>

creating enterprise templates
Posted by Ramachandran at 9/20/2004 3:17:08 AM
have anybody used the msdn detailed way of creating enterprise templates. i tried the same and everything went perfect except the template did not come up in my ide? i followed step my step of this documentation that microsoft provided but i was not successful. Anything additional needs to don...more >>

multi-line button
Posted by vs2003user NO[at]SPAM hotmail.com at 9/20/2004 3:04:18 AM
I am programming onto a pocket pc with vs2003.net sp2 c#. I am having problems trying to achieve a multi-line button. I tried adding \n directly into the code itself... On my pocket pc i ended up having squares where the jump line was supposed to be as a result of adding the jump line directly t...more >>

method returning dataset question
Posted by Mike P at 9/20/2004 3:02:54 AM
I have written a method that is meant to return a dataset from a SQL Server table (or not if there is nothing there to return). My app regularly times out and crashes at this point and I don't know why. Here is my method : public DBResult Get_Prepay_Dataset(out DataSet dsPrepay, string strCUG...more >>

Remove all comments.
Posted by William Stacey [MVP] at 9/20/2004 1:37:46 AM
For a given *.cs, is there a quick way to remove all "///" and "//" comment lines? TIA. -- William Stacey, MVP ...more >>

exit asp-application
Posted by jac at 9/20/2004 12:21:03 AM
Hey All, In the Asp-application we have an exit-button (not the X of IE). How can you exit an asp-app? Is it possible to do the same as X on IE, but in that case I can ask some questions to the user, with X on IE there is nothing I can do. tkx jac...more >>


DevelopmentNow Blog