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# > february 2004 > threads for monday february 16

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

IObjectReference
Posted by Greg Bacchus at 2/16/2004 10:24:19 PM
Hi, I'm using a IObjectReference object to help deserialize a SessionInfo class. But with a catch: What I want to do is have it so that a SessionInfo Id is serialized and in deserialization the ObjectReference uses this Id to select the correct SessionInfo to return. So, each SessionInfo cla...more >>


Selecting a ListView Row Programmatically
Posted by Marc W. at 2/16/2004 8:31:53 PM
Is there any way to do this? It would seem like it would be pretty obvious, but I can't find a method that does this. Thanks, Marc ...more >>

Restricting instance to single instance?
Posted by Tom Kreyche at 2/16/2004 7:54:45 PM
I have an 3rd party app with VBA embedded, and I want to use it simply as a shell to call my C# application. This works fine using VBA's CreateObject("Shell.Application") and ShellExecute. However it opens a new instance of the C# program every time it is called, which is undesirable. VBA is v...more >>

WebApp sessions count
Posted by Dmitri Shvetsov at 2/16/2004 7:33:42 PM
Hi, Did somebody implement the session counter? It's interesting to know any time how many sessions are opened and active. Dmitri ...more >>

StringGrid
Posted by Hector Martinez at 2/16/2004 6:56:05 PM
In C++ Builder and Delphi we can use something know as "StringGrid", I can't find something like this in Visual C#. Can any one help me!!!!!!!!!!!!! Thanx in advantage.......more >>

Control tag as an object
Posted by Michael Clarke at 2/16/2004 5:28:38 PM
Hi everyone I have just started using a common event handler with controls by using the tag property of the control to store the index. Now seeing the tag property is an object is there any more overhead involved if I store my own personal object there? That way if I ever need to evolve t...more >>

Can't catch exception
Posted by Pete Davis at 2/16/2004 5:26:00 PM
I've got the following code: try { reader = new StreamReader(configFile); XmlSerializer serializer = new XmlSerializer(typeof(ServerConfig)); config = (ServerConfig) serializer.Deserialize(reader); } catch(System.InvalidOperationException ioe) { Debug.WriteLine(ioe.ToString()); } fi...more >>

<div> and screen size
Posted by Dmitri Shvetsov at 2/16/2004 5:20:19 PM
Hi, I'm using these strings around DataGrid <div ID="div1" style="LEFT: 4px; OVERFLOW: auto; WIDTH: 100%; POSITION: absolute; TOP: 248px; HEIGHT: 300px"> ....datagrid... </div> It works fine if both the screen sizes are the same, during design and running. How can I modify the ab...more >>



IAdviseSink in C#
Posted by Iliya Tronkov at 2/16/2004 5:06:57 PM
Hi, any idea how to implement IAdviseSink in C# to receive notification? Thanks in advance ...more >>

ASP.Net c# calling c++ unmanaged DLL
Posted by will at 2/16/2004 5:04:25 PM
hi, i'm trying to (1)create a unmanaged c++ DLL ============================================= extern "C" __declspec(dllexport) __cdecl int sum(int a,int b); ----> compiled okay to mysum.dll ============================================= (2)create a namespace/class to DllImport the abov...more >>

ASP.NET problem
Posted by Boniek at 2/16/2004 4:58:38 PM
Hi Still I have problem with my asp.net. Few days ago my asp.net application worked but now my application is crushed. I mean when I go to the page that application I receive message "Server Application Unavailable". I have that problem and I don't know how it resolve. Later I saw that process...more >>

Listview ScrollBar BIGGER -
Posted by Kovan A. at 2/16/2004 4:23:11 PM
since i couldnt find anyway to scroll a listview having disabled the scrollbars, i am left with no choice but to make the current scrollers bigger any leads as to which beast i am up against for making the scrollers just bigger? Kovan, ...more >>

