all groups > c# > april 2006 > threads for friday april 7
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
Radio Buttons in Menu
Posted by Martijn Mulder at 4/7/2006 11:10:53 PM
How can I put a set of Radio Buttons in a Menu? A bullet list of items where
selecting one automatically unselects the others.
Thanks
... more >>
Reading the Windows Event Log
Posted by hecsan07 at 4/7/2006 9:35:01 PM
Hey
I am trying to read the Windows Event Logc. In fact, I am able to read the
Event Log. My problem is that I am reading and filtering a large log and it
takes a very very very very long time to complete. I am using the ordinary
technique for reading/writing from and to the Event Log. I am... more >>
Updating a second DataGridView with Access Data
Posted by Steve Teeples at 4/7/2006 8:37:01 PM
I have a form with two DataGridView controls. The form has linked to it an
Access database with just two tables. The second table contains unique
"child" data having a one-to-one relationship with each row of the first
table. I am able to display the first table's data in one of the
DataG... more >>
NUnit Test
Posted by Ether.Sysu at 4/7/2006 8:06:24 PM
hi
I'm new to NUnit. Is there any way to test a private method with
NUnit?
thanks!
... more >>
Values in List<int> getting sorted.. why?
Posted by nospam NO[at]SPAM nospam.sss at 4/7/2006 6:18:57 PM
I am adding integer values from a datarow collection to a List<int> using
the Add method. The values are read in the correct order from the
collection but once the List is populated, the values in the List are
sorted in ascending order. Why? This
is undesirable.
John Dalberg... more >>
instance of sqlDataReader - is not available to an exteranl method
Posted by Web learner at 4/7/2006 5:48:40 PM
I am trying to create a method GetDataFor(string column) becaues I have =
to repeat the same statements for several columns but I get an error as =
follows:
The name 'dr' does not exist in the current context
It seems the dr -the instance of sqlDataReader - is not becoming =
available to th... more >>
Property or Function?
Posted by sklett at 4/7/2006 4:59:32 PM
I just found myself doing something I haven't before:
<code>
public uint Duration
{
get
{
uint duration = 0;
foreach(Thing t in m_things)
{
duration += t.Duration;
}
return duration;
}
}
</code>
And it made me think... ... more >>
Cancel a pending async operation?
Posted by Anders R at 4/7/2006 4:56:59 PM
Hi,
Anyone know howto cancel a pending async operation?
I'm using the .NET 2.0 SerialPort and I start a BeginRead(...);
What I like to do is to cancel that pending read. In c++ or with api calls
you could use PurgeComm(handle, PURGE_RXABORT);
I can't use PurgeComm in my case, any suggesti... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
To handle logarithms in DataTable.Columns[0].Expresion
Posted by Oscar Patarroyo Velasco at 4/7/2006 4:49:02 PM
--
Oscar Patarroyo Velasco
Sistemas y Asesorias de Colombia
Bogotá, Colombia... more >>
Add Bytes to Bytes array
Posted by Geoffrey at 4/7/2006 4:28:37 PM
Hello,
I have one array of Bytes , and I want to add some Bytes at the start of the
array.
Is it possible to move all the bytes of the array to right , so I can insert
my Bytes like Bytes[1], ...
Or when I have a lot of Bytes to add, is it possible to add one array to
another array ?
Like... more >>
Blowfish encryption
Posted by Iain at 4/7/2006 4:21:37 PM
Hi
I need Blowfish encyption (freeware hopefully) for a c# project, any ideas
where to start?
TIA
Iain
... more >>
Populate TreeView from ListView
Posted by Beginner at 4/7/2006 3:54:28 PM
Hi,
I'm trying to populate a TreeView from an existing and filled in
ListView (lvwBuild). lvwBuild is a basic two column listview which can
have any number of rows. I would like the first column of lvwBuild to
be a node and the second column to be a branch on the TreeView
(hopefully I have ... more >>
ReadOnly File Attribute
Posted by Josh at 4/7/2006 3:46:39 PM
How do I unset the ReadOnly attribute on a file. Everything I find on
Google does not appear to work.
--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/
... more >>
Beginner Confusion - C# Terminology - Simple Function as Example
Posted by Ranginald at 4/7/2006 3:26:08 PM
Sorry for the simple question but thanks in advance:
My goal is to create reusale code for a web app in C#.
I have written the code already as a windows app but here is where I am
confused:
To keep it really easy let's say this is the code:
function addition(int, int);
int X;
int Y;
... more >>
Regex: pulling values out of this string
Posted by sklett at 4/7/2006 3:19:09 PM
given one of these two string:
ProtocolRecord(0, 100, 100, arZeroMax , 1, 0, SKIP,0),
ProtocolRecord(0, 100, 100, arSetSet , 4, 0, DJMPNZSTOP, (void *)
&Protocol_TD[0])
I want to pull all the values out that are separated by commas and the last
value. I have no guarantee that there won't... more >>
[service] Detecting login / logout / inactive account
Posted by Eduard Witteveen at 4/7/2006 3:04:52 PM
Dear list,
In the corporation, we want to know who is using which computer, and do
some phone routing based upon this information.
When a user log's uses it's account to login, the phone on the desk
should also ring on the same desk. When the user leave's / sleeping, we
dont want the phone... more >>
which method is called first ?
Posted by thickface at 4/7/2006 2:07:28 PM
Hi all, I have a question and any suggestions for solutions would be
greatly appreciated.
In my program, I first defined a variable called 'incidence' which has
to be updated at every time step,
public static int incidence = 0;
Then I have a method which is called 'step()' and inside 'inc... more >>
Is there any dbunit for .NET?
Posted by probashi at 4/7/2006 1:26:57 PM
Is there any dbunit for .NET?
... more >>
log4net clear log file
Posted by Dhans at 4/7/2006 1:11:02 PM
Hi there,
I am using log4net in my (.net v1.1) application to log the messages. I
tried to clear the logfile while application is running. since log4net has
the file handle it did not allow me to clear/delete the file. I need to clear
the content of the log file specified in the log4net confi... more >>
regex question
Posted by Bob Weiner at 4/7/2006 12:55:50 PM
I have a string which contains html tags and data. What regex patter will
capture the data without the tags?
For example
My new <a href="myHouse.com">home</a> is <B>very</B> nice!
should return:
My new
home
is
very nice!
Can this be done?
bob
... more >>
Sorting arrays on more than one value
Posted by Mantorok at 4/7/2006 12:08:27 PM
Hi all
I have an array of objects - each object contains a Surname and Forename
property. What I want to do is sort these by Surname, then Forename.
Is this possible?
Thanks
Kev
... more >>
Maximize Web Page Onload
Posted by gjtired at 4/7/2006 11:59:38 AM
How can I maximize a web page when I load it?
Thanks
... more >>
ignore/throw out output parameter
Posted by Bucky at 4/7/2006 11:57:45 AM
Double.TryParse has an output parameter "result". If I don't care about
the result, is there a better way to ignore it? The only way I know is
to create a dummy variable.
double dummy;
Double.TryParse(..., ..., ..., dummy);
... more >>
DataGridView ComboBox Binding
Posted by Nathan at 4/7/2006 11:51:01 AM
Hi,
I have a datagridview bound to a List of objects (ObjectA). Each ObjectA
contains an ObjectB property.
Class ObjectA
{
public ObjectB objB {}
}
The datagridview has a combobox column that is bound to each ObjectA's
ObjectB, like this:
List<ObjectA> ObjectAList = new List<Obje... more >>
Excel files as HTML using C#
Posted by kewalmehra NO[at]SPAM gmail.com at 4/7/2006 11:09:37 AM
Hi All,
I have a requirement of saving Excel files as HTML using C#. I have
managed to write code for saving as HTLM file. however this seems to be
not working in the once perticular case .
For e.g I hav the following values are in column say A1 & A2.
A1A2
D B
B O
A N
G D
V... more >>
Express Edition
Posted by Vijay at 4/7/2006 11:07:35 AM
Can I write ASPX pages wtih VC# Express edition for windows? Will get a
template, like New ASPX page?
VJ
... more >>
Get directory listing from a web server
Posted by Pete Kane at 4/7/2006 10:55:16 AM
Hello all, how do I get a directory listing from a web server ?, I'm
playing around with reflection and "Click once" deployment and would
like to loop through a directory listing and use Assembly.LoadFrom(dllname)
many thanks... more >>
Asking again: Implementing interface, returning subclass
Posted by David Thielen at 4/7/2006 10:30:05 AM
Hi;
I am writing a class that implements IDbConnection. The i/f defines a method
BeginTransaction() that returns an IDbTransaction. I want to define this as
returning a DbTransaction (as DbConnection does). It makes sense to me that
this is legal as DbTransaction implements IDbTransaction s... more >>
Select and attach to specific COM EXE instance as COM object
Posted by Jon Davis at 4/7/2006 9:55:06 AM
I am working with an application that is compiled as a COM EXE (written in
Delphi 7). I don't know if it's the nature of COM EXE or if it's implemented
in the COM EXE, but when I create a new object based on the COM interface
using C#, it references the first process/instance it finds of this ... more >>
Directory disk space usage.
Posted by UJ at 4/7/2006 9:54:50 AM
I've now got the way to figure out how much disk space is on a disk. Is
there any way to get the disk space usage for a specific directory and
below?
I could write a routine easily but if there is code already out there that
does it......
TIA - Jeff.
... more >>
dotNet vs J2EE
Posted by Shayaan Siddiqui at 4/7/2006 9:47:21 AM
Hello
I am working on a new project and I would like to do it in dot Net
Can someone provide me with good irrefutable reasons to do it in dot net
than J2EE?
Shayaan... more >>
Grabbing image out of a window
Posted by TheJediMessiah at 4/7/2006 9:14:48 AM
I have a window which is used to playback video media. I have another
smaller window which I need to use as a snapshot window. When a user
pauses the video and finds the frame he is interested in, I need to
grab the image out of that window, resize it and then display it in the
snapshot window.
... more >>
Adding Property to my DataGridViewColumn
Posted by Michel Lapointe at 4/7/2006 8:43:42 AM
Hi,
I have a problem while creating a customized DataGridViewColumn with a
custom property.
The problem is that after defining the property, adding the column to my
Datagridview and settings it's property to true it never get define in the
..designer files, it always revert back to the d... more >>
Color.FromArbg
Posted by UJ at 4/7/2006 8:36:44 AM
What is the 'alpha' part of the color? All the documentation seems to say
the alpha field is the alpha value.
So what's the alpha value.
TIA - Jeff.
... more >>
Need PropertyGrid Help
Posted by crow_y2k NO[at]SPAM web.de at 4/7/2006 7:27:37 AM
Hellooo out there...
i have a problem with my propertygrid ( who dont have such a problem
;-) ):
i want to programm a small app to easy edit a .ini file. i thought that
a property grid would be a nice solution for that.
so i load the file structure ( CIniFile, CIniSection, CIniOption ) an... more >>
GUI Delegates & Text Disappearing
Posted by Curious at 4/7/2006 6:20:40 AM
Hi,
I have program, creating multiple threads, and each thread is updating
the same richtextbox(appending to previous text), and text in the
statusbar.
To update the richtextbox and statusbar, I am using delegates.
At some point in time the text in the richtextbox is being cleared off.
A... more >>
how to design shopping site
Posted by Sukh at 4/7/2006 5:58:02 AM
My client given me requirement to design ecommerce shopping site and
his main requirement is he want to display item photo's with price and
brief detail on site and he wants to change these items daily without
compiling the site. Can any one help me how to approach for this. Any
url/link or any ... more >>
SHELLEXECUTEINFO Hooking into the Shell
Posted by donald at 4/7/2006 4:42:14 AM
Hi there,
I follow this http://www.codeproject.com/csharp/dateparser.asp articles
to made a Hooking into the Shell.
I just want to know which App has call it for example was it start run,
or from the desktop or from outlook as a attachment???
Thanks
Donald
... more >>
How to pass a class to a method
Posted by MrEd at 4/7/2006 3:36:13 AM
Hi all, I need to pass a class to a method, (not an instance of a
class), I'll explain...
lets say we have a class, lets call it Shape (as the tipical example),
then lets say that i also have Circle, Rectangle and Triangle classes
that inherit from Shape.
what I need is to create a method on ... more >>
Which CHECK constraint causes the exception?
Posted by ferg at 4/7/2006 3:23:49 AM
I have a Customer table. The table has two different CHECK constraints.
Then there is the Customer details dialog, which provides the user with
an UI for changing users. I have some UPDATE sql, which is called once
the user clicks the OK button on this dialog.
[C#]
try
{
int rows = cm... more >>
Unable to properly set the InteractiveProcess property on a windows service
Posted by letibal NO[at]SPAM gmail.com at 4/7/2006 2:53:50 AM
Hello,
I have written a windows service and created an installer for it.
The service runs under the system accounts. When started, it launches a
GUI.
By default, the InteractiveProcess property of the service is not set
(this can be checked by right-clicking on the service in the Services
wi... more >>
subscribing to events
Posted by Mike P at 4/7/2006 2:43:20 AM
I'm trying to subscribe to the radio button CheckedChanged event. I've
tried using rbtn.CheckedChanged += new EventHandler(CheckedChanged); but
it doesn't work. Can anybody help?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
reference type garbage collection
Posted by Ivan at 4/7/2006 1:15:01 AM
If a reference to an object or an array is set to null, will the object/array
and all of it’s members/elements be garbage collected as well (Assuming that
no other references are held on the members/elements, and none of these
members/elements hold references to unmanaged resources.)?
For... more >>
Constructor chaining
Posted by Sidharth at 4/7/2006 1:03:02 AM
Hello,
I have this situation where I have two overloaded constructors and I would
like to call one constructor from another without using the initializer way.
I.e. without doing:
public myClass(/*param list*/) : this(/* more param list */)
internal myClass(/*more param list */)
(Fir... more >>
Is this a bug?
Posted by Michael C at 4/7/2006 12:00:00 AM
I'm setting the AutoScrollPosition of a scrollable control. I was having
quite a bit of trouble with it not doing what I expected. Eventually I
worked out that if you want it to have a negative value you have to pass in
a positive value, eg
Point p = new Point(100,100);
Console.WriteLine(p... more >>
Permissions for Updater Application Block
Posted by Mark Gregory at 4/7/2006 12:00:00 AM
Would like to know how to make this work for a user not logged in as
Administrator.
We can get this to work when the client computer has an Administrator logged
in.
Would appreciate a pointer on how to do this correctly.
regards
Mark
... more >>
Version Check of .NET Framework at runtime
Posted by vighnesh at 4/7/2006 12:00:00 AM
Hi All
Can anybody help on version check of .NET Framework at runtime.
Thankyou verymuch in advance
Regards
Vighneswar
... more >>
Bugger
Posted by Michael C at 4/7/2006 12:00:00 AM
I spent a good deal of yesterday making a usercontrol that would display a
picture for me with scrollbars to scroll around the pic (getting the
scrollbars working nicely was what took most of the time). Today I found out
about the scrollable control and rewrote the whole thing in 10 lines of c... more >>
Is it possible to use inheritance here or some other construction to make the code less
Posted by tony at 4/7/2006 12:00:00 AM
Hello!!
Below I have some methods that first setup a select string then read the
dataset into a ArrayList.
I have used the Data Adaper ConfigurationWizard for these adapter that I use
here.
I just wonder if it's possible to use inheritance and polymorfism or some
other construction here to... more >>
cannot access class?
Posted by Daves at 4/7/2006 12:00:00 AM
I have a custom (derived) Page class called BasePage where I define a class
called ImgLink and it has a public constructor:
public class ImgLink{ publicImgLink(params...)}
From the Masterpage I instantiate a BasePage class to access the ImgLink
class as:
BasePage _basePage = (BasePa... more >>
|