all groups > c# > april 2008 > threads for wednesday april 23
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
Problems Only When Using Run Without Debugging
Posted by Will at 4/23/2008 10:35:02 PM
Hi Everyone,
I have been having a bizarre problem when I do Run Without Debugging
(I have been doing this do to the intensity of some code which runs
slow when Debugging). When I run without debugging, the application
appears hangs on this code:
private static CCPix ClusterListHas... more >>
SelectionBox + dataset confusion
Posted by sweetiecakes at 4/23/2008 8:24:00 PM
I have an dataset that populates a selectionbox. I'd like to get the
value of the column "id" of the selected item in the selectionbox
afterwards. How would I do this?... more >>
DataGridView : How to Transform data between user input and validation ?
Posted by TheSteph at 4/23/2008 8:04:24 PM
Hi !
I have a DataGridView with a Date (DateTime) Column.
When a user edit the cell and change the date I woulk like to allow him to
write "081501" and programmatically transform the entered date to
"2008/15/01"( using a custom method called TransformDate(string ARawDate))
But I can't ... more >>
Class recursion question
Posted by cbmeeks at 4/23/2008 6:38:58 PM
Hello all.
I have a project that I am working on and I need some suggestions.
First, I have a class that contains a value and a reference to a
parent class.
For example:
public class Data
{
public Data ParentClass;
public double Value;
}
....
Data d1 = new Da... more >>
Drag Drop Woes
Posted by bob at 4/23/2008 5:40:10 PM
Hi,
VS2008
Trying to implement a simplified version of Mike Gold's tutorial on
Drag Drop.
My problem is that the dragover event handler never appears to pass
over a node.
I move the 'envelope' all over the tree view but FindTreeNode always
returns null.
The event handler e member appears t... more >>
MVC ViewPage<TViewData> How to Inheriting from a Generic Type?
Posted by DotNetNewbie at 4/23/2008 4:45:01 PM
Hi,
In the source code for System.Web.MVC the generic class is defined as:
public class ViewPage<TViewData> : ViewPage
I want to create my own custom ViewPage class, and inherit from the
generic type.
I tried:
public class MyViewPage : ViewPage<TViewDate>
I get a compile erro... more >>
Bitmap Object Class
Posted by eddyctam at 4/23/2008 4:30:01 PM
When creating a Bitmap object in C# with Bitmap temp = new Bitmap("(filename
here)";
What is put into memory? Is it just the bitmap info header or is the entire
bitmap loaded into memory?
If it is the entire bitmap loaded into memory, how can I access a bitmap
without loading it entirely i... more >>
delegate instance
Posted by colin at 4/23/2008 4:03:29 PM
Hi,
How can I use a delegate that I can set to call a non static function
but of any instance of the class ?
eg
class TypeTeader<T>
{
delegate T readDelegate<T>();
readDelegate<T> ReadFunction;
public TypeTeader(readDelegate d)
{
ReadFunction=d;
}
public void read<T>(Binary... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CS0246 (problem with user-defined namespace), C#.NET 2.0
Posted by Calico Tude at 4/23/2008 2:44:04 PM
I am new to C#, and created a simple Windows application in C#, just
to test the logic needed. This was a simple log-in which contained a single
namespace. Namespace included a class (in its own .cs file) containing
regular expressions to validate the format of the entries (user id an... more >>
invoke methods with params
Posted by codefragment@googlemail.com at 4/23/2008 1:17:49 PM
Hi
I want to use reflection to call a method which accepts "params
string[]" as an argument
I've searched this group and found a better idea than invoke, just
cast to an interface and then call the method
directly, but I would still like to know if this is possible, e.g.
something like the... more >>
Filtering Textbox input
Posted by Johnny_Jörgensen at 4/23/2008 1:03:21 PM
I've got a textbox where I filter the input in the KeyPress event to allow
only certain characters.
However, If the user cuts and pastes a text into the textbox, all text is
entered - not only the characters allowed. That doesn't surprise me, but
what is the best way of avoiding that and st... more >>
Please help understand virtual functions
Posted by cctv.star@gmail.com at 4/23/2008 12:47:07 PM
I have a base class that implements IDisposable.
Then I have a derived class, in which I write the following:
public override void Dispose() {
}
... only to get an error: cannot override inherited member ...Dispose()
because it is not marked virtual, abstract, or override. Why??? How a
f... more >>
Font not printing right on SOME printers
Posted by Al Meadows at 4/23/2008 12:40:14 PM
Have a weird one. The application works fine on some printers, doesn't on
others. The problem is that I have a one page report which uses several
fonts and fonts of varying size. The only one I am having trouble with is
the OCR font (see code below). On some machines, when they print to the... more >>
getting first element from array
Posted by CSharper at 4/23/2008 12:00:53 PM
I am trying to use the following; I have an array with bunch of values
in it. I am trying to find a value that contains part of the string I
am passing
eg
string[] array = {"help","Csharp rocks"}
if (array.Contains<string>("Csharp"))
{
//here I want to get the actual string like "Csharp ... more >>
resize events on windows form
Posted by Tarren at 4/23/2008 10:28:49 AM
Hi:
I am trying to get access to the event after a window has been resized. The
events I have been using SizeChanged and Resize all fire after any pixel
size change.
What I am trying to achieve is after the window has been dragged to a new
size (or maximized/restored) then I redraw the ... more >>
Mapping Network Drive in C#
Posted by greatbarrier86 at 4/23/2008 9:47:03 AM
Sorry about that previous one. I pressed enter too early.
How does one go about mapping a network drive in C#. i know you use
MapNetworkDrive in scripting languages, but i'm not sure how to do it in C#.
It doesnt seem like C$ would use MapNetworkDrive.... more >>
XML deserializer sees zero-length file, "root element is missing"
Posted by MC at 4/23/2008 9:41:52 AM
I have a couple of customers who are using a program that deserializes an
XML file, and on some files, the program fails to see the content of the
file -- treats it as zero length and reports "root element is missing" --
even though in Notepad the file looks normal.
Has anybody ever seen t... more >>
Windows Service & System.Timers.Timer production issue...
Posted by Ollie Riches at 4/23/2008 9:28:00 AM
I'm looking into a production issue related to a windows service and
System.Timers.Timer. The background is the windows service uses a
System.Timers.Timer to periodically poll a directory location on a
network for files and then copies these files to another location (on
the network) AND then up... more >>
Question on UserControl
Posted by Dom at 4/23/2008 9:03:24 AM
I've created a UserControl comprised of two controls, a DataGridView
and a DateTimePicker. I've done this because one of the columns in
the DataGridView will hold a date, and when the user clicks on the
column, the DateTimePicker will appear.
Now for the problem.
I want the main program to... more >>
run winform to console
Posted by CSharper at 4/23/2008 8:22:19 AM
I have written a winform application not I need to run the same app in
colsole mode without user interaction. Is there an easy way to do
this? I have all the information available as input in the seperate
file so....... more >>
Writing a DAL with TDD
Posted by Cramer at 4/23/2008 8:16:14 AM
I've finally gotton board with TDD (test driven development) and wow is it
effective! I went from sceptic to True Believer with my first effort.
My question: According to the various books and articles I have read about
TDD, a good unit test does not rely on the database or other such
exter... more >>
Auto-entry of a password in a modal dialog box of another application using C#
Posted by Steve at 4/23/2008 7:42:39 AM
Hi guys,
You know how annoying it is when Visual Studio keeps asking you for a
username and password to access TFS? I figured it would be easy to
write a little System Tray utility that could use SendKeys to enter
the username and password into the dialog box and click the OK button.
(I ultim... more >>
Include MDB file in Solution
Posted by Christian at 4/23/2008 6:30:57 AM
Hi, i include an Access Db in the solution of my project; now how can
i connect to DB?... more >>
Serialization into a text file
Posted by Michael at 4/23/2008 5:22:47 AM
Hello everybody,
I have a console app which runs some queries on a database and writes
the results into an excel file.
I'd like to build a GUI which would allow to give some parameters to
the console app, for example to forbid the execution of a query.
All queries are grouped into several... more >>
Tests: Assertion fails in a anonymous initialization method
Posted by Armin Galliker at 4/23/2008 12:51:01 AM
Hi
I wrote a test for a workflow. Unfortunately my assertions in the
eventhandler which I set up during initialization, fail in every case...
What's the problem??
[TestInitialize()]
public void MyTestInitialize() {
workflowRuntime.WorkflowCompleted += deleg... more >>
|