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 2007 > threads for tuesday february 6

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

PictureBox
Posted by GoGs at 2/6/2007 11:28:20 PM
How this vb6 code convert in c# dotnet2 ----- Image1.Visible =3D False Image1.Picture =3D LoadPicture("c:\image008.jpg") Dim x, y As Single x =3D Image1.Width y =3D Image1.Height Do While x > Picture1.Width Or y > Picture1.Height x =3D x / 1.01 y =3D y / 1.01 Loop Picture1.PaintPicture ...more >>


Definition error
Posted by rcoco at 2/6/2007 11:24:38 PM
Hi, I'm having this error, 'Bsc_Test1.src.controls.cont' does not contain a definition for 'ChartTitle' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'gcolors' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'XAxisTitle' 'Bsc_Test1.src.controls.cont' does no...more >>

adding controls at runtime
Posted by kalaivanan at 2/6/2007 11:13:20 PM
hi, i am trying to add a datagrid control to a web page dynamically. i am able to do it while i used the following code in the page load event of the form in which i am going to add the control. DataGrid dG = new DataGrid(); Control frm = FindControl("frmSnAInformation"); frm.Controls.Add...more >>

Difference between ADO and ADO.Net.
Posted by archana at 2/6/2007 9:23:08 PM
Hi all, can anyone tell me difference between ado and ado.net other than disconnected access? thanks in advance. ...more >>

combobox autocomplete with button click event
Posted by dneupane at 2/6/2007 8:04:56 PM
Hi all How can I get combobox autocomplete working with button click event, my application cannot use keyboard, so I have soft keypad. Any help would be greatly appreciated. Regards Niju ...more >>

