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# > november 2003 > threads for sunday november 2

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

Pointers & arrays in Structures
Posted by vatsa at 11/2/2003 11:42:50 PM
In some C++ code the follwoing two structures are existing typedef struct _STD_DB_TRAILER { WORD wSpare1; DWORD dwSpare1; char sSpare1[60]; } STD_DB_TRAILER; typedef struct _WP_BLOB { unsigned int size; char * data; }WP_BLOB; These are intialized and the data is ser...more >>

How to Redraw(Refresh) a region of desktop?
Posted by kiplring81 NO[at]SPAM hotmail.com at 11/2/2003 11:28:01 PM
I wrote a program which draw a dancer at cornor of desktop. ( I Accessed through hDC) But It has a problem. I remains all trait at the desktop until I invoke any Redraw( Refresh) action - click, or drag. Is there any way invoke Redraw or Refresh a region of desktop? It should refresh all ...more >>

Implementing SDKs.
Posted by Tomo Ferega at 11/2/2003 11:12:20 PM
I am writing a program which opens or closes CD tray. I know I can do that using one of the functions in the Multimedio SDK (forgot the eact name) but I have no idea how to call it from C# code. Also, any info on how to use DirectX would be greatly appreciated. - Huitzilopochtli ...more >>

html editor
Posted by Tam at 11/2/2003 11:08:43 PM
Desgining a control that operates as an HTML editor. Its going well. I have a web browser object loading a page with its navigate complete event being fired correctly and I grab its document into a HTMLDocumentClass and set ..designMode to true. All works well, i can call execCommand and set f...more >>

Console.Read() Problem
Posted by Jerry at 11/2/2003 10:45:04 PM
I am having problem with Console.Read(), the Value I entered is not the value that store in my variable. public class Num { int num; Console.Write("Enter a number: "); num=Console.Read(); Console.WriteLine("{0}",num) } every time i test this code, I enter 1, ...more >>