Loading a datagrid/datalist from a Stored procedure that uses cursor
Posted by Merdaad at 2/16/2004 4:11:07 PM
In my datagrid, I call my SP and if I only have a simple select statement, everything comes back fine and all rows get displayed in datagrid using datasource and databind But if I use a cursor inside the SP (to manipulate data), the data that comes out of the SP can not be displayed in the datagri...more >>

automated translation from c to c#
Posted by jezzashea NO[at]SPAM hotmail.com at 2/16/2004 3:48:50 PM
Does anyone know of a tool which can accomplish this? I suppose I could port my C program to managed VC++ then decompile. Anyone know of any other mechanisms?...more >>

HTTP Post question.
Posted by Anthony Boudouvas at 2/16/2004 3:42:09 PM
Hi to all, i try to use Http Post to upload a file at a web server. Web server already has a page that it copies the uploaded file in a specifir directory. The below code returns to me "The file name specified in the upload form does not correspond to a valid file in the system. Can anyone...more >>

Service install
Posted by Ruslan Shlain at 2/16/2004 3:36:46 PM
Hello Everyone. I have small problem.I wrote a win service and i need to insatll in on the separate machine. I installed it just file on the development machine but when it comes to putting it on the server just does not work. I use command prompt in both cases and i use installutil do do everyt...more >>

C# and image capture
Posted by <.> at 2/16/2004 3:24:47 PM
Hi, What is the best way to capture images from a FireWire DCAM camera? Is there any support for the DCAM protocol anywhere for C# on Windows 2000? If I understand it right TWAIN = legacy and not to be used, STI is the old driver model and WIA is the new model but only on XP and later. ...more >>

Registering COM with .NET
Posted by Nadav at 2/16/2004 3:06:52 PM
Hi, I Wonder... How can I manually generate the wrapper DLL generated when importing a .COM Object at a C# project? doing so will enable me to sign the wrapper DLL and to put it in the Gac. Nadav. ...more >>

InteropServices and Dll function entrypoint.
Posted by Thomas Johansen at 2/16/2004 2:26:41 PM
Hi I have an GetObject() function in my "old" unmangaed C++ compiled DLL. I need to call some function in this dll, so I use DllImport in my C# application. This is how I do it: (This code works) [DllImport("ITSIOU.dll", EntryPoint="?GetObjectW@CIODriver@@SAPAV1@XZ", CallingConvention=...more >>

Question about XML documentation
Posted by Gary Morris at 2/16/2004 2:21:28 PM
Hello, all, I looked at the other newsgroups, and this one just seems to be the place to ask. If I'm wrong, let me know. What I'm trying to do is to use XML comments to create a Summary for each method, which I have figured out how to do. What I cannot figure out is how to get them to show up...more >>

Service Recovery Mode
Posted by Tal at 2/16/2004 2:19:42 PM
Hi, I am using ServiceInstaller in order to install a .Net C# service. How can i configure the service recovery mode using the installer code. I saw that ServiceInstaller contain many properties like StartType, but i didn't find any property on recovery issue. ...more >>

When To Instantiate
Posted by John at 2/16/2004 2:14:20 PM
Another Best Performances Practice Question: Here's the scenario, as some of you who viewed and responded to my earlier question already know: I have a public class (csValidation) which contains different validation functions. These functions will be called from within many different forms whe...more >>

stupid american system
Posted by Sput at 2/16/2004 2:13:01 PM
I am thoroughly frustrated with these seemingly unchangable settings in C#. For example, fetching data from database sorted by date returns wrong order (would be correct if I was using american date system). Same goes for sorting datagrid (sorts dates and decimal numbers - ie 31.12.2004 is sorte...more >>

System.Text.RegEx
Posted by Tap at 2/16/2004 1:46:08 PM
I would like to parse the following string with as little code as possible. stringValue = "Email Message ID:TAPASVI to tapsbin@hotmail.com;tapasbin@cs.com;{CC}tapstemp@hotmail.com;{CC}tapstemp007@hotmail.com" 1) Take everything in between "ID:" and the word " to" i.e. stringVal1 = "TAPASV...more >>

