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# > december 2003 > threads for friday december 12

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 31

IE Icons
Posted by Ayende Rahien at 12/12/2003 11:13:38 PM
I'm embedding IE in my app, and I want to display a toolbar with the back, forward, stop, home, etc icons of IE. Is it possible? Or is there some (C) problem? If possible, where do I get them? ...more >>


disable selecteditemchanged event
Posted by Ziver MALHASOGLU at 12/12/2003 7:56:45 PM
Hello, i want to temporary disable the listBox object's selectedItemChanged event. how can i achieve this? Regards, Ziver ...more >>

SMTPMail
Posted by bonbon at 12/12/2003 7:36:05 PM
I used SmtpMail class sent email in asp.net before, no problem. Now I moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send out any email. The following exception is thrown: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid. I don...more >>

a question about objects
Posted by gael at 12/12/2003 7:32:38 PM
I have a windows form MyForm and a picturebox PicBox on it. I need a funtion that return MyForm as object.(the parameter is PicBox. Is it possible to do that? (To get the name of a parent class from a child class such as PictureBox)?...more >>

Treeview Custom Paint
Posted by JJBean at 12/12/2003 6:43:41 PM
Hi All, How do I create a custom paint treeview control or an owner drawn treeview control ? Any tutorials on this anywhere? Thanks, JJBean...more >>

GetType() of base class
Posted by Zeng at 12/12/2003 6:04:19 PM
I'm just wondering if there is way to detect if an object (Object type) points to an instance of a a derived class of a given base class. For example, class Base{...} class DerivedA : Base{...} class DerivedB : Base(...} class DerivedAA : DerivedA{...} class X{} bool IsTypeBase( Object...more >>

Calling Convention question
Posted by Ross Cooper at 12/12/2003 5:01:13 PM
Hi all, you know how with DllImportAttribute you can specify a calling convention, can you specify one for a COM interface as well? Im trying to talk to some COM objects and it turns out they were compiled CDECL instead of STDCALL. As theyre all 3rd party I cant recompile them properly. My tem...more >>

With what language was C# created
Posted by Sam Sungshik Kong at 12/12/2003 4:32:51 PM
Hi! This might be a stupid question. With what language was C# compiler created? I guess assembly. Or C? I am just curious. Sam ...more >>



Handling global information
Posted by Marinos Christoforou at 12/12/2003 4:26:52 PM
Hi, I am using C# to develop Windows forms applications. I previously worked with VB 6. My question involves the following scenario. I want to create a splash screen, which on application start-up will be displayed and at the same time load some data from a database, and do some initializa...more >>

.dll help strings
Posted by Lou at 12/12/2003 4:17:28 PM
How do I add help strings to my .dll functions in C# -Lou ...more >>

Events
Posted by Lou at 12/12/2003 4:04:19 PM
Why do my Events defined in an Interface show up as procedures I have this so I can use it as a COM object in VB6. The object browser in VB^ does not show it as an event (with the lightning symbol) but as a procedure???? All the other definitions show and work correctly. public interface IMyI...more >>

User/System environment variables
Posted by Johnny at 12/12/2003 3:30:00 PM
How to set an user environment variable from C#? -- Johnny ...more >>

C# Hotkeys
Posted by Jason Duncan at 12/12/2003 3:09:01 PM
I have a C# WinForm application (.net 1.0). On my Menu and Buttons I use the '&' (in the .Text properties) for Hotkey access. No biggie. The strange behavior is that the '&' is converted to the appropriate underscore while in design mode BUT DOES NOT appear at Runtime. At runtime the H...more >>

Sorting objects in ArrayList
Posted by ryba at 12/12/2003 2:48:10 PM
Hello I'm sorry for mistakes - my English isn't very well. I've got the problem with sorting objects in ArrayList. If I put there only strings, Sort method works great, but it doesnt work when I put there objects (even if ToString method is override in object class). I think that i have to ov...more >>

How do I determine if LAN connection exists?
Posted by Chuck at 12/12/2003 2:30:21 PM
I am developing an application for use on laptop computers. I need to be able to programmatically determine if the laptop is connected to the network. If the connection exists I want to use the database on the server, otherwise I want to use a cache on the laptop. I do know the address of a...more >>

.NET remoting in more details
Posted by Paul Fi at 12/12/2003 2:21:03 PM
yes i want to get beyond the basics of .NET remoting at least the one thing that im quite interested in is what goes on at runtime, for example when a client invokes a remote method how is the channel formatter sink at client side going to start doing its job (how does it get called )? and the ...more >>

Enumerate all Types
Posted by Cliff Harris at 12/12/2003 2:00:53 PM
I have an odd question that I'm hoping someone can help with. I simply (or not simply?) need to enumerate through all of the data types in the .Net framework. I do understand that if this is possible, it will take a long time, and I really don't care :) I need to go through all of the types, lo...more >>