Debug .NET Interop-dll From VB6?
Posted by Peter Plumber at 2/6/2007 6:43:10 PM
Hi, I have a VB6 Project referencing a .NET (C#) dll Is it possible to debug the c#-code when coming from the VB6 project. thx Peter...more >>

Enumerate File Handles for a Given Process
Posted by Demetri at 2/6/2007 6:38:00 PM
The short question I have here is how would one enumerate file handles for a given process in C#? I know p/invoke is needed. Sysinternals uses NtQuerySystemInformation and NtQueryObject. However, my knowledge of how to uses these are pretty limited and to save myself some time of ramping up...more >>

how do I start my service on install?
Posted by MrNobody at 2/6/2007 6:26:00 PM
I created a setup program using .NET Studio IDE to install my Service. How do I configure it to start up my Service once it finishes installing?...more >>



Microsoft.JScript
Posted by Giulio Petrucci at 2/6/2007 5:16:52 PM
Hi there, as I need to share a .NET context with a JavaScript context and I can't re-write Rhino in C# ;-) I'trying to understand something about the Microsoft.JScript namespace, but - really - I'm getting in *deep* troubles: the documentation is not-so-well written (missing examples, sni...more >>

2 Crystal Report problem
Posted by Jason Huang at 2/6/2007 4:20:26 PM
Hi, In my C# windows form project,we are using the the Crystal Report boundled with the VS2003. We have encountered 2 problems. 1. I would like to have a report which looks like an Excel spreadsheet, namely even I have only 3 rows of data in the report, that report will still shows up o...more >>

Office 2007 "Feel"
Posted by Curious Joe at 2/6/2007 4:13:18 PM
What is needed to get the Office 2007 feel in my applications? I love the user experience in 2007 and want to implement the same in my applications. Any help is appreciated... ...more >>

Hiding method from everyone but two assemblies.
Posted by Dan Holmes at 2/6/2007 4:11:50 PM
I have assembly a, b and c. Assembly b has a static method in one of its classes that i would like classes in a and c to access but no other assembly. It would be similar to internal but with the ability to specify which classes could access this method. I know this doesn't exist but a ...more >>

need help going from Graphics to Image
Posted by not_a_commie at 2/6/2007 4:06:58 PM
I recognize that the need for this spells a serious flaw in the program design, but I need to copy a portion out of a Graphics object and put that into an Image object. How do I do it generically? I have some existing code that does it using BitBlt from a DLLImport, but I want to take this cross...more >>

String Manipulation - C#
Posted by G at 2/6/2007 3:46:28 PM
Hello, I have a POSTCODE field which allows values for example: SE12 8JA B3 1AB G1 1ET LA1 2AG I would like to in code behind, take the first ONE or TWO alpha non numerical characters, and store them in a second TextField called "Area" in the format of [SE]. So for example: SE12 ...more >>

PROPERTY PROBLEM
Posted by at 2/6/2007 3:42:23 PM
wHen i set CokSatan in my page load event it returns stack overflow.. When i try it step by step it stucks at this.CokSatan = value; line. what is the problem ? class myclass : Controls.RProductList { public string CokSatan { get { return this.CokSatan; ...more >>

Sorted List by value
Posted by Martin Pöpping at 2/6/2007 3:21:50 PM
Hello, I´ve a problem with my Key-Value SortedList. Is there a way to sort a list (or any other data structure) by value? I have a list with 1000 key-value pairs and want to get the pairs with the 20st highest values. Regards, Martin...more >>

Align Anchor Panel BackgroundImage
Posted by ray n at 2/6/2007 3:00:00 PM
I have a need to put an image on the background of a SplitterPanel. However, I need it to appear in the bottom right corner of the panel instead of the standard Centered/Tiled/Stretched found in the BackgroundImageLayout Property. Is there an example of how to do that or could someone offer ...more >>

COM Object Name
Posted by dabramov NO[at]SPAM gmail.com at 2/6/2007 2:46:10 PM
Does anyone how to set the name of the COM object in VS2005 for a C# project that creates a COM object. I can't figure out what windows uses as the name when you bring up the "References" window in Excel, for example. My COM Object's name seems to be the project name. How do I change that? ...more >>

Programmatically detect if UAC turned on?
Posted by RobKinney1 at 2/6/2007 2:44:00 PM
Hello, This could be REAL simple, but I cannot find any info on it anywhere after 2 hours of searching. How can I programmatically determine if the UAC is turned in Vista using C#? I need to detect this because for some reason Office automation (creating a new document) is not creatin...more >>

binding to checkboxlist and checking values on load..
Posted by Milsnips at 2/6/2007 2:23:02 PM
hi there, i can bind the data okay, but i cant figure out how to set the item to be "Checked", based on my table field which returns boolean value (true/false) any help appreciated? thanks, Paul ...more >>

Class passing, to ref or not to ref...
Posted by itarizin NO[at]SPAM gmail.com at 2/6/2007 1:41:57 PM
Today I found as ignorance owe me.. Let me explain what I'm tring to do and fail (fail: in my needs) For example, I've my stupid class: public class Hello { private int x = 0; public Hello() { } public int Ics { get { return this.x; } set { this.x = va...more >>

Q: app.config and Windows Service.
Posted by Martin Arvidsson, Visual Systems AB at 2/6/2007 1:23:19 PM
Hi! I created a .settings file and added some values. All values are user set defined. When i load my windows service i can read from the .config file. But, i can set a value and save to the file. What am i missing? Are there any security issues? I have tried to add assembly to set f...more >>

How do I catch a copy from another network node
Posted by TonyJ at 2/6/2007 12:56:44 PM
Hello! I use System.IO.File.Copy(exeFileServer,exeFileLocal); and this exeFileServer is located on another computer node in the network I want to catch the error by using try...catch if this node is not accessible for some reason. It might be down or something else How is this done? ...more >>

Need help to create a map
Posted by Paul M at 2/6/2007 12:52:21 PM
Hi I need to create a map for a room (chairs, bed, TV, forniture, etc). All object allready exists like png images. I need to create a map for each room, i mean the user need to create. How can I do this? TIA, Paul...more >>

Want to use MessageBox without showing the Form
Posted by TonyJ at 2/6/2007 12:15:31 PM
Hello! I have a small program that just copy a file and make some checks in main then I just want to inform the user about something by using a MessageBox. I tried to use this in the MessageBox that is located in the main function. This cause compile error because you are not allowed to use...more >>

How to Bind ComboBox in Grid to some other table?
Posted by Ahmad Jalil Qarshi at 2/6/2007 11:56:44 AM
Hi, I am developing a Windows Form based application in C# 2005. I have placed a Grid control on the Form and using MS SQL server 2000 at back end. Now the Grid is showing different columns from a table Table1. There is a column in the grid named "Sender Name". A combobox is embeded in t...more >>

How to change font in tooltip
Posted by Tao at 2/6/2007 11:29:17 AM
hi. Group, Does somebody here know how to change font (including font, font size) in tooltip. thanks ...more >>

Overriding methods but force base class's method to be called.
Posted by bryanbabula NO[at]SPAM yahoo.com at 2/6/2007 10:43:08 AM
I have a question about overriding i was wondering if anyone could help me with, or even suggesting a better/different way. I have no idea if this can even be done or not. I was wondering if there was anyway to force a class to call a base class's method that it is overriding? Almost the same wa...more >>

Do parameterized commands work with MySQL ado.net provider?
Posted by Frank Rizzo at 2/6/2007 9:24:28 AM
I posted it on the mySQL forum, but no one seems to be answering questions there. Do parameterized commands work with MySQL ado.net provider or not? I don't see any documentation on this. I've looked at the provider code and don't see any obvious places where parameter replacement takes p...more >>

Verify if a DLL is used in ASP.NET application or Windows application
Posted by Hamed at 2/6/2007 9:20:37 AM
Hello I have a managed class library (written in C#) that is used both in ASP.NET and Windows applications. How can I determine which platform has been called a class method in this library. Thanks in advance. Hamed ...more >>

VB6 migration (C# or VB.NET?)
Posted by Norman Levinson at 2/6/2007 9:05:02 AM
....from a purely technical/benchmarking standpoint looking 10-15 years out. The concern being to best preclude/mitigate the situation currently facing VB6 migration issues right now. Concern is not with training $, existing developer knowledge, etc. If we are given two choices which langu...more >>

Problem with assigning the result of [string].IndexOf into a const int?
Posted by Duncan Smith at 2/6/2007 9:00:32 AM
Having a cpp background I'm curious why I can't do the following: const int openElementPosition = strXmlLine.IndexOf("<RacingNumber"); without getting the following error: Error 1 The expression being assigned to 'closeElementPosition' must be constant If I drop the const then everythin...more >>

resizing , resolutions and positioning!!!
Posted by giddy at 2/6/2007 8:48:01 AM
hi , i have a big app at hand and i worried about resolutions and resizing right from the start , basically i have two problems : i tried *naively* to handle different resolutions by hardcoding different sizes and setting them accordingly in the Form() construct , now i should call it before...more >>

convert string to double and count characters
Posted by Jay at 2/6/2007 8:41:58 AM
I need to convert from a string a double that is followed by a scaling character (k means *1e3, M=*1e6, etc) then apply the scaling character. Example: "-1.345k #comment" I know roughly how to do this in C (using the %n in the sscanf format specifier to find the number of characters conve...more >>

Capture WebPage as any Image format
Posted by Chakravarthy at 2/6/2007 7:55:03 AM
Hi All, We are working in a web application and we wanted to capture the full webpage into an image file. FULL WEBPAGE means, the page which is below the visibility of the screen and you need to scroll down the page. Am trying with GetActiveWindow MFC to gethold of the currnet window, b...more >>

Installer
Posted by plmanikandan NO[at]SPAM gmail.com at 2/6/2007 7:49:54 AM
Hi, I'm using wise installer for my application. My application is developed in C#(.NET2.0),SQL server 2000 Is there any customized, advanced installer available for creating setup file for my application. Kindly suggest me the best, easy , user friendly installer for my application. Than...more >>

Sending a byte over the serial port
Posted by Ringo at 2/6/2007 6:48:28 AM
I'm trying to send numbers over the serial port as bytes, not strings. What I mean is if I want to send a 255, that should be 1 byte, not a 2 followed by a 5 and a 5. I'm trying to convert a borland c++ app. This is what the c++ app does int8B = 255; WriteFile(serialPort,&int8B,1,&bytesWritte...more >>

C# intialization of member variable trouble
Posted by mijalko NO[at]SPAM gmail.com at 2/6/2007 5:48:21 AM
Look at this code: class test { private bool bInitialized = false; private string strTest; public string str2 = ""; private void Init() { if (bInitialized) return; bInitialized = true; strTest = str2; } pub...more >>

How does the VS2005 designer environment work?
Posted by mehdi at 2/6/2007 5:43:32 AM
Hi folks, Consider a custom class that's being derived from the TextBox and has got the following propert: public override string Text { get { return "get"; } set {base.Text = "set";} } This new control, say, myTextBox is placed on a form. In this scenario, the textbox shows ...more >>

Get value of checkbox in a datagrid view
Posted by Chris at 2/6/2007 5:13:00 AM
How do I get the value of a checkbox in a row in a datagrid view please? I have tried many methods and nothing workds. This was so much easier in VB 6.0. THanks for any help you can give me. ...more >>

Get Current row being edited
Posted by Chris at 2/6/2007 5:05:00 AM
The code below returns a string which includes the index=X for th row being edited. Does anyone know a way to just get an int returned of the current row so I do not have to parse this ? rowNumber = scriptDataGridView.CurrentRow.ToString(); //MessageBox.Show(rowNumber); I get somehting l...more >>

Still looking for a good tutorial on CodeDOM
Posted by JT at 2/6/2007 4:21:42 AM
Sorry if my frustration shows through in this. I have seen posts and discussions dating back to 2001 and still haven't seen any "good" example of a tutorial on CodeDOM. I've seen very many that give the same Console.WriteLine("Hello, World."); example. If that's all you want to do, then mayb...more >>

Regular Expression: matching an empty string
Posted by BillAtWork at 2/6/2007 4:00:00 AM
Hi, Thought this would be simple! If I want to validate a field that can contain "z" followed by 3 digits OR it's a completely empty string, how do I do that? The z123 bit is simple, but the empty string is giving me problems! e.g. ^[zZ]\d{3}$| ....doesn't work (I thought the trailing "|"...more >>

Strange!! Unexpected end of file while parsing Name has occurred
Posted by Anup Daware at 2/6/2007 3:40:22 AM
Hi Group, I am facing a strange problem here: I am trying to read xml response from a servlet using XmlTextWriter. I am able to read the read half of the xml and suddenly an exception: =E2=80=9CUnexpected end of file while parsing Name has occurred=E2=80=9D is= being thrown. Following is...more >>

int/Int32/Int64 on 64-bit Processors and 64-bit OS.
Posted by mehdi at 2/6/2007 3:17:02 AM
Hi folks, I would like to know whether the "int" data type (in .NET Framework) is considered as Int32 on 64bit processors too? Any help would be highly appreciated, Cheers, Mehdi ...more >>

Free Pc To Phone Calling
Posted by coolguy17111987 NO[at]SPAM gmail.com at 2/6/2007 2:56:44 AM
Now you can call anywhere in world for free ....hurry up...Its Globe 7.. you are paid to watch free videos(of your choice)... Now its no. 1 VOIP service in the world....Click on the link below...download the software, register for free and start calling.... What are you waiting for now.... Cal...more >>

Unmanaged dll interop problem.
Posted by Don.Leri NO[at]SPAM gmail.com at 2/6/2007 2:47:43 AM
Hi, I have a logger.dll (unmanaged c++ dll compiled in vs2005). I have a C# interop to use that dll in managed code implemented in Interfaces.dll (used by other C# dlls). I also have a number of other C# dlls referencing Interfaces.dll and using logger.dll interop for logging. The prob...more >>


DevelopmentNow Blog