mutidemensional array question
Posted by Shawn B. at 2/16/2004 1:16:13 PM
Greets, I am saying int y = 0; byte[,] x; x = new byte[y, 65535]; And this work until x[y, 300] = 0xFF; Then I get an out of bounds. Looking closer, it seems that if the number is too large it won't actually create the array. How do I make this work? Thanks, Shawn ...more >>

how can i read Chinese using C#
Posted by Cheryl at 2/16/2004 12:53:59 PM
Hi! I am implementing a system that can read Chinese characters from a text file and do some string manipulations. Can anyone suggest a method on how I can do file I/O with Chinese? Thanks. ...more >>

UserControl.TextChanged
Posted by Francesco at 2/16/2004 12:53:34 PM
Hi all, I am trying to make a UserControl with a TextBox in it. I have to publish the TextChanged event of the inner TextBox, but I have some trouble. If I declare : public event EventHandler TextChanged; I get a compiler error saying that TextChanged is already declared and I have to use :...more >>

Deploying .Net Application from WinXP to WinNT and/or Win98
Posted by j_wedll NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/16/2004 12:37:48 PM
I am attempting to deploy my .Net Application from my WinXP development machine to production systems based upon WinNT and Win98. I believe that it is mostly working except for code relating to the error coding. I have error coding that warns the user of problems with the information supplied....more >>