Quest: Inserting records into a table with Pri Key set from ASP.NET app...
Posted by lewi at 12/12/2003 1:48:05 PM
I have a ASP.NET app that I want to add user login data and use a Primary Key for an UserID number now I tried INSERT INTO SQL statement(I didn't include the Primay Key column in both (...) for the stamement) but the ASP.NET app debugger show that the statement is trying to set the Primay Key co...more >>

Timer Events
Posted by Richard at 12/12/2003 1:40:58 PM
I'm new to this type of programming, so please bear with me. I just came over from Top Down style Pascal. (Yes lots of books, evidently the wrong books). My program will read data from an ADC card, and then grabs some readings from the serial port (PLC) each time the timer fires its event set...more >>

Two threads within one application
Posted by PromisedOyster NO[at]SPAM hotmail.com at 12/12/2003 1:27:33 PM
We have developed a large C#, MDI application. One of the components of the application is a document assembly/script execution engine (ie a small language that we have developed). This brings up a series of modal dialogs when running scripts. What we want, is to run this execution engine on a...more >>

Exit Sub
Posted by Jim Heavey at 12/12/2003 1:25:57 PM
Is there some equivalent to Exit Sub in C#?...more >>

DataGridColumnStyle paint override fails on last cell in row
Posted by Mark.Larsen NO[at]SPAM hill.af.mil at 12/12/2003 12:44:32 PM
I made a class that extends DataGridColumnStyle. In the Paint override I draw a border around each cell in the column. All cells look fine except for the last one (final row). The lines I draw in the far right and bottom of the cell don't show. I can draw 1 pixel up from the bottom and ...more >>

Printing rendered HTML in .net
Posted by Hasani at 12/12/2003 12:41:18 PM
right now, for printing HTML in .net I use a AxBrowser and I do ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER) I then call Application.DoEvents() in a loop for 1 min and hope all of it was spooled. Unfortunately, I'd say for every 600 times I use t...more >>

register a file extension with File Explorer
Posted by Ven at 12/12/2003 12:27:20 PM
does anyone know where the docs are (or sample code) to register an extension so that FileExplorer launches your application when the user double clicks your file? i havent seen this in the dotnetframework itself.. thanks in advance! ...more >>

Time outs
Posted by Lou at 12/12/2003 12:21:13 PM
How can i do a time out based on seconds or milliseconds. I need to exit loops based on a time value. The VB6 equiv is: Dim markTime As Date marktime=Now If DateDiff("s",markTime,Now).2 then exit do Thanks -Lou ...more >>

File.Delete does it block?
Posted by Sea Sharper at 12/12/2003 12:11:43 PM
I am inside a timer thread and have found that File.Delete is not blocking. File.Delete(x) Checkitexists(x) = true Checkitexists(x) = true Checkitexists(x) = false Not a problem but it would be nice to be warned in the documentation. ...more >>

DataTable/DataSet
Posted by Jim Heavey at 12/12/2003 12:04:05 PM
Hello, I have done a little VB Programming and now I am giving C# a try. Right now I am working with Dataset and DataTables and there are a couple of compile errors that I would work in VB, but are apparently different in C#. If I want a table from a DataSet, in VB.Net I would enter the co...more >>

Appication Design Idea
Posted by DotNet at 12/12/2003 11:50:46 AM
hi I am currently developing an Access DB driven windows application in c#. I need some help on design ideas. There are two ideas I am considering. 1. Use dataset. 2. Have a middle layer. Map each table in database as object(for example, Table customers would be mapped to Customer object). Use...more >>

Receive and return bare XML in C#/ASP.NET Web Service
Posted by raw NO[at]SPAM raw.com at 12/12/2003 11:46:27 AM
All I wanted to do was implement a web service where I'd receive an XML document and return one in response. I'd already figured out how to use XmlReader and XmlWriter classes to do the XML work I need to do. And all that fancy ASP.NET serialization really got in my way. Reading articles by ...more >>

I need gacutil
Posted by Abubakar at 12/12/2003 11:44:14 AM
Hi, When only the "runtime" (dotnetfx.exe, 20mb thing) is installed, I dont see the gacutil any where which is installed with the framework sdk or vs.net. I need it to register some of my comps to the gac. How do I do it ? I dont wanna use installer for registering my components. Regards n th...more >>

Missing Codedom Expressions?
Posted by Raphael Iloh at 12/12/2003 11:33:18 AM
Hi all, I was wondering if anyone has found a way to represent the following expressions 'AS IS' using the CodeDom: 1. if(!collection.Contains(value)) - negate an expression 2. i++ or i-- - increment or decrement operator expression I can re...more >>

