Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score C# Newbie Question. Making button as a link, open in attached WebB
Chris - 2 Apr 2005 10:29 PM - 3 messages
Hello all. I am making a small silly little basic one page web form while learning C# (Using VS 2005 Express).  I am stuck on how to link a button I have created, to actually send the user to a specified URL when clicked, into the attached ...
Score Defining Static Members in an Interface
Dale - 2 Apr 2005 9:51 PM - 6 messages
Is it possible to declare a method of an interface as static? For instance, can I create an interface that defines a static method and 2 instance methods? ...
Score Overriding Inherited Propeties
Greg - 2 Apr 2005 9:45 PM - 8 messages
I have a base class for a label.  I want to set a property at the base class level, say AutoSize = true.  Then at the form level I want to be able to overide the base class setting so that I can turn it off when needed. ...
Score API documents
VJ - 2 Apr 2005 6:55 PM - 3 messages
I am trying to create API document for some of class library's .. this for our own internal usage.. Any knwon tempalets, that people can suggest it would be great...  We have our API functions comented to a extent with the ...
Score namespace problem
Steven Wolf - 2 Apr 2005 6:17 PM - 6 messages
hi again, i have several namespacing problems in my big project. my current namespaces in my solution are: b2b.Server.Common b2b.Server.Business b2b.Server.Business.Mapping b2b.Server.Business.Entities b2b.Server.Database now i have a testing app and i include all of those namespaces in that ...
Score can you create a function handling dif objs w/o overloading?
Shawn - 2 Apr 2005 6:13 PM - 5 messages
Hi All; i have created a class that handles file input and output. one of the methods loads data from a file then returns a hashtable filled with data class. it takes in the file name and the class of the data stored in the ...
Score Casting derived
Steven Wolf - 2 Apr 2005 5:12 PM - 5 messages
Hi folks, i developing right now a big project for my company and i have follow issue: I have a base class for all my domain objects (abstract DomainObject) and many objects derived from that class, like Facility:DomainObject. I have also a collection class (DomainObjectCollection:CollectionBase) ...
Score Can't suspend a thread
emr - 2 Apr 2005 4:55 PM - 2 messages
Hi there, here is the situation: private void btnStart_Click(object sender, System.EventArgs e) { if(btnStart.Text=="START") { Thread connect=new Thread(new ThreadStart(Connect2Server)); connect.Start(); } if(btnStart.Text=="STOP") { connect.Suspend(); // An unhandled exception of type 'System.NullReferenceException' occurred in .exe Additional information: ...
Score Timing of functions in C#
DrOrbit - 2 Apr 2005 3:47 PM - 4 messages
I am working on a rather large program that hits several methods multiple times.  In looking for ways to speed it up, I have discovered something odd.  The first time I call a method, it's about 30 times ...
Score listening serial port
Mark Albourgh - 2 Apr 2005 2:47 PM - 3 messages
Does anyone know a way of listening to serial port? I know how to read data from it, but only know to check the port for the data constantly which occupies cpu a lot. I need this to receive data from a machine. ...
Score Restricting the 'paintable' areas of a control
Barguast - 2 Apr 2005 1:47 PM - 2 messages
Is there any way to restrict the area in a control that can be painted? For example, if I wanted to enforce a three-pixel wide border around my control, how would I go about it? Thanks ...
Score Setup: How to change the "Welcome to the MyApp Setup Wizard" text?
Joachim - 2 Apr 2005 1:35 PM - 4 messages
In the Install-Start-Welcome dialog - how can I change the text "Welcome to the MyApp Setup Wizard"? For instance, if I would like it to be in another language. ...
Score Getting alert or window maximized when text changed in a web application in C#.net
Yatharth - 2 Apr 2005 1:29 PM - 2 messages
Its a Web application. I am developing an application in which my page is refreshing continuosly.In that there is a textbox which is filled from the database ,and changed when i changed the  value from database.    Now suppose if i minimize my window and work on other browser and ...
Score controls on a form
juli jul - 2 Apr 2005 1:17 PM - 2 messages
Hello, I want to put on the form 2 panels. The first one contains tree view and the secound grid. I put a separator between both of the panels and tried to do dock=fill to both of them.The problem is that one panel is always above the other ...
Score get the actual size of a file
Stephan Steiner - 2 Apr 2005 12:26 PM - 11 messages
Hi Generally, FileInfo fi = new FileInfo(path); long size = fi.Length; gets you the length of a file in bytes. However, when copying files, even while the copy operation is still in progress, the filesize, as indicated in Windows Explorer or derived with the above two lines of code, will be the ...
Score Does anyone help me convert vb.net to c#
Alan Ho - 2 Apr 2005 11:08 AM - 3 messages
Function Helper(ByVal obj As Object) As String         Dim thisDate As Date = CDate(obj)         Return WeekdayName(Weekday(thisDate, vbSunday), False, vbSunday) & "<br>" & _ ...
Score creating a control in C#
Wilfried Mestdagh - 2 Apr 2005 10:55 AM - 3 messages
Hi, I'm using C# express beta 2005. Reading the article at:  [link] it say the following: "Select the Windows Control Library project template from the list of C# ...
Score datatable.select problem
Frank - 2 Apr 2005 7:33 AM - 10 messages
Hi, I use datatable.select to select row in a table in a dataset. I use an ampersand in the selectstring and get an error that it is unsupported. The statement works fine in the query analyzer of enterprise manager. ...
Score "Unable to start debugging on the web server"
Joachim - 2 Apr 2005 6:41 AM - 3 messages
I have copied my ASP.NET solution from one computer with VS.NET to another, but when I try to run my solution I get the following error message: "Microsoft Development Environment" "Error while trying to run project: Unable to start debugging on the web ...
Score (decimal) 1.1 versus 1.1M
Paul Sullivan - 2 Apr 2005 4:42 AM - 12 messages
decimal d; d = 1.1M OR d= (decimal) 1.1 Discussioon That 'M' suffix looks like something ledt over from C. It is not self-evident what it is. I heard one lecturer say it means money. WRONG. d = (decimal) 1.1 is self documenting. ...
Score accessing messages of outlook Express;
Chandresh Pande - 2 Apr 2005 3:09 AM - 1 message
Hi all,         I want to access and copy the messages of outlook express. I have done it for MS OUTLOOK but i  am not able to do it for outlook express. Thanx for the help ...
Score how to get count of items in listbox?
Alpha - 2 Apr 2005 12:47 AM - 10 messages
Hi, How can I set all the items in a listbox to be selected?  I can't find a property or mehtod to do it so I thought I'll try using setselected method but I need to find out how many items are in the listbox.  ...
Score DSOleFile.dll in C#
Jason - 2 Apr 2005 12:26 AM - 1 message
I am porting some legacy services to C# and .NET.  I have run across two issues with using DSOLEFILE in .NET, and was hoping somebody might shed some light... 1.  Access Files Across the Network My application is a service.  I am able to use File.Exists to confirm ...
Score mshtml - GETBLOCKFMTS
Peter Zentner - 2 Apr 2005 12:26 AM - 2 messages
I have a weird problem... A while ago I wrote some code in VB.NET which gets the block formats from mshtml like shown below. I am now converting this into C# and I have the problem that the IOleCommandTarget.Exec function doesn't return the ...
Score transparency in a PictureBox
Douglas Curran - 1 Apr 2005 11:49 PM - 1 message
I have an Icon file that I am loading into a picture box.  I want the surrounding white color to be transparent . How can I do that? ...
Score Sending text to an active window
Bobby Smith - 1 Apr 2005 11:26 PM - 1 message
I wrote an application a little while ago that sent text to the active window by programmatically copying the text to the clipboard and then sending the WM_PASTE message or something along those lines (trying to find that old code now). ...
Score Writing to TextBox from Seperate Clas Redux
JP - 1 Apr 2005 10:08 PM - 5 messages
Okay - I have incorporated some of the advise I got on the first post and have gone ahead and setup a simple test project to demonstrate the trouble I am having.  Any help is GREATLY appreciated: FILE FORM1.CS: ...
Score double trip through an event
eye5600 - 1 Apr 2005 9:37 PM - 3 messages
I have a DateTimePicker. The user should pick the first of the month. If he doesn't, the ValueChanged event pops a messagebox and changes the value to the first. Problem is that changing the Value in the event triggers the event ...
Score 2 threads, 1 GUI, 1 tcp client... 1 bug
yoav - 1 Apr 2005 9:35 PM - 4 messages
Okay: I have a GUI program that initializes a TcpClient and a Form. From withing the form I create a TextBox and init the client. Then I run a System.Threading.Timer with a method that checks if the TcpClient has ...
Score Setting variables to a value in a dataset.
Robert - 1 Apr 2005 9:15 PM - 3 messages
I'm new to C# but learning quickly. What i have is a prog that does a connection to a database and pulls in a (untyped) dataset during runtime. I have some bound data to textboxes etc and those work fine, but when i attempt to set some dataset values to variables, ...
Score need to do a WebRequest and have it appear in an IFRAME ...
TheBurgerMan - 1 Apr 2005 8:02 PM - 3 messages
Hi all.  I need to attach NetworkCredentials to a WebRequest and display the resulting web page in an IFRAME (aspx).  I have validated that I can get the page (using the NetworkCredentials), but how do I pump the data into an ...
Score Best C# Book
Robert S. Ramos - 1 Apr 2005 7:49 PM - 3 messages
I need help in selecting the best C# book for someone going from VB.NET to C#.  I am in the process of looking for a new job and I have found an excellent company, problem is that I have only being using C# for about 6 ...
Score How to organise namespaces
M Shafaat - 1 Apr 2005 7:36 PM - 6 messages
Hi, I want to develop a number of generic components which I intend to use in different applications. Is it a good idea to put all these generic components in one and the same namespace, e.g. named GenApplCtrls, without ...
Score playing mp3 files using C# ?
Bill Woodruff - 1 Apr 2005 7:09 PM - 1 message
From a brief survey and googling it seems like the options are : 1. control Windows Media Player through automation (or call mplay32.dll through the Shell ?) 2. use the Lame open-source code for a playback engine 3. use DirectShow / DirectSound ...
Score Transactions / JBoss -- similar Microsoft tool?
mark - 1 Apr 2005 7:02 PM - 2 messages
In Java, you can use JBoss or similar to host EJB that will manage your transactions for you.  You could, of course, write your own transactions using JDBC. In .NET, we can specify our own transactions using ADO.NET.  Is there a ...
Score sizeof
Roberto Lopes - 1 Apr 2005 6:48 PM - 3 messages
Hi!, I have a class in which I have, lets say 8 int members; I need to know the size of that class ( which is now 8 * 4 bytes ). In C, we used sizeof( myClass ), but I can't find how to do it in C#. ...
Score Hooking into another process?
Seth Gecko - 1 Apr 2005 6:33 PM - 4 messages
Hi I want to make an application (in C#) that can catch text written to a Richedit control in another application. Using Spy++ I can see that the message I want to intercept is called EM_REPLACESEL. I have been googling ...
Score Re: type casting with GetType
Sankar Nemani - 1 Apr 2005 6:11 PM - 1 message
  First of all static methods such as operators (+, -) cannot be used as virtual methods and so it is hard to achieve dynamic binding.   I agree with Michael. You can create a virtual method in the base node class called Evaluate and override it in Num, Matrix etc. And Branch's evaluate simply treats left and right as nodes and calls node.Evaluate which will be bound to Num/Matrix at runtime automatically. ...
Score What makes the icon appear in the toolbox for a new control?
steve bull - 1 Apr 2005 5:42 PM - 2 messages
I created a control and added to my toolbox and it worked fine including the controls icon until I decided to merge the project that contains the control into an existing project. I have included the Toolbox statements in the code, it is an ...
Score information on creating a exe that can be accessed from another ap
Shawn - 1 Apr 2005 5:29 PM - 2 messages
Hi All; i'm trying to create a two piece program. the main app would contain all the gui and the second piece would work as a data server. the data server would be started at the same time the main app would start because it would have to ...
Score Number of copies printed
Robert - 1 Apr 2005 5:21 PM - 1 message
I can access the PrintPreviewDialog to obtain the number of copies requested by the user by: int copies = dialog.Document.PrinterSettings.Copies; This does not tell me if the user actually printed the document.  How can I tell if the user actually clicked on the print button to print the document ...
Score Reflection and Menus
tobiwan_kenobi - 1 Apr 2005 4:45 PM - 1 message
We have an MDI application that looks for forms in which a common interface has been implemented.  We can instantiate the forms and display them as children of the mdi and use the functionality on them. The problem is that the menus don't show up.  They don't even show up on the ...
Score Listview Header Redraw (Bug?)
Gates 72 - 1 Apr 2005 4:04 PM - 1 message
Hello All, I am seeing something annoying with the listview. I have a listview that spans an area greater than the width of my form, and have a scrollbar that moves it left and right.  When I move the listview so the right-most ...
Score Double buffering with panel control
Millennium Falcon - 1 Apr 2005 3:41 PM - 3 messages
Hi! In my application, I have a panel in the middle of the form, which I'll be using as a drawing panel. I would like to update the drawing panel each time when it is required, without updating the form as a whole. The following ...
Score Writing to TextBox from Seperate Class
JP - 1 Apr 2005 3:40 PM - 7 messages
I'm sure this is a simple question and I'm overlooking the obvious.  But, I have two seperate classes (in seperate files) under the same namespace.  I am calling a method in one class that contains public System.Windows.Forms.TextBox textBox1; ...
Score Convert Bitmap object to indexed PNG
Dylan Parry - 1 Apr 2005 3:39 PM - 1 message
Hi, First off, I am both new to C# and to this group, so appologies if this is a stupid question! Secondly, is there an FAQ for this group? Okay, so I have a bitmap object that I have created, and I am adding two ...
Score Find shared printers??
trint - 1 Apr 2005 3:09 PM - 8 messages
How can I add all the network printers to a combobox? Thanks, Trint ...
Score Strange behavior of VS.NET 2003
Leszek Taratuta - 1 Apr 2005 2:46 PM - 3 messages
Hello, I posted this problem a few days ago. I am not sure if I was not enough specific but nobody answered, so I am posting it again: I have the following code snippet that overloads the "-" operator (just copy ...
Score clearing a read-only collection
ChrisB - 1 Apr 2005 2:40 PM - 3 messages
Hello: I have created a collection that inherits from ReadOnlyCollectionBase and was wondering if there is a way to clear the items in the collection from within a method of the collection (of course, this.Clear() is invalid for read-only collections). ...
Score TopMost Form and background application
oran johnson - 1 Apr 2005 2:32 PM - 6 messages
If Form.TopMost = true, will the form appear even if the associated application is not the active or foreground application? Thanks. ...
Score Export from dataset to Excel c# .net
shan_chennai - 1 Apr 2005 2:30 PM - 3 messages
Hi, I export data from a datset to excel by the code shown below. The problem iam getting is that the data with empty strings in datset is shown as 17 white spaces in the exported excel file. ie: '' becomes '              ' ?? ...
Score Datagrid - width of a column
Stephen - 1 Apr 2005 2:25 PM - 1 message
I have a datagrid and i'm trying to fix the width of one of the columns to be exactly 300px. My problem is that one of the records fields(CompanyName) is really long and has no spaces so it streches the whole datagrid accross the ...
Score How do I make a wizard?
Gustaf Liljegren - 1 Apr 2005 2:13 PM - 7 messages
I'd like to make use of the wizard concept in my program. The user shall be guided through a procedure of creating a new file, naming it, filling it with data and so on. I imagine this as a form with back and forward ...
Score WIA in .NET
y2ksmith - 1 Apr 2005 2:11 PM - 1 message
I am trying to use WIA API 1.0 in a C# project, and I do not want to use the scripting model.  Does anyone know what file(s) to reference to get access to these COM objects? Thanks in advance ...
Score Quick Info and Intellisense are not working
Vlado B. - 1 Apr 2005 1:26 PM - 3 messages
Hi, I have decided to write some control and have inherited ContainerControl class and added few properties and methods and everything worked just fine. Then I started to write xml documentation for my members and, again, everything was fine. And then, a few days ago when I wanted to "Go to definition" of ...
Score Process Will Not Quit - Help
Chris Jones - 1 Apr 2005 1:19 PM - 10 messages
I have a Windows executable written in C#.  It is run by our customer in three ways: from Windows Explorer, as a scheduled task, or kicked off  by another process.      When the exe is started by the other process, it completes its work but ...
Score Capturing keys with the keyUp event
JPSutor - 1 Apr 2005 12:47 PM - 3 messages
I need to capture multiple keys with the keyUp event (Ex. Tab + 7) I can captuee individual keys by I'm not sure how to caputre multiple keys ...
Score writing DateTime/TimeSpan values to a stream. Is there a shortcut?
Claire - 1 Apr 2005 12:17 PM - 4 messages
Ive been writing DateTime variables to streams the long way binarywriter.write((int)Day); binarywriter.write((int)Hour) etc Is there a conversion routine or some other way to shorten the process of doing this please (eg in Delphi you just cast to a Double value and wrote ...
Score Format System.DateTime object.
Jensen bredal - 1 Apr 2005 12:03 PM - 4 messages
How can i format my Datime in the following way : yyyy.MM.dd? Many thanks in advance JB ...
Score invoking a asp page function from c# console application
Ravi - 1 Apr 2005 12:01 PM - 2 messages
Hi , is there a way to invoke a method in asp page from a c# console application. ...
Score How can I get the following functionatilty in Windows Forms ?
Al - 1 Apr 2005 11:31 AM - 3 messages
I have a useful framework, written in a different language (PowerBuilder), which I'd like to replicate in .Net and Forms, but I'm unsure of how to approach it, as the Event model is being used different between the ...
Score hen_starting_ActiveSync
Ramón - 1 Apr 2005 11:23 AM - 3 messages
COM1 is aumatically set when ActiveSync is run. But I want to set COM3 by default. I think I have to write in registry, but where in registry? Thanks, Ramón. ...
Score anybody knows how to use Activesync programatically?
Ramón - 1 Apr 2005 11:07 AM - 2 messages
I usually use ActiveSync by launching by means of Process.start(string path) and I would like to use another smarter way. I do not know if there is an ActiveSync API available for this. Thanks, Ramón ...
Score How to control a process launched with Process.start(string)
Ramón - 1 Apr 2005 11:05 AM - 2 messages
I launch an application using this method: Process.Start("C:\\Documents and Settings\\Ramón\\Desktop\\C#___Bluegurads_v3_18_03_05\\Bluetime_1\\BlueTime\\Debug\\BlueTime.exe"); but then I do not know how to wait until it is finished. anybody knows how to do it? ...
Score RE: linking Form's ComboBox to DataGridViewComboBox
dumbo - 1 Apr 2005 10:15 AM - 1 message
Hello "dimension" also I have found a similar problem, sent in this newsgroup today. If you had to find a solution to the problem, I ask you to communicate it for information to me. Good job. Dumbo ...
Score Making a fully functional Textbox
James dean - 1 Apr 2005 9:13 AM - 4 messages
I want to make a fully functional Textbox. Are there any good sites or code snippets that i could work from?. Also i am making it in C#. C# is notoriously slow so i want to know is it possible to actually make an ...
Score Access to instance objects in different classes
MikeAth via DotNetMonster.com - 1 Apr 2005 8:55 AM - 5 messages
Hi all, I have two different classes and one instance of the Form. I would like to access the members of the Form instance in both classes without having to create a new instance in the other class, because that ...
Score Ways to convert an image to base64 and back
James dean - 1 Apr 2005 8:53 AM - 2 messages
The following code is the current method i have for converting an image to Base64.Is this the most efficient way to convert an image to base64 or are there others. The Image class's Save method is slow here and i am ...
Score Errors in services. How should you handle them?
Claire - 1 Apr 2005 7:05 AM - 5 messages
I'm writing a realtime monitoring application acting as a Windows service. This service communicates to some instrumentation via a third party dll. TCP is the transport mechanism over the network. What I want to know is how should errors be handled in Windows services? I ...
Score ASPX to get the HTML form value
leonlien - 1 Apr 2005 4:54 AM - 3 messages
I am learning C# now .. so please bear with me if I don't make any sense. I have a plain HTML form on WEB Server 1 <Form action ="ABC.aspx" method=POST id=fURL name=fURL> <Input Type="hidden" id=AA name=AA value="TESTA"> ...
Score Adding userControl to dynamically craeted table
chris - 1 Apr 2005 4:09 AM - 1 message
Hi there, I would like to add a userControl to a dynbamically created table. The problem is that I can not access it unless the side is created. This is how I create the table. DatePicker1 is the userControl and does not ...
Score OleDbCommand Parameters Collection
Adam - 1 Apr 2005 3:11 AM - 3 messages
Hey guys I’m pretty new to this parameterized commands thing and I don’t know why this code isn’t working. I have a Connection object set up as Conn, and a Rec object which is holding my values. This method is inside ...
Score Remove scrollbars from Browser Control
msnews.microsoft.com - 1 Apr 2005 3:09 AM - 1 message
Hello, I am trying to remove the scrollbars from any page I load up into the browser control on a window form. I first tried the following: browserDoc = (mshtml.HTMLDocument)browser.Document; browserBody = (mshtml.HTMLBody)browserDoc.body; browserBody.scroll = "no"; ...
Score CAS and multiple permissions
Xia Wei - 1 Apr 2005 1:48 AM - 5 messages
Hi group, I'm trying to use CAS in my project these days. And I find a problem, for example: [PrincipalPermission(SecurityAction.Demand,Role="Xxx")] static void Exec() {} Then the caller of this method should be a member of role "Xxx". If I define ...
Score adding local varialbes - String?
Patrick Olurotimi Ige - 1 Apr 2005 1:45 AM - 4 messages
I have a DataTable:- private void CreateForm(DataTable dt, string headerText) { } string formTitle = tbxFormTitle.Text; string formNotes = tbxFormnotes.Text; DataTable dtForm = GetDataTable(formSql); And i'm calling 2 local variable dtForm,formTitle Like so CreateForm(dtForm,formTitle); How can i add a 3rd one for example the string formNotes? ...
Score 2 Datagrids and a Filter
Dave - 1 Apr 2005 1:29 AM - 1 message
Hi Have Master/Detail relationship within 2 datagrids. Binding works fine, when a user selects a row in the Master grid it updates the display in the detail grid, awesome...........but.. I also have a combobox on the form, when a user selects a value it filters ...
Score ask if a class inherits from another
Rodolfo - 1 Apr 2005 1:08 AM - 2 messages
I need to do something like this public class a : b{ .... } .... a objecta = new a(); if (objecta "inheritsfrom" b)     do something; There's a reserved word to do that? TIA ...
Score A plea for the reinstatement of IDL
Richard Blewett [DevelopMentor] - 1 Apr 2005 12:46 AM - 10 messages
Myself and others who have a serious investment in IDL have formed a petition to get Microsoft to get IDL out of the sidelines and back in to a mainstream language. Its about time we had a proper IDL editor in VS.NET for ...
Score using /unsafe
Z - 1 Apr 2005 12:07 AM - 2 messages
Hello, In my C# program I have a function that uses pointers. Is there a way to tell the compiler to compile only this function with the unsafe switch and compile the remaining project as safe code? I enclosed the body of the function in unsafe block like this: ...
Score DatetTimePicker
web1110 - 1 Apr 2005 12:04 AM - 3 messages
Hi y'all, When displaying a DateTimePicker control, opening the control provides a calendar from which to select a date.  How do I specify a time? Thanx, Bill ...
Score C# and ADO.Net - Cheap Question!
Matthias S. - 31 Mar 2005 11:25 PM - 7 messages
Hi, I'd like to INSERT a string into a database using C#. The way I've tried it is the following: sQuery = string.Format("INSERT INTO myTable (Header, Body) VALUES ('{0}','{1}')", sHeader, sBody); It works fine until I have an occurence of ' (an apostrophy) in either ...
Score Empty message queue
Daniel Rimmelzwaan - 31 Mar 2005 11:16 PM - 2 messages
Does anyone know how I can determine if a message queue has any messages in it? ...
Score Object reference not set to an instance of an object.
FredC - 31 Mar 2005 11:05 PM - 1 message
I'm having problems putting a collection of structs (WTGData_10 ) into a single struct. The collection is filled by an event handler as follows: private ArrayList WTGData_10 = new ArrayList(); private void WTGDataRowReady10Handler( WTGDataGroup_10 myWTGData ) {     WTGData_10Timer.Enabled = false; ...
Score playing wave files on specific Audio device ?
Sagaert Johan - 31 Mar 2005 10:59 PM - 3 messages
Hi I can play a wave file through a p/invoke  to winmm , but how can i play a wave file to a specific audio device if i have more then one audio device in my pc ? Johan ...
Score FindWindow, RegisterWindowMessage, SendMessage
Tony - 31 Mar 2005 10:41 PM - 6 messages
I need to send a message to a window in another application. The name of the window is known at design time and set in the constant App2_MONITOR_CAPTION. The message is defined as X_GenerateEvent. The following VB6 code works. I assume this is possible in C#. How do you do ...
Score Data not going into Excel from Form button - Do I need a thread
JM - 31 Mar 2005 10:19 PM - 3 messages
Hi I have created a Windows Form that takes input.  When the Run button is pressed the form is disabled and the code checks some files and inputs the data into an Excel worksheet (that is hidden so that I cannot watch as it ...
Score Offline / online variable sharing
mh - 31 Mar 2005 10:08 PM - 1 message
What would be the best way to share a variable between a C# Windows app and an ASP.NET web app.  For this requirement, you can't assume that the Internet is available when the Windows app looks for the value.  Can you ...
Score Click - open in IEbrowser
RajS - 31 Mar 2005 10:07 PM - 5 messages
Hi All, In clicked event on a grid column(value is a url link), I am trying to open an IE browser. Can any one direct me to an example? Thanks, -RajS ...
Score Sometimes_ExecWB_doesn’t_print
Jesper Nilsson - 31 Mar 2005 9:47 PM - 1 message
I'm using an instance of SHDocVw.InternetExplorer to print HTML pages. Unfortunately one of hundred pages doesn’t print. Are the pages printing to fast? Do I need some kind of delay? I'm using this code. SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass(); ...
Score Installing VB6 after VS.NET 2003 installation
Frank Rizzo - 31 Mar 2005 9:37 PM - 3 messages
Hello, I have vs.net 2003 installed on my primary dev machine, but now I have to do some work on a vb6 project.  Is it safe to install Vb6 on top of vs.net 2003? Thanks Robert ...
Score override virtual, covariant return type
David Sobey - 31 Mar 2005 9:27 PM - 7 messages
Hi everyone I'm having huge difficulties overriding or hiding a base function with a function that returns a covariant type. I'd be grateful if someone could show me some code where this is done: - A class BaseClass is declared with a function me() that takes no arguments ...
Score Simple IDE Question ! - How will I clear the "Marks" ?
msnews.microsoft.com - 31 Mar 2005 9:09 PM - 4 messages
Hello All, In the "Find Dialog" (Ctrl-F) of the IDE there is an option called "Mark All". When I click "Mark All", this marks the occurences of my search text. How will I clear this mark? Thanks for your time. ...
Score @ sign?
Ben R. - 31 Mar 2005 9:03 PM - 9 messages
I saw the following line of sourcecode: string         input = @"the quick brown fox jumped over the lazy dog"; What is the purpose of the '@' above? I tried running with and without and ...
Score How to end a Socket.BeginAccept call
Joachim - 31 Mar 2005 8:55 PM - 2 messages
When closing down my server I get the following exception An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll Additional information: AcceptCallback I beleive that it is the asynchronous BeginAccept call which causes the problem. How can I avoid this? Here is the code: ...
Score Could not find any resources appropriate for the specified culture
Ajoy Kumar - 31 Mar 2005 8:39 PM - 1 message
Hi, Firstly, I have created an Assembly with RlinkPMBAPIRes.dll Secondly, I have created an Assembly with TestRes.exe which is the calling application. 1. RlinkPMBAPIRes                     RlinkPMBAPIRes ...
Score Windows Form and Windows Form User Control - Where Is The Method That Would corresspond To A Web For
Richard - 31 Mar 2005 8:33 PM - 2 messages
Hello MyMainWebPage.aspx contains MyUserControl.ascx MyUserControl.ascx has a DataTable Property MyDataTable MyUserControl.ascx has a DataGrid which whose datasource is MyDataTable (or technically it's private accessor but that I don't think is an issue here) MyMainWebPage creates a DataTable dt . I then do a ...
Score COM interop help
edmitchell - 31 Mar 2005 7:52 PM - 4 messages
I'm getting an error when I pass "User" in "report.HasBeenAccesedBy(ref User,ref UserN);" I have created the iL to see if there is something incorrect. ..method public hidebysig newslot abstract virtual             instance bool  HasBeenAccesedBy([in][out] class LDD.User& ...
Score Getting Method Arguements from a Comma-Delimited Text File
JeffM - 31 Mar 2005 7:41 PM - 1 message
If you've seen this before, sorry for the repost, the last post had no replies- and I'm still stuck. Can anyone suggest a way to use a comma delimited text file to supply arguements to a method call. Any ideas or sample code much appreciated. ...
Score Threads Question
Bruce C. Miller - 31 Mar 2005 7:41 PM - 11 messages
This might be an easy one (just starting to learn C# here), but I'm overlooking it for some reason... namespace test2 {   public class Form1 : System.Windows.Forms.Form   {     public Graphics g;     private Thread t1; ...
Score System.ComponentModel.Win32Exception: The operation was canceled by the user System.Windows.Forms.Pr
shan_chennai - 31 Mar 2005 7:37 PM - 4 messages
I have a print component that opens up a printpreviewdialog and paints all the controls. Now when i click the Print, after setting Microsoft Office Document Image Writer as default printer, the Save As dialog for saving the mdi file is opened. When i click on save, there is no problem. But when i ...
Next »