all groups > c# > july 2003 > threads for thursday july 10
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
XML Error help
Posted by Vishal Bhavsar at 7/10/2003 10:13:47 PM
Hello,
I am fairly new to C# so bear with me if this is a simple question... I
couldn't find much help searching for it on the web.
Ok so I am trying to generate an XML document using the XmlTextWriter
class. Here's the pseudo/code :
XmlTextWriter writer = new XmlTextWriter(stream, ... more >>
Initialising variables inside or outside contructor
Posted by Daisy at 7/10/2003 9:28:14 PM
Another this vs that post.
Any real difference in declaring variables with default values, eg.
public class MyControl : UserControl
{
public int RowHeight = 20;
}
Over just declaring the variable, and setting it to 20 in the Constructor?
Currently, everything in my constructor could ... more >>
Override vs Events
Posted by Daisy at 7/10/2003 8:37:40 PM
Any reason why I should use one of these over the other?
Overriding:
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
// etc.
}
Events:
this.MouseDown += new MouseEventHandler(thisMouseDown);
public void thisMouseDown(object sender, MouseEventArgs e... more >>
Click event seems to fire multiple times
Posted by DEK at 7/10/2003 8:05:59 PM
Stepping through my code the click eventhandler code
executes through a few times before it finally stops.
Even though I only click the button once, is there a reason
for this, I have a few if else and method calls in the
eventhandler.
--
Thanks
DEK... more >>
MouseWheel & ScrollBars
Posted by Daisy at 7/10/2003 7:00:25 PM
I've got a control with a scrollbar docked to the right-hand side. The
scrollbar works fine, I've got an event:
bottomControlVScroll.Scroll += new
ScrollEventHandler(HandleBottomThingScroll);
Which calls this.Invalidate() on my control, and all is good. However, the
MouseWheel does naff all... more >>
automatic refresh when page processes event or method
Posted by at 7/10/2003 6:40:53 PM
Does the page automatically reload when it processes en event or a method?
When I click on a button and it processes the information, it loads
everything into their respective textboxes but immediately then does a
refresh. Unfortunately, on my page load event, I tell it to clear everything
(then... more >>
assembly loading problem
Posted by Mike Krueger at 7/10/2003 6:11:58 PM
Hi
I'm currently working on a forms designer for a free .NET IDE
(SharpDevelop -> www.icsharpcode.net/OpenSource/SD).
problem:
I try to put 'custom' components (user controls from the current open
project) into the forms designer. The project must be compiled for
making this work. Now af... more >>
Add code to a specific event?
Posted by at 7/10/2003 6:00:28 PM
How can I add code to a specific event (EG. add code to GetFocus of a
textbox or an activate of the form)?
I can't seem to find those events and if I double click on a control (eg.
button ) I can only code the Click event.
Thanks,VM
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Capture the HTTP request header?
Posted by dterrors NO[at]SPAM hotmail.com at 7/10/2003 5:57:35 PM
Hello, I'm making HTTP requests with System.Net.HTTPWebRequest and I
want to capture the entire header of the request as a string. I'm able
to do this with responses but now the requests. Am I missing it in the
API somewhere or is there another way?
thank you... more >>
Printing Help URGENT!!!
Posted by Chris Calhoun at 7/10/2003 5:32:39 PM
Does anyone know how to print without using a margin.
I mean printing at the absolute top or bottom af a file?
Thanks in advance
... more >>
Object To Variant
Posted by Bob Allen at 7/10/2003 5:07:38 PM
I am interfacing to a non .NET app and one of the params is of type variant.
In C# it is asking for an object. I went down that path with no luck. I ran
across using "marshal as" to convert an object to a variant. I cannot see
how to do this? I have 10 params to send a method by reference as type... more >>
Windows messages between a console application and unmanaged DLL
Posted by Chris at 7/10/2003 4:58:29 PM
Hi,
Currently, I have a console application written in C# and an unmanaged
legacy DLL written in VC++ 6.0. In the DLL's previous application, when an
event occurs in the DLL, a windows message would be sent to the host GUI
application via PostMessage to WM_USER + X. The GUI application would... more >>
Conditional Compilation/Conditional Constants
Posted by chris han at 7/10/2003 4:10:30 PM
Hi, all,
I'm trying to use Conditional Compilation Statements in my code.
using System;
#define DEBUG
public class MyClass=20
{
public static void Main()=20
{
#if (DEBUG)
Console.WriteLine("DEBUG is defined");
#else
Console.WriteLine("DEBUG is not... more >>
textboxs
Posted by Gav at 7/10/2003 3:48:10 PM
Is there a way I can completely take control of what happens when a user
press's return inside a textbox... I can not get it to do what I want
because I'm using linkbuttons instead of buttons it will not default to
them?
Thanks
Regards
Gavin
... more >>
Custom ComboBox -- Easy or Not?
Posted by Ron at 7/10/2003 2:38:21 PM
I need to create a custom combo box that lists items and subitems along with
descriptions in a particular format. For example
Format of the Data Listed In Combo Box:
Item Description
Item Description
Subitem Description
Subitem Description
Subitem Descr... more >>
C# tutorials
Posted by Mike at 7/10/2003 2:34:56 PM
I'm looking for some resources online to learn C# from begining to end. From
Windows app, web services, to asp.net using C#. I'm currently a VB,
vbscript, (with some VB.NET) developer and looking to migrate to C#.
Can anyone point me in the right direction to help me get started?
thanks for ... more >>
add a custom control icon to the tool box?
Posted by kathy at 7/10/2003 2:14:43 PM
I try to add a custom control icon by setting the project
property page->application icon. But seems no effect. how
to do that?
... more >>
String parameter in WHERE clause not providing exact matches.
Posted by google NO[at]SPAM dcferguson.com at 7/10/2003 2:11:43 PM
I am exectuing a query (against an Access database) and the results
are not an exact match of the search criteria.
I have a list of packages saved in an Access file. Before doing
certain operations, I want to see if a tracking number has already
been saved to file.
The tracking number "1234... more >>
changing datagrid column width dynamically
Posted by at 7/10/2003 1:37:45 PM
How do I change the datagrid column width dynamically when the grid's being
loaded?
VM
... more >>
passing an object from one application to another..
Posted by Michael J. Ryan at 7/10/2003 1:32:15 PM
can anyone point out some examples of this?
essentially, I want to have a service application that controls inbound
connections, and a console/control application that communicates with it
to view current connections, and stats etc...
Was thinking of running a service on a given tcp port, an... more >>
Declare a user32.dll function to accept an Array
Posted by Richard A. Lowe at 7/10/2003 1:26:32 PM
I'm successfully using SendInput to emulate mouse events
for a legacy app, delcared like so:
[DllImport("User32.dll")]
public extern static int SendInput( int theCount, ref
INPUT pInputs, int theSize );
From the MSDN docs, SendInput appears to take an array of
inputs:
"pInputs
[in] ... more >>
language pack - how to 'activate' it in an application
Posted by Wiktor Zychla at 7/10/2003 1:12:00 PM
I've downloaded the polish language pack for .Net Framework 1.1 and I've
installed it. Now I expect to see any exception messages in my native
language but I still get english texts in exception messages.
I think that I should somehow tell my application that it should use the
installed langua... more >>
System.IO Copy() and Move() question
Posted by vince at 7/10/2003 12:54:16 PM
MSDN help says you can use a UNC path for any methods
that accept a path, and I'm wondering if I can also
substitute an IP address for the UNC....???
Example:
Using System.IO.File.Move()
File.Move("\\\\MyServer\\share\\dir\\myfile.txt",
"\\\\YourServer\\share\\dir\\myfile.txt... more >>
regd font
Posted by Jyothi at 7/10/2003 12:45:29 PM
Hi,
In a rich text box ,
I select a text and make it Bold it turns bold and i make it italic the
bold nature is lost....
I do not want this to happen..how do i avoid this?
I want the style to be both italic and bold or whatever is being done on the
selected text.i.e just exactly how the... more >>
Databinding for datasets (more than one table)
Posted by at 7/10/2003 12:29:39 PM
Is it possible to bind to a datagrid the result of a select with several
tables?
With one table, I have :
mySel = "Select statement";
...
DA.Fill(DSAtt, "intemp");
DataGridAttendance.DataSource = DSAtt.Tables["intemp"];
DataGridAttendance.DataBind();
but, if my Select ha... more >>
removing special characters
Posted by Mark Bosley at 7/10/2003 12:11:03 PM
i'm reading from a database and found special character showing up as \0
or
�� when i serialize to xml.
trim does not work and using the string.Replace doesn't either.
how do i remove these?
... more >>
C# Client to acess a WebService in Java
Posted by Suresh at 7/10/2003 11:41:57 AM
Hi,
Iam trying to develop a client in C# on .NET, that would
acess a webservice written in Java.I dont know anything
about what kind of WSDL would be required, how to set the
web references programtically , dynamically during
execution to pick a specified webservice( VS.NET provides
a wa... more >>
override ++ operater and Compiler problem when casting?
Posted by Sacha Faust at 7/10/2003 11:38:35 AM
I have an abstract class, RuleResponse, and then create a new class base on
it, RuleResponseSequence, and override the ++ operater.
If I try to cast a RuleResponse as a RuleResponseSequence and try to use the
++ operator the compiler tells me "The left-hand size of an assignment must
be a vari... more >>
Use other class member function in same namespace
Posted by Chi Tang at 7/10/2003 11:35:31 AM
Hi,
I have 2 questions:
How to call a class member function from another class and these 2 classes
are in the same namespace?
Also, how to use another project's dialog box and this 2 projects are in the
same VS.NET solution?
Thanks for any help,
CT
... more >>
Book recommendation
Posted by Alan at 7/10/2003 10:59:49 AM
I got a book : C# Primer Plus, this is about the C#.
I am going to learn Visual C#, another book recommendation about this
specific topic ?
I don't want a book repeat the C# stuffs already in my book.
... more >>
CeSetUserNotificationEx troubles
Posted by CR6485 at 7/10/2003 10:55:14 AM
Hi everyone,
I've been trying out examples and reading documentation
on CeSetUserNotificationEx for a couple days now and
still cannot find the problem in my code. All I want to
do is launch an application when the PPC wakes up. I'm
deploying the solution on a Siemens SX56 with PPC
3.... more >>
System.InvalidCastException: Specified cast is not valid
Posted by Floela at 7/10/2003 10:48:10 AM
I keep geting the exception:
System.InvalidCastException: Specified cast is not valid.
I get this when I try to pass a DataRow into an object method. The line that
causes this error is:
policy.SetValues(dr);
Here is part of the class that contains the method that I want to call:
... more >>
Java vs. .Net support for Oracle
Posted by Joe Kinsella at 7/10/2003 10:32:10 AM
Java JDBC defines four types of database drivers. A type 4 driver is a
native protocol, fully Java-enabled driver. For Oracle, this means the
driver is written to the socket based protocol supported by Oracle's TNS
Listener. Oracle's type 4 driver for Java has been widely used in the Java
com... more >>
WebBrowser interop - legal to distribute wrapper classes?
Posted by Wiktor Zychla at 7/10/2003 9:09:28 AM
is it legal to distribute axshdocvw, shdocvw and mshtml.dll with my
application?
is it legal to distribute Microsoft.mshtml.dll from 'Primary Interop
Assemblies' folder (I assume it comes with Visual Studio)?
thanks for any clues,
Wiktor Zychla
... more >>
Bind web forms datagrid to Dataset??
Posted by at 7/10/2003 9:03:17 AM
Can I bind a web form datagrid to a dataset? How would I do it at runtime?
Thanks,
VM
... more >>
Nested buildfiles with Nant.
Posted by nigelc NO[at]SPAM nopworld.com at 7/10/2003 8:44:01 AM
Hi all,
I'm having a problem with <nant> tasks to build sub-projects into an
overall solution. I have the following directory structure:
JobManagerSolution
|_
| JobManager
|_
JobManagerController
where the ove... more >>
Getting VScrollBar properties from within an OnPaint method
Posted by Daisy at 7/10/2003 7:52:17 AM
I've got a custom control that works fine, it's DockStyle is set to Fill for
the panel it's in.
I've just added a VScrollBar docked Right in the panel. It appears, and
works fine, however in the OnPaint method of my custom control, I need to
know where the scrollbar is, so I can paint the rele... more >>
MVP....
Posted by Hector Martinez at 7/10/2003 7:12:44 AM
I'm sorry for my ignorance....But, can anyone tell me
what is the exactly meaning of MVP
... more >>
Windows service onStart event
Posted by Nishen at 7/10/2003 5:44:19 AM
Hi,
I want my service to sit in an endless loop and run a
stored procedure every say, 1 hour.
protected override void OnStart(string[] args)
{
while(1=1)
{
open connection
run sp
close connection
}
The problem is that the service cannot be started and
bombs out. What am doing w... more >>
Send output using Console.Write.
Posted by Boba at 7/10/2003 5:38:30 AM
Hi,
I'm programming a WinForm application. I would like to
enter commands that will send output that will help me to
locate bugs in the future.
I know that there is a way to send output by using the
Console.Write command. The question is how can I see the
outputs in the client machi... more >>
GetReferenceAssemblies() Issue
Posted by Buddy at 7/10/2003 5:14:26 AM
Hello,
I have an assembly that references about 50+ assemblies,
but when I load the assembly using Assembly.LoadFrom() and
view the referenced assemblies by calling
GetReferenceAssemblies() it shows about 31 assembly
references, I cannot see the rest. I've also notices by us
ISAM or any... more >>
nmake
Posted by John at 7/10/2003 4:19:27 AM
I'm try to run one of the sample(.net documentation) to
use office:
Microsoft Office Technology SampleThis suite of samples
demonstrates the use of Microsoft Office applications
(Microsoft Excel and Microsoft Word) from a managed
application.
Readme Locations
For more information, see t... more >>
File Name(Word)
Posted by John at 7/10/2003 4:14:41 AM
It's been 30min and haven't seen my post yet (sorry to
post twice).
Q: How do I get the file name(which is opened) of a
text/doc file if I have the process information of the
application(notepad/word) that opened/ceated the file.
Thanks alot.... more >>
configuration file is missing
Posted by Khor Soon Hua at 7/10/2003 3:48:42 AM
i using .Net1.1 and develop a windows form application. i put some
application settings in the web configuration file and load the settings
when the form is loaded. however, everytime when i build the project the
configuration file is missing and deleted even from recycle bin. can
anyone tell me... more >>
string class - memory reallocation
Posted by Dmitri Shvetsov at 7/10/2003 3:18:07 AM
Hi All,
Does somebody know how to work with this class directly? I know that we
could redefine some internal predefined variables in C++ to force some
methods to run much faster. For example. If you use "string sOldString +=
sNewString;" in a loop the string class has to reallocate the memory ... more >>
FontDialog
Posted by joannelai NO[at]SPAM yahoo.com at 7/10/2003 12:06:36 AM
Hi,
In my application, I would like to use a FontDialog which allows
users to change some options of font of the data in DataGrid. However,
I don't want to let the users to modify the face of the font (the
options that would be allowed are bold, italic, color...). I wonder if
somebody know... more >>
|