BooleanSwitch question
Posted by john at 12/12/2003 11:20:39 AM
The MSDN documentation says that if you dont compile with DEBUG or TRACE flags then you cant use the BooleanSwitch object. is this true? If i have a BooleanSwitch wrapping a conditional statement and build for RELEASE, and then turn my BooleanSwitch on to true, will the condition exec...more >>

< Split File from File+Path >
Posted by Carsten Kraft at 12/12/2003 11:17:50 AM
Hello Newsgroup, I am searching for function which returns me filename from a string that has the file + filepath. ( string sFile = "C:\DIR\SUBDIR\TEST.XML" => TEST.XML) Is there a functional class for this or what have I to do? Thanks alot ... ...more >>

Change application entry point
Posted by LunchBox at 12/12/2003 10:42:15 AM
I'm trying to change the file where the application starts. I moved the main method to the code that I want to start the app and I removed the main method where it use to be. But now I get an error saying the previous file does not have a a 'suitable main method'. How do I get VS.Net to recogn...more >>

JJBean
Posted by Treeview at 12/12/2003 10:13:33 AM
Hi All, Can I set individual nodes to certain fonts/colors if I like? and how do u do this? Thanks, JJBean...more >>

what cause Ms Word Automation to crash?
Posted by kids at 12/12/2003 10:10:12 AM
Does anybody know any reason which could cause Ms. word automation to crash? I try to call word automation to open a document and use find and replace function. For some reason it works but I don't know why it crash some time. ...more >>

Validate and keep form open
Posted by Ron Rohrssen at 12/12/2003 10:08:49 AM
I'm trying to use the ErrorProvider in order to validate my form. This is working well except that in the event of a failure on my modal dialog, I'd like to keep the dialog open. I open the dialog like this: if (formOptions.ShowDialog(this) == DialogResult.OK) When the user clicks on "S...more >>

Compile Error: The type or namespace name 'SQLDataSetCommand' could not be found
Posted by Matthew Louden at 12/12/2003 10:07:37 AM
using System.Data; using System.Data.SqlClient; //etc... SqlConnection conn = new SqlConnection(connString); SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;", conn); DataSet ds = new DataSet(); myCmd.FillDataSet(ds, "test"); Compile Error: The type or namespace name...more >>

COM object created with c# not registering
Posted by Daniel Bass at 12/12/2003 9:40:25 AM
The scenario: ------------- I've created a simple COM object according to a tutorial I found: http://www.csharphelp.com/archives/archive281.html It automatically creates a Type Library (TLB) so that I can hook into the object using the virtual table provided in the tlb file. On t...more >>

Connection String
Posted by Jim Heavey at 12/12/2003 9:19:37 AM
In web applications (VB), you can store your connection string in the web.config file and then you can use the ConfigurationSettings.AppSettings ("EntryName") to retrieve the information. Is there an equivalent for windows based applications (C#)?...more >>

Main form instance name
Posted by Bill D at 12/12/2003 9:04:04 AM
In a simple Windows forms application, the main form is called Form1. Within this form's class, I refer to the the running instance of this main class as "this" as in this.Text = "NEW TEXT" I want to do something like change this Text on the Form1 window from within another class. Tryin...more >>

Stupid question
Posted by Ayende Rahien at 12/12/2003 8:59:31 AM
I've an XML document that has HTML data inside one of the tags (with < & > encoding as &lt; etc) I'm Transform()ing the document using output method="html", but I get the &lt; encoding instead of < > and friends. How do I make this work? If I just throw the HTML data (it's well formed) to the d...more >>

prompt for domain login
Posted by Mark at 12/12/2003 8:36:54 AM
When our staff are logged into a computer on our domain, they're still prompted for their domain login and password to get into our ASP.NET application in Internet Explorer when using Windows Authentication. Is it possible to avoid having the user to login again?? Thanks in advance. Mark ...more >>

Assembly mshtml not found
Posted by Sven Gnagi at 12/12/2003 8:25:40 AM
Hi, I referenced Microsoft.mshtml in one of my projects. (Visual studio .NET 2003) The application is running fine on the developing machine, but when I distribute it to other machines with framework 1.1 installed, I always get the error message "File or assembly name Microsoft.mshtml, o...more >>

Regex help on a nested table.
Posted by gofishtn NO[at]SPAM hotmail.com at 12/12/2003 8:22:39 AM
I am trying to replace the nested table tag in the follow string[1] using a regular expression, but I am not having any success. I am new at using regular expressions, so I am sure I am just overlooking something simple. I thought <table.*>.*<table.*>.*</table> or some variation of that woul...more >>

Authorize HTTPHeader
Posted by Bill Belliveau at 12/12/2003 8:21:10 AM
Hi all, I’m trying to read a values out of the ‘authorization’ host header. I can get the values easily enough, but the ‘authorization’ header is somewhat allusive. For connections requiring authorization the process appears to flow: Client -> Server [request] Client <- Server [401...more >>

Encrypted Connection String
Posted by Dave Bailey at 12/12/2003 7:48:48 AM
I need to store an encrypted connection string in the web.config file. I have found several examples on the Net but nothing specific as to how to accomplish task. Thanks in advance, Dave...more >>

Are there ftell() and fseek() equivalents in C#
Posted by Trellow422 at 12/12/2003 6:26:41 AM
How can I determine the physical location of the stream reader pointer within a file? I need it to start reading data from that position when the file is read at a later time. I don't want to have to go back through the data that was already read. Any help would be appreciated. Thank...more >>

Microsoft Application Blocks for .NET - Data Access
Posted by danielcroth NO[at]SPAM hotmail.com at 12/12/2003 6:07:23 AM
Hi Is Microsoft's Sqlhelper.cs (Microsoft Application Blocks for .NET - Data Access) Thread safe? The documentation has no references to threads. Thanks Dan...more >>

Passing Form as parameter to non-form class
Posted by Ron Rohrssen at 12/12/2003 5:50:42 AM
I want to show a dialog and when the form (dialog) is closed, return to the calling form. The calling form should then be able to pass the child form to another object with the form as a parameter. For example, FormOptions formOptions = new FormOptions(); if (formOptions.ShowDialog(t...more >>

Thumbnail Viewer
Posted by o.lechat NO[at]SPAM meta-concept.com at 12/12/2003 5:19:45 AM
Hi all, I'm trying to design a control which would display the thumbnail of a specific file (FileName property), just like the windows explorer does, i.e if no thumbnail is available it does show the large file icon. I suppose I can use a Windows API to do this, but I just can't find which o...more >>

OpenFileDialog short question
Posted by Josema at 12/12/2003 4:44:48 AM
Hi to all... When i open a file dialog and the user has selected a file, the open file dialog remains like thinking a lot cause a file is too large... How can i force to close the file dialog? Thanks Josema. ...more >>

Need any database to practice C#
Posted by kerenshor NO[at]SPAM yahoo.com at 12/12/2003 4:12:21 AM
Hello, I have the Visual Studio .NET installed under Windows XP Pro, in my laptop. Right now I learn C#, and I need an access to any available database, just for practice. It seems that I can use the Server Explorer (built-in in the Visual Studio .NET), but the problem is that the Server E...more >>

how can I add fonts to combobox
Posted by ozcankanbur NO[at]SPAM yahoo.com at 12/12/2003 3:27:03 AM
how can I add screen font names to ComboBox?...more >>

How can I keep a directory or a starting file
Posted by Iris at 12/12/2003 3:10:41 AM
I have a directory which I want to be watched by the file- watcher. Now I have a question. I want this directory to be selected once and then be safed so that everytime I start the program I dont have to load it again. So that it is printed into the textbox and only changed if necessary. C...more >>

Localization per Dialog
Posted by karl.larsson NO[at]SPAM tecan.com at 12/12/2003 2:58:32 AM
Hello, I have the following situation when trying to localize my software: I have BIG solution with about 80 projects. In one of the projects I have a number of dialogs (the dialog project :-) ). I have decided that I do not want to use the "form"-mechanism (using the property "localized=tru...more >>

need short replace example
Posted by July Hollow at 12/12/2003 2:13:53 AM
Hi!... If i have an string like this "hello world" (with the quotes) who can i make a replace the quotes by the same in HTML? I try this: word.Replace(""", "&quot;"); but shows me an error... Thanks. July....more >>

Queuer
Posted by KYLEA at 12/12/2003 1:45:34 AM
i am doing some research on .NET technology. Our team is developing a windows application and the server application connects to a web service. However, the web service is not reliable enough so our team leader wants us to create an application that queues transactions from the server appl...more >>

How to compile c# on win 98?
Posted by win98 at 12/12/2003 1:36:54 AM
Can I compile c# on win 98? Thanks...more >>

Doing calculation in a datagrid
Posted by Belee at 12/12/2003 1:23:52 AM
I am doing calculation in a data grid and I get the following error message: "Input format not in correct format". The following is the code in c# private void dgSalesInvoice_CurrentCellChanged(object sender, System.EventArgs e) { decimal result = 0; decimal price = 0; d...more >>

help converting code from C to C#
Posted by Mountain Bikn' Guy at 12/12/2003 1:02:46 AM
This code is used in a simple example calculator. It has a text box that displays the result. It performs addition, subtraction, multiplication, etc. on two operands. For the operands it accepts digits 0..9 and a decimal point. The insert() method isn't very clear to me. Can anyone help me conve...more >>


DevelopmentNow Blog