VSS integration with VS.NET
Posted by news.microsoft.com at 11/2/2003 10:37:05 PM
Hi, I installed the VSNET IDE and then later i installed the VSS 6.0c and while I have it configured correctly the right click context menu on the source explorer does not show source control options, anyideas`? I do not intend to reinstall the IDE as its bloat and takes ages. Is there a...more >>

About sending email
Posted by yuen at 11/2/2003 8:34:19 PM
How can I send e-mail and SMS in Pocket PC by using C#? ...more >>

structs vs classes
Posted by news.microsoft.com at 11/2/2003 7:33:33 PM
Why not just have an attribute that specifies how the type is to be treated instead of a different keyword? ...more >>



install a service
Posted by Dirk Reske at 11/2/2003 5:25:20 PM
Hello, I've written a C# Windows Service. How can I install it? thx ...more >>

Questions about the HttpContext cache object.
Posted by jim NO[at]SPAM biacreations.com at 11/2/2003 4:39:49 PM
Hi, I have a few questions regarding the cache object: Does the cache object exist through postbacks? The cache object only exists for the current request, right? Is there a way to cache objects across multiple requests/sessions? Say, I have two users requesting the same page, can ...more >>

ComboBox.Items.Add() moves cursor
Posted by Saso Zagoranski at 11/2/2003 4:20:53 PM
I posted a similar message before but perhaps I didn't explain enough what the problem is... I add items to the combobox during runtime depending on what the user types... the problem is that everytime the user types something (and I add items to the combobox) the cursor is moved to the left...more >>

USPS Web Service
Posted by Darin at 11/2/2003 4:08:16 PM
I would like to connect to the USPS web service which validates address' and looks up zip codes but the USPS examples are in in Visual Basic 6 while I want to do it in C#. I am reading about web services but am lost. Can someone share some guidance if they have been able to accomplish ...more >>

Regex beginner problem
Posted by ginola NO[at]SPAM fake.email.com at 11/2/2003 3:52:45 PM
Hi, I have a beginner of C# and I need to fix the bug for someone!! I have the codes like this Regex re = new Regex(@"<TR VALIGN=top><TD></TD>.*?</TD></TR>"); MatchCollection theMatches = re.Matches(content); ArrayList list = new ArrayList(); foreach (Match theMatch in theMatches) f...more >>

"Facets" or how to reduce available members...
Posted by radek jedrasiak at 11/2/2003 3:50:53 PM
Hi all, this is about an idea for a language feature. Any feedback welcome. To start with: This is about a language feature, which would allow to filter the set of available members of a type within a defined scope, it is also about defining "views" for types. It's about controlling wha...more >>

Console app?
Posted by Ron Vecchi at 11/2/2003 3:45:01 PM
I need to create a standalone exe that can be called by its path name with a parameter. The app will be called from a Macromedia Flash Executeable. and the parameter will be an xml fragment string. something like C:\myapp.exe myparameter Would this fall under a console app? Any other su...more >>

sbyte, int16, in32 all the same?
Posted by Steve - DND at 11/2/2003 3:37:08 PM
After downloading and using two different memory profiling applications today, it seems that sbyte, int16, and int32 are all stored using 12b of memory. Someone please tell me I'm reading these memory profilers wrong! If I'm really reading it correctly, then what's the point of using anything ot...more >>

Rebuild on Run
Posted by Philip Carnstam at 11/2/2003 3:25:13 PM
Hi, Does anyone know why my projects are not rebuilt when I click Run. The application starts and all that, but my changes are not built. I must choose to build them manually for the changes to be reflected. I am using Visual Studio 2003 Ent. Arch. Thanks, Philip ...more >>

ArrayList and primitive types
Posted by Bear at 11/2/2003 2:16:45 PM
Hello there How come it's possible to add values of the type "int" into an ArrayList when the Add member function only accepts values of type "object"? Is an int just a "typedef" of the Int32 structure and, if so, does the runtime system load a value type onto the stack even though it only nee...more >>

possible to manipulate pure HTML controls from code-behind?
Posted by Jeff at 11/2/2003 1:05:22 PM
Can I manipulate the properties of pure HTML controls (i.e. not server side controls) from my aspx.cs Page_Load event? If so, I don't see the control listed by intellisense. I gave the control a unique ID to boot. Is what I'm trying impossible unless you are using a server side control? Tha...more >>

adding my own header and footer when printing HTML file
Posted by Dragan Kovac at 11/2/2003 12:52:51 PM
Hello everyone, I have a problem. I generated some kind of my own report (by building HTML file) and now I want to print it. Printing itself is not a problem, problem is with adding custom headers and footers on every printed page. How can I do it? Some nice example would be reeeeally great! I...more >>

Web Control Library - Displaying Font Properties in a tree view form.
Posted by Jay Douglas at 11/2/2003 12:38:19 PM
I'm creating a web control library and I would like to have a Font property that expands out the different font elements (i.e. Color, Size, Bold, etc) in the property window. I have no idea on how to do this and I'm having a hard time finding any information on the web.. Any advice / solution ...more >>

SqlDataAdapter Problem
Posted by Steven Blair at 11/2/2003 12:05:40 PM
Hi, Here is a short decsription of my problem. I have written a dll for Database accessing. I have one method which can return a Dataset and another method which takes a Dataset and upates a Database. (Disconnected Datasets). The problem I have is a new SqlAdapter is required before updatin...more >>

Amazing Hole in c# and .NET Compact Framework
Posted by Rob Collins at 11/2/2003 11:00:05 AM
I have been searching for a month now for a method of making multiple sounds at once using c# and the .NET Compact Framework. Apart from spending many hours on the problem myself I have posted questions on many forums (including this one). Given that no answers have come through - and a n...more >>

Application Object Memory Usage
Posted by Steve - DND at 11/2/2003 10:04:19 AM
Are there any applications out there commercial or otherwise which can tell me how much memory each of my objects in my application are using at any given time? I tried googling for an app that does this, but had no luck. Thanks, Steve ...more >>

Multiple Replace in a string
Posted by JS at 11/2/2003 9:44:33 AM
Is it possible to do multiple replaces in a string? Example: I'm trying to replace all of the spaces with "%20" and "#" with "%23", etc. I also need to replace the "?", "!", " ' ", etc. I know I can do this with: thisString.Replace(" ", "%20") thisString.Replace("#", "%23") But, I'm try...more >>

BUG in static constructors?!?!?
Posted by Sunny at 11/2/2003 9:14:26 AM
Hi all, According C# Language Specification : 10.11 Static constructors: The static constructor for a class executes at most once in a given application domain. The execution of a static constructor is triggered by the first of the following events to occur within an application domain...more >>

ASP.net (C#) and IIS
Posted by Maziar Aflatoun at 11/2/2003 8:48:08 AM
Hi, Does anyone know if it's possible to do the following in IIS using ASP.NET. For example to setup aliases user1, user2, and user3 http://www.mydomain.com/user1 http://www.mydomain.com/user2 http://www.mydomain.com/user3 all calling http://www.mydomain.com/default.aspx and extrac...more >>

HTML/XML character encoding getting changed
Posted by Jon Davis at 11/2/2003 7:24:36 AM
I have a software application I've written called PowerBlog (PowerBlog.net) that takes the editing capability of the Internet Explorer WebBrowser control (essentially a DHTMLTextBox), extracts the user-typed HTML, assigns it as an XML node's InnerText property (using C#: System.Xml.XmlDocument o...more >>

weird break point
Posted by novalet NO[at]SPAM yahoo.com.cn at 11/2/2003 6:01:09 AM
Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code as...more >>

Installer & RunInstallerAttribute: Failure to Install Service
Posted by Ryan at 11/2/2003 5:03:03 AM
I have a simple project, most of it generated by Visual Studio. Public Windows Service Installer (Also generated), with : [RunInstallerAttribute(true)] public class ProjectInstaller : System.Configuration.Install.Installer { .... When I run installutil on the executable, it complains ...more >>

Parser Routine in C#
Posted by David at 11/2/2003 2:42:29 AM
I need to write a small routine in C# that will parse/decode/evaluate a complex if statement that will be entered by a user. , ex. "a= 1 and b = 2 and ((c = 3 and d = 4) or (e = 1 and f = 3)) I know that this is compiler 101, but I have not done this is 20 years and need some points on how t...more >>

Attribute scope
Posted by news.microsoft.com at 11/2/2003 1:51:34 AM
Hi, What is the scope rules for attributes? For example if i have the following [Description("Some blah blah bork bork")] [SomeOtherAttribute("Something")] public int Blah; WHat is the scope of this, is it always applying to the item after the attribute and only tha...more >>

User Control - Having the collections show up in property window
Posted by Jay Douglas at 11/2/2003 1:23:02 AM
I need help getting the collections to show up in the property window of a user control. I want to be able to edit the collection items just like any other asp.net control that has collection properties (i.e. The ASP:Table control). This is for a menu system. The collections are working when ...more >>


DevelopmentNow Blog