Marshal.PtrToStructure problem !!
Posted by sergio.gregori NO[at]SPAM sella-dot-it.no-spam.invalid at 2/16/2004 12:37:48 PM
Hi, I have two C++ structures like these : typedef struct answer_series_item { int32_t contract_size_i; int32_t price_quot_factor_i; char ins_id_s [32]; char isin_code_s [12]; uint8_t suspended_c; char date_last_trading_s [8]; char time_last_trading_s [6]; cha...more >>

Using Datagrid
Posted by Jeremy Ames at 2/16/2004 12:31:22 PM
I am trying to use a datagrid to pull information from a database. I prefer to use latebinding to this. Well, I finally got my information to populate the datagrid, but the information came out in a table format. Is there a way that I can make the datagrid use list box or some other kind of grid?...more >>

Variable Declaration in IF statement
Posted by hdomer NO[at]SPAM cesco.com at 2/16/2004 12:01:35 PM
I would assume that the following would declare the variable someClass and it's scope would be confined to the if statement. if((SomeClass someClass = this.DoesASomeClassExist(identifier))!=null){ someClass.DoSomething(); } Is there a better more compact way to write this that I cannot...more >>

Error trying to execute reflection "invoke" method
Posted by Abel at 2/16/2004 12:01:07 PM
I have this code string theClassName = "Rules.FillListBox.FillListBox" + theType + ", Rules" Type theClass = Type.GetType(theClassName) Object o = Activator.CreateInstance(theClass) object[] parameters = new object[2] parameters [0] = elListBox parameters [1] = (IList)Session["AdminPaginaBase...more >>

Debugging Problem
Posted by Hector Martinez at 2/16/2004 11:51:06 AM
I have a problem with debug, I insert a new BreakPoint and it get an "?" simbol inside. Why does th is happens I need to debug my app... Thank in advantage....more >>

Dispose not getting called
Posted by sjoshi NO[at]SPAM ingr.com at 2/16/2004 11:47:26 AM
Hello All I have an abstract class C1 with this: public abstract class C1 { protected bool m_Dirty; protected override void Dispose(bool disposing) { if(m_Dirty) WriteOuput(); base.Dispose (disposing); } protected void finalize() { Dispose(false); GC.SuppressFinal...more >>

swf movie
Posted by Fabrizio at 2/16/2004 11:46:04 AM
Hi I just would like to insert in my aspx page a swf movie (done with flash 5) Which control i have to add to play the movie on the page thank yo Fabrizio ...more >>

Help !! char[] to structure
Posted by sergio.gregori NO[at]SPAM sella-dot-it.no-spam.invalid at 2/16/2004 11:37:12 AM
Hi, I have a char array. I would like to fill these values into a structure. Anyone can help me ? Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** -------------------...more >>

Order of files
Posted by Jennifer at 2/16/2004 11:31:07 AM
Hi I've just recently bought a USB MP3 player, it doesn't have a display or anything fancy, it just holds the files and plays them The files play in the order they were added, which made me think that I could write a program to change the files Modified date so I could easily change the order of ...more >>

Playing a .WAV file
Posted by Greg Shannan at 2/16/2004 11:13:08 AM
What is the simple way to just play a .wav file in c#? I'm thinking of something like PlaySound(). .... Greg Shanan ...more >>

Accessibility Modifers for classes
Posted by ian_malcom_im NO[at]SPAM yahoo.com at 2/16/2004 10:51:11 AM
Hi all i'm reading up on the internals of the CLR and I noticed that it is possible to make a class have the famandassem accessibility modifier. I've looked at the C# language reference and I don't think that C# can do this. Note that this is not protected internal, which is mapped to famorassem i...more >>

ListView: How can I tell which subitem is clicked?
Posted by Peter Steele at 2/16/2004 10:24:33 AM
I have a form containing a ListView with four columns, creating a multi-cell table. I want to have an event which can determine which cell in the table is under the cursor when a double-click is done. The double-click event of the ListView double-click event handler only passes in the sender obje...more >>

Menu & Context Menu
Posted by VF at 2/16/2004 10:11:11 AM
I am using several menu items from my main menu in my context menu. For some reason, all the menu items that I use in the context menu no longer show up in my main menu! I thought that maybe the context processing was setting the Visible property to false, but I verified that it is still set to tr...more >>

Processor Usage
Posted by Jeff Mitchell at 2/16/2004 10:11:08 AM
I have a logging application that records various performance metrics into a database every 5 minutes, and to this I'd like to add a performace counter that shows the processor usage in a manner akin to what you see in the Performance tab of the Task Manager -- whatever that value is when the timer ...more >>

Best Performance Practice Question
Posted by John at 2/16/2004 10:01:05 AM
I have a question about design, performance, and code reusability. Which one of these would be the best as far as performance/speed Send a textbox to a public class to check it and process/not process the text in it (which would be called from many different forms-would be reusable -or Validate ...more >>

Alignment problem when TextAlign = Middle in labels
Posted by abbomb NO[at]SPAM hotmail.com at 2/16/2004 9:51:09 AM
When labels are vertically stacked on top of one another and have their TextAlign property set to MiddleRight, the text is not properly right-aligned. You can reproduce this problem by creating a blank form with three private members (label1, label2, and label3) and adding the following code ...more >>

throw exception inside an 'application.run()'
Posted by babylon at 2/16/2004 9:45:27 AM
i have sth like try { Application.Run(new myform()); } catch (Exception e) { } however, if I throw exception inside "myform" the exception is not caught...how come?!? thx ...more >>

MDI
Posted by TomislaW at 2/16/2004 9:33:30 AM
How can I enable/disable button on mdi parent form when I click on some control in activ child form? ...more >>

Converting StrongName to String
Posted by dnlwhite NO[at]SPAM dtgnet.com at 2/16/2004 9:32:14 AM
I am reading the Public Key attribute from an assembly which is read into a byte array. I need to get this value into a string but am having no luck. I've tried variations on the Encoding object, etc but to no avail. Is there some way to accomplish this?...more >>

Using unsafe will be faster?
Posted by Abubakar at 2/16/2004 9:09:46 AM
Hi, NOTE: in the following code Rectangle is a struct inside the System.Drawing namespace. I'v a following code: Rectangle GetFillRectangle(ref Rectangle rect) { Rectangle newrect; //calculate fill dimension for the rect passed and return the new one return newrect; } If I w...more >>

Calling a method using a string value?
Posted by jacew at 2/16/2004 8:51:04 AM
Hi Does anyone know if its possible to call a method from it's string reproesentation e.g int CallFN(string FunctionName return ... FunctionName.. So if a method exists called GetAge which returns the number 1 I want to call this by calling CallFn("GetAge") T.I.A...more >>

make flexgrid scrollable
Posted by kids at 2/16/2004 8:26:11 AM
Hi there, I want to inherit flexgrid control so that it can be scroll. Can anyone give me some hints? thanks, kids ...more >>

ForDigit
Posted by Barry at 2/16/2004 8:01:06 AM
Hi I am new to C# and also new to java - though I have a reasonable knowledge of VB.Net anyway my question is this does anybody know the equivalent coded for the java forDigit(int digit,int radix) in c# as the conversion tool does not do this. It wouldn't be so bad if I knew exactly what the java co...more >>

StringReader Go Back to FirstLine?
Posted by Mike at 2/16/2004 7:46:12 AM
Is it true that these objects are forwardonly? If not, can someone show me how to go back to line 1, after I have read the first 100 lines. Thanks Mike...more >>

Drawing on existing image
Posted by Christina Androne at 2/16/2004 6:36:51 AM
Hi I want to allow the user to drow some locators on an image and connect the locators with lines. So I tried to put the following code in the onmousedown enevt of the picture: Graphics LGraphics = Graphics.FromImage(imgMap.Image); LGraphics.DrawString("X", new Font("Arial", 12), ...more >>

Mouse position without events
Posted by systemspecialist at 2/16/2004 6:16:06 AM
Hi, I need to detect mouse position without events. In some places in code I need to get position but mouse didn't do anything(click,move...). Thanks ...more >>

GDI+
Posted by mums_se NO[at]SPAM yahoo.se at 2/16/2004 6:13:18 AM
Hi, I need some help. I am trying to draw cards. I am using DrawRectagle() to draw upp the outlining of the card. Then I fill the card with white color FillRectangle(). Then with DrawString I can write the cards name at the top and bottom of the card. So far everything works great. I can draw u...more >>

create XML file from string containing XML
Posted by Mike P at 2/16/2004 6:11:10 AM
Is it possible to convert a string to XML? I have an XML document coming in to my web page through Request.QueryString"xml" as a string. I need to create a new XML file made up of the XML in this string. Can anybody help me out? Cheers, lfc77 *** Sent via Developersdex http://www.d...more >>

writing XML to screen (like opening XML in IE)
Posted by Mike P at 2/16/2004 6:11:09 AM
I have an XML file, which I want to write the screen (in its standard XML format) in my ASP.NET C# webpage. Can anybody tell me how to do this? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Online C# tests
Posted by ab_davy NO[at]SPAM hotmail.com at 2/16/2004 5:45:44 AM
I wondered if anyone knew of any online C# tests. I am a VB.NET programmer and I have been learning C# and I wanted to see if I was good enough yet to get a job using C#. Thanks, David....more >>

create and write to file
Posted by Mike P at 2/16/2004 4:12:19 AM
I am trying to create a new file and write to it, but I keep getting the error 'cannot access the file because it is being used by another process'. Can anybody help me out? long lngNextNumber = Find_Next_File_Number(); string strNewFile = "C:\\inetpub\\wwwroot\\webapplication90\\xml...more >>

Odd Behaviour??
Posted by John Baro at 2/16/2004 1:29:25 AM
I have an app that spawns a thread to copy some files. The spawned thread then spawns threads to copy individual files and wait for the specific file to finish copying or timeout. The specific file copy procedure raises an event which gets handled in the main form from where the original thread ...more >>

forms design?
Posted by Bonj at 2/16/2004 1:02:44 AM
What's the best way of designing forms for use with C# using only the SDK, not the IDE? I.e. the layout of the controls. You have to manuallly type in the file, or is there a 3rd-party editor? ...more >>

All IP addresses for a hostname
Posted by googlegroups NO[at]SPAM gawab.com at 2/16/2004 12:30:14 AM
I have a host which has two NIC cards; one configured for LAN connections, and another for external connections. Say the ip address are 1) x.x.x.x - for LAN 2) y.y.y.y - for external hostname = 'hichetu' With the following code snippet... public void TestDNS(string hostname) { ...more >>


DevelopmentNow Blog