all groups > c# > august 2003 > threads for friday august 22
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
Highlight text when Tab or Shift+Tab
Posted by Tony at 8/22/2003 8:34:50 PM
How can i highlight the whole text in a textbox control when a user tab or
shift+tab into the control?
Thanks
Tony
... more >>
MDI with other programs
Posted by Chronos at 8/22/2003 7:28:50 PM
Is it possible to open up a program as a child to yours? Like if I wanted
Notepad opened but as a child under the parent's control?
thanks
... more >>
InputBox
Posted by Chronos at 8/22/2003 7:27:47 PM
I'd figure it would come with .NET 2003 but I still haven't figured out
where (or if there's one) is the InputBox? I've been able to pull up the
VB.NET one but it's very limited...
... more >>
how to derive class from generic Image class
Posted by Marcin Kowalewski at 8/22/2003 7:11:02 PM
Hi I've got a stupid problem with code below :
using System;
using System.Drawing;
....
public class CsrcImage :Image
{
public CsrcImage()
{
//
}
}
....
Compiler return error:
'System.Drawing.Image.Image()' is inaccessible due to its protection level
OK I know tha... more >>
app.config
Posted by Stefano Meier at 8/22/2003 6:29:44 PM
I have tried the example on the following url but it has given me an error
http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondeclaringsectiongroups.asp
the app.config file is:
<configuration>
<configSections>
<section name="sampleSection"
type="Syst... more >>
Multiple configurations with various mains
Posted by Gary Feldman at 8/22/2003 6:04:14 PM
I didn't get any good answers to my previous question about unit testing,
so let me rephrase the question:
As near as I can see, it's possible to add arbitrary configurations to a C#
project in Visual Studio 2003. And it's possible to have multiple main
functions within a project (but not wit... more >>
windows explorer like table
Posted by Saso Zagoranski at 8/22/2003 5:48:22 PM
Hi!
I would like to know whether there is a component included in .net fw, which
resembles
Windows explorer table, where you have:
filename file size ...
Or has anyone else created such a component? Or does anyone have any
starting ideas on making one? I've made a similar Table with ... more >>
.NET equivalent to java JMS
Posted by Jim H at 8/22/2003 4:50:03 PM
Does .NET have an equivalent to java's JMS messaging. I'm not a java
programmer but as I understand it a java application can be setup to pass
entire objects between processes. Is there some sort of equivalent in .NET?
I have a meeting on Monday to discuss the direction we plan to go with one... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
VS.NET 2003 - C# drag and drop
Posted by MD at 8/22/2003 4:24:25 PM
Why is it that the DragDrop and DragEnter events don't appear in the
Properties window (lightning bolt) of a RichTextBox? I've added the event
handlers after the InitializeComponent() call, and the drag and drop works
great. But why is it missing from the IDE?
... more >>
Get an Excel Column
Posted by Robert Flovita at 8/22/2003 4:03:17 PM
Hi ,
I want to find last used cell in a column .
(for example "c" or 3 )
can count used range of a column .
set a range to used range of a column .
thank you .... more >>
ReaderWriterLock and Collections
Posted by pokémon at 8/22/2003 3:35:14 PM
Question:
Is this thread-safe:
ReaderWriterLock rwl = new ReaderWriterLock();
Queue q = new Queue();
public int GetCount() {
int val = 0;
try {
rwl.AcquireReaderLock(Timeout.Infinite);
val = q.Count;
} finally {
rwl.ReleaseReaderLock();
}
... more >>
.Select()
Posted by Max at 8/22/2003 2:44:46 PM
Is there any performance difference between,
DataSet.DataTable.Select();
and DataView.Table.Select();
Thanks,
Max.
... more >>
What's the correct variable naming methodology?
Posted by VM at 8/22/2003 2:01:17 PM
What's the correct variable naming in C#? How should a form be called (eg.
Frm_myForm)? or an int variable (eg. Int_Var) or a DataGrig (eg. DG_myGrid)?
I'm writing an application but I would like to name variables, objects,
etc... corectly so everyone knows what the variable is and what it holds
... more >>
Reading BIOS Version
Posted by Greg Smith at 8/22/2003 1:47:54 PM
Is there something out there in the namespaces to read machine level setting
such as the BIOS name and version?
Any help is greatly appreciated.
... more >>
Beginners question : casting char[] to byte[] how ?
Posted by Sagaert Johan at 8/22/2003 1:37:53 PM
if i have a variable decllared as :
char[] mychararray = new char[50];
and i have some method that needs an byte[] how do i cast or convert this ?
(byte[]) mychararray does not work
... more >>
right border of drawstring
Posted by Jakub Otahal at 8/22/2003 12:27:00 PM
Hi all,
I have question, I need to draw string on form and then I need to know the
position of the right border of that text........
how can i do that?
thanks
jakub
... more >>
Windows Forms - How Can I Make Them Draw/Render Properly?
Posted by joey.powell NO[at]SPAM goldcoinc.com at 8/22/2003 12:02:53 PM
Hello all. For a long time now I have been struggling with a .net
Windows Forms problem. In several of my applications, I use the
"Process" class from System.Diagnostics to accomplish various task
from within my code (kind of like the old VB shell function). Using
this process class appears to b... more >>
DrawGrabHandle
Posted by Kate Luu at 8/22/2003 11:47:53 AM
I did create a custom control, which inherit from picturebox control.
OnClick method, I have put this line of code:
Graphics gfx = this.createGraphics();
ControlPaint.DrawGrabHandle(gfx , this.ClientRectangle, true,true );
this.Invalidate();
but nothing happen.
Does any body know... more >>
Can you have a Constant Array in C#
Posted by News VS.NET ( MS ILM ) at 8/22/2003 11:43:25 AM
hello,
how do you declare a multi-dimentional constant array in C#
does this make sense?
Thanks
... more >>
Mute Microphone
Posted by Ken Lemieux at 8/22/2003 11:25:20 AM
It's my understanding in order to mute the pc microphone
from c# requires DirectX 9.
Could anyone confirm this for me, and provide examples or
technicle refrences where it may be discussed?
Thanks,
Ken Lemieux... more >>
toolbox
Posted by Rudolf Ball at 8/22/2003 11:17:23 AM
Hi NG,
how can I programmatically add items to the toolbox?
Any links?
Thank you
Rudi
... more >>
move to c#
Posted by Alexandre at 8/22/2003 11:11:18 AM
I have a software (made in visual fox) that is installed in 600 machines...
I want to move the software to C#... but i have a question;
Will i have to install the framework on then 600 machines? Will it decrease
the peformance of the machines?
The machines have 64MB of memory and 700 mhz (pr... more >>
Windows Service.. System Tray
Posted by Andrew Mueller at 8/22/2003 11:04:23 AM
Hello all,
I have created a windows service and now I would like to have a
configuration page in the system tray. Basically an icon I can click on
which will just interact with an XML file. What is the best way to do this?
1. How do I use the System Tray and add an icon on it. Ye... more >>
Looking for a pattern to solve this problem;
Posted by Brad Quinn at 8/22/2003 10:41:09 AM
Friday, no brain power remains...
I have three assemblies; Client, Interface and Implementation.
The Client uses Implementation through remoting.
Client has a reference to Interface, but not to Implementation. Likewise,
Implementation has a reference to Interface, but not to Client.
Inte... more >>
static method call vs. Singleton method call - performance
Posted by Victor Jones at 8/22/2003 10:33:29 AM
I was involved recently in desiging a middle tier class where we essentially
need not track the state of the object, hence a class with static methods
was preferred. But there were some debate as to whether it made sense to
implement it as a singleton.
I wanted to know if there is any perfor... more >>
datalist repeating first record
Posted by Lewis at 8/22/2003 10:31:08 AM
Hey!
Wondering if anyone can help!
I have been trying to build an aspx page which builds a list of records from
a database. Having been doing this using xml and xslt using asp for years
with no problems this particular page had some functionality which I thought
could be well suited to a da... more >>
DataGrid Appearance
Posted by Jeff Cook at 8/22/2003 10:10:50 AM
Here's another newbie question.
I've written a little module to read a XML file and display it in a
DataGrid.
My code looks like this:-
if(openFileDialog1.ShowDialog() == DialogResult.OK)
{
ds.ReadXml(openFileDialog1.FileName);
grdXML.DataSource = ds;
}
}
This works OK. ... more >>
Does C# support array of classes?
Posted by Andrea Trevisan at 8/22/2003 10:06:55 AM
I'm following a tutorial tour for Microsoft C# and I ask if
this language supports array of classes like C++.That's a
personal curiosity.
I add the body of the two .cs files of my project which works fine but
commented-out lines:
using System;
namespace My3
{
/// <summary>
/// Summa... more >>
How to make a direct entry into a DLL that requires a point to an unsigned FAR?
Posted by charles.e.wood NO[at]SPAM medtronic.com at 8/22/2003 9:18:11 AM
Although the particular DLL is for the National Instruments
flexmotion32.dll I've convinced myself that it has something to do
with the 'u16 FAR' data type. This is the particular Dll function that
is giving me a headache:
FLEXFUNC flex_read_port_rtn (BOARD, u8 port, u16 FAR *portData);
Is ... more >>
Problems accessing SQL Server
Posted by Dafydd Giddins at 8/22/2003 8:57:48 AM
Hi
I set up a new instance of SQL Server using the developer
edition CD and set up a datbase called AMA, table called
user with two fields called userid (the primary key) and
username (a string). Wheni run the code i get the
following error message
Incorrect Syntax near the keyword 'us... more >>
How do I launch a pdf file in csharp?
Posted by Tim Osborne at 8/22/2003 8:11:06 AM
Hi
I am writing a simple winforms application that allows me to select a pdf
file on disk,
and have it launch Adobe Acrobat.
In the Win32 c++ world I would just do a ShellExecute.
How can I accomplish this in csharp?
Or do I have to write some managed c++ module to do this?
... more >>
does event increase obj's ref?
Posted by void at 8/22/2003 7:31:45 AM
suppose
A a = new A ();
B b = new B ();
b.OneEvent += new EventHandler(a.handler());
//dose this event increase a's ref in managed code.
a = null;
GC.Collect();
b.OneEvent(null, null);
//OK?
... more >>
Generating reports with C#
Posted by rimaz NO[at]SPAM ifko.ktu.lt at 8/22/2003 4:21:20 AM
Hi,
we are developing server side report generation application with .NET.
The problem is, that we have to present same data in diferent formats
(HTML, PDF, WORD, EXCEL). This has to be done using templates, wich
are defined by user (with GUI frontend). The main problem is how to
generate Wor... more >>
OO Programming and Relational Databases - please help!
Posted by Rob Thomas at 8/22/2003 4:05:20 AM
Hi,
I have a couple of classes:
Customer, Contact, ContactList, Agency, HostingCustomer and
OtherCustomer.
The Customer class is a base class and contains all the common
properties and methods associated with the customer including methods
such as Add, Delete and Get.
The Agency, Host... more >>
New to C#
Posted by Fredrick Jeyakumar Roberts at 8/22/2003 2:41:03 AM
Can Someone suggest a goog book for a c# beginer.
Thanks
Fred
... more >>
Regexp.Replace Problem
Posted by kenneth.soona NO[at]SPAM gmx.net at 8/22/2003 2:03:17 AM
content=Regex.Replace(content, @"/*Offline*/", @"//Offline");
content=Regex.Replace(content, @"//Online", @"/*Online*/");
Second line works fine but the first didn't!
I think the problem are the "*" in the first line.
Is it a bug?... more >>
Embedded .dll's
Posted by maghana at 8/22/2003 1:41:54 AM
Hi,
I have a .dll the I want to embed into the main (and
only) assembly, and use it from there ... how do I do
that, or is it even possible ? - please reply by eMail if
you reply to this fast ...
TIA
ma... more >>
Bug found : errorprovider - datagrid
Posted by Martijn Leine at 8/22/2003 1:28:45 AM
I am using an errorprovider and a datagrid component on a
form. I use the errorprovider to display error hints in
the grid, in the case the entered data by the user is
checked and not found Ok.
After the data is corrected, the hint does not disappear !
(the exclamation mark however, does dis... more >>
managed directx sample csAVPlayer barely works
Posted by Michael Mayer at 8/22/2003 1:26:08 AM
First of all, sorry for the cross-post. Seems like there should be a
managed directx newsgroup.
I'm trying to open the following sample application that comes with the
DirectX SDK.
C:\DXSDK\Samples\C#\AudioVideo\Bin\csAVPlayer.exe
It will not play some of the samples shipped with the SDK. ... more >>
bit Fields in c# structs ??
Posted by Sagaert Johan at 8/22/2003 1:01:50 AM
does c# provide bitfields in structs ??
can't find any hint in msdn
Johan
... more >>
How to search "O'Neal" using SQL
Posted by Tony at 8/22/2003 12:31:19 AM
I have my access database with a list of student's names, some student has
the name as O'Neal.. when i am doing a search in my windows applicaiton sql
queries, i couldn't search for it coz it will throw a syntax error exception
(the sql is: SELECT * FROM tblStudent WHERE Name='O'Neal';)
Since ... more >>
Remove debug of c#
Posted by Santy at 8/22/2003 12:21:11 AM
How can I do remote debugging in c#? I tryed ALL... but DCOM shows me a nice
"ACCESS DENIED. You need to add you to the debugger users" OMG... I AM IN
THE DEBUGGER USERS!!!!!! why why why why I cant do remote debugging?????
... more >>
|