all groups > c# > november 2006 > threads for friday november 3
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
problem
Posted by a at 11/3/2006 10:25:00 PM
i would like to use Microsoft.ink in my C# application but VS dont show
ink after microsoft.
Can someone tell me why?... more >>
Comparing 2 files
Posted by Marco Shaw at 11/3/2006 9:17:23 PM
I've got 2 files with several entries. There are some entries that will be
contained in both files.
I only want to output the entries that are *not* found in each file.
What is the best way to do this with C#? There must be some .NET features
that will help me out here?
Marco
... more >>
Console application switches for argument values?
Posted by Dave at 11/3/2006 7:52:01 PM
Can you create your own switches or attributes for a console app to specify
specific arguments?
In other words, specify a /f to represent the "from date" and /t as "to
date"? if I need to supply both?
Thanks, Dave... more >>
Workaround for WaitHandle limitation?
Posted by Dave Booker at 11/3/2006 7:18:01 PM
I'm doing some analysis that is readily broken up into many independent
pieces, on a multicore machine.
I thought it would be best to just queue like 1000 of these pieces in the
ThreadPool, and let that object take care of running them in the background
on the machine's free cycles.
But ... more >>
Why can't I call a parameterless-constructor from a baseclass ?
Posted by AndreasW at 11/3/2006 6:50:14 PM
Hi,
internal static class Program
{
public class foo
{
private int _id;
public foo()
{
}
public foo(int _id)
{
this._id = _id;
}
}
pu... more >>
DatagridView vs ListView
Posted by --== Alain ==-- at 11/3/2006 5:35:21 PM
Hi,
I would like to know why a lot of people wants to work with ListView
control when DataGridView control already do the same thing ?
for example, in my case i would like to display spin controls,
progressbars controls, images, text, checkboxes,...
it's now more than 2 weeks that i try... more >>
Generics and Reflection
Posted by brian NO[at]SPAM digitaldirectinc.com at 11/3/2006 5:07:51 PM
I have an application that dynamically invokes methods based on
information in an XML file. In order to do this, I first have to make
sure that a method with matching parameter types exists.
All of the usable methods have generic parameter types, but most of the
methods are not generic themse... more >>
FTP Parsing directory listings
Posted by Gina_Marano at 11/3/2006 4:54:38 PM
Good day all,
Trying to get a listing of directories in a directory using FTP.
I get the following as a result:
"drw-rw-rw- 1 user group 0 Nov 2 18:39 testdir"
Anybody have a good regex expression or any ideas how I would parse
this to get "testdir" or any other method?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Why is Solution Configuration dropdown disabled?
Posted by Frank Rizzo at 11/3/2006 4:53:54 PM
In Visual Studio 2005, my Solution Configuration dropdown is disabled.
You know, the one that lists build configs(Debug/Release/etc...). How
can I enable it?
Thanks.... more >>
Getting the command line switches for processes.
Posted by Frank Rizzo at 11/3/2006 4:44:24 PM
I am looping through the array of processes returned by
Process.GetProcesses(). How do I get the command line parameters that
each of the processes was started with? Kind of like in the
SysInternals' Process Explorer?
I've tried Process.StartInfo.Arguments property but it is always empty.... more >>
Calling delegate from another thread do not allow me to modify controls on the form
Posted by German Koninin at 11/3/2006 4:09:14 PM
Hi there.
Quite self explained subject. I have a form where are few controls (edit
boxes mostly). and I need to make some kind of search on the background. for
that I made a separated class where I have a function that do actual search.
Olso I have a delegate function defined there. No I need... more >>
C# Forms are larger than expected on Dell Laptop
Posted by commanderjason NO[at]SPAM gmail.com at 11/3/2006 3:33:56 PM
I am working on a project where I am using bitmap graphics over my form
background and all controls.
In general the app looks fine. However there are a few users that have
a problem where the graphics and the controls do not line up at all.
I have a dell dimension with a widescreen that is e... more >>
Is it possible to keep page events from firing
Posted by TS at 11/3/2006 3:31:42 PM
i have an issue on page load when sometimes I want to quit processing the
page, but the other events get called like page_prerender and individual
controls' events get fired.
i want to not raise any events after this point in page load. how can i do
that without doing a request.end? (I don'... more >>
REALLY need help with SendMessage WM_GETCONTROLNAME
Posted by SQACSharp at 11/3/2006 3:23:34 PM
I'm trying to get the control name of an editbox in another window.
The following code set the value "MyPassword" in the password EditBox
but it fail to return the control name of the EditBox. I'm sure the
problem is the way i'm using the sendmessage API, the return string and
the lParam retu... more >>
writing to the 32-bit registry from a 64-bit application (that darn WOW6432Node)
Posted by Chris Mullins at 11/3/2006 3:14:47 PM
I need to write to the 32-bit registry, and need to do so from a 64-bit MSI.
It never occurred to me that this would be difficult...
I have an application that installs some 64-bit binaries for development use
in Visual Studio 2005. As such I want them to appear in the .Net References
menu w... more >>
Trying to understand the purpose of interfaces
Posted by jm at 11/3/2006 2:56:17 PM
I am having trouble understanding the purposes of an interface, even
though the concept of interfaces is around me all the time (user
interface, for example). I'm just not understanding software
interfaces.
Like anything else, it appears Interfaces are by design something that
requires docum... more >>
don't show error windows
Posted by Vicente García at 11/3/2006 2:19:38 PM
Hello all, First of all sorry for my bad English...
I am making up an application that can't show any error window (e.g. Can't
write to memory address) if any...therefore I wish destroy or manage this
type of windows..
Please, may anyone help me?
Thanks in advance...
Vicente.
... more >>
Adding a copy of a row in a DataGridView
Posted by michael sorens at 11/3/2006 1:40:41 PM
I tried to do a simple operation on a Windows Form in VS2005 inside a =
key_down handler:
if (e.Control && e.Shift && e.KeyCode =3D=3D Keys.V)
{
int selectedRowIndex =3D dataGridView.SelectedCells[0].RowIndex;
dataGridView.Rows.AddCopy(selectedRowIndex);
}
So when the user press... more >>
FORM VISIBLE QUESTION
Posted by at 11/3/2006 1:40:16 PM
How can i make my form invisible
public class Form1 : System.Windows.Forms.Form
static void Main()
{
Application.Run(new Form1());
Form1.Visible=false;
}
It returns
An object reference is required for the nonstatic field, method, or property
'System.Windows.Forms.... more >>
ArrayList without Boxing and UnBoxing
Posted by Peter Olcott at 11/3/2006 1:03:58 PM
How can I create an ArrayList in the older version of .NET that does not require
the expensive Boxing and UnBoxing operations?
In my case it will be an ArrayList of structures of ordinal types.
Thanks.
... more >>
lock() <-> exception question
Posted by Rainer Queck at 11/3/2006 12:49:00 PM
Hi NG,
what happens if a exception in a lock block occures?
lock(myObject)
{
dothis();
dothat();
}
lets assume, dothis() causes a exception, does this mean, I get a deadlock?
Regards
Rainer
... more >>
Isolated Storage, XML File Upload
Posted by U.C. at 11/3/2006 12:22:20 PM
Hello,
My client needs to collect data on a disconnected computer. I am
hoping I could store data in Isolated Storage as XML files and expose
later to a server (does anyone have experience with Isolated Storage)?
The solution I am looking for would be to have a connection string or
url i... more >>
Why am I getting out of range exception with these code?
Posted by Pucca at 11/3/2006 12:15:01 PM
Hi: Below is the error I got from the 2 lines of code below. I don't
understand why and how to correct it. The actionMenu.DropDownItems has 0
item in its collection at the time of the code. Thanks.
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred
in mscorlib.... more >>
Dictionary Throws OutOfMemoryException
Posted by O.B. at 11/3/2006 12:10:25 PM
I have an application that throws System.OutOfMemoryException when the
application has only allocated 1.3GB of RAM (according to the Task
Manager). I've repeated the operation several times and the exception
is thrown either when I'm calling Add or ContainsKey of a
System.Collections.Generi... more >>
cannot implicitly convert to bool
Posted by Nick at 11/3/2006 11:43:01 AM
I am trying to find out if particular array element contains InputOutput
value.
private static int FillParameters(DbCommand command, SqlParameter[] p)
{
int x = 0; //int initalize to hold zero
for (int i = 0; i < p.Length; i++)
{
... more >>
Add new datasource wizard
Posted by Andy at 11/3/2006 11:20:34 AM
Hi,
I made some changes to a business assembly I have. Now in the UI
solution, I'm trying to add new object data sources. For some reason,
the wizard isn't letting me select my business assembly... it just
doesn't show up.
Any idea how to get this assembly to show up again?
... more >>
Generic List - Split list
Posted by maxtoroq at 11/3/2006 10:08:26 AM
I know how to work the .FindAll method of the List class, but is there
a way to split a list into 2 lists, one containing all the items that
match a certain criteria and one that doesn't?
... more >>
Help: ArrayList, Sort, Menu, IComparer, Object, multidemensional
Posted by jtfaulk NO[at]SPAM eudoramail.com at 11/3/2006 10:00:19 AM
Re: ArrayList, Sort, Menu, IComparer, Object, multidemensional
I have a multi-dimensional arraylist, and I would like to sort one
level of it but not all. The multi-dimensional arraylist represents my
menu system, and I would like to sort the third level menu items only
and not the first two.... more >>
Capturing Carriage Return
Posted by senfo at 11/3/2006 9:45:52 AM
Hello all,
To help alleviate human error, I'm developing an application that uses a
barcode reader to fill in a value in a TextBox control. The barcode
reader is connected to the PC through the PS2 keyboard jack, so to
Windows, it's essentially just a keyboard. After the reader has
fini... more >>
The most efficient way to build a new data table based DataTable.Select result
Posted by Maxwell2006 at 11/3/2006 9:33:47 AM
Hi,
I am working with strongly typed datatables.
What is the most efficient way to build a new DataTAble based on the result
of DataTable.Select?
At this point I use a foreach loop to do the work manually. I am looking for
an automated way.
Thank you,
Max
... more >>
Terminating a socket listener thread in a loop
Posted by eliss.carmine NO[at]SPAM gmail.com at 11/3/2006 8:34:56 AM
Hi, I have an application where a listener thread has a while loop that
just calls Socket.ReceiveFrom over and over. When I close the app by
clickin on the X, the process doesn't die because there is still this
listener thread running. How do I terminate this thread as well?
Thanks
... more >>
How to raise by code the click event of a button in C#
Posted by polocar at 11/3/2006 6:49:16 AM
Hi all,
I'm writing a C# program, and I was wondering: is there a way to raise
by code the click event of a Button control, as if it was the user to
have clicked on it?
Thank you very much
... more >>
Create new Excel worksheet...
Posted by karthick at 11/3/2006 6:34:19 AM
Hi,
I am using Asp.Net 2.0 with C#.
I am looking to export two different Gridviews in one Excel file but as
two different tabs, which means I should be able to create a new
worksheet on the fly. How can I do that ?.
TIA.
Karthick
... more >>
how to load file from current directory into WebBrowser control?
Posted by MrNobody at 11/3/2006 5:37:01 AM
I want to load a document which would be residing in the same directory as
the application so I pass in a string to WebBrowser control which has no path
information- normally doing this with regular File IO it knows to go to
current directory but not WebBrowser. What do I need to change? Is th... more >>
Internal access modifier is not working the way I thought it would.
Posted by JT at 11/3/2006 4:30:17 AM
Here is the overall structure I will be referring to:
End-program
ProvideWorkFlow.dll
Forms and methods that properly manipulate calls to methods in
AccessUtils
AccessUtils (a web service)
Hide.dll
methods and data I want to remain hidden
I have a DLL, Hide.dll, that contains m... more >>
insert command sql server 2005
Posted by Iwan Petrow at 11/3/2006 4:12:34 AM
Hi,
I do this - take some data with sqldataadaptor (at this moment
2000rows) in fill datatable.
For each two rows do some calculations and save data to the database
with insert command.
(the data which I insert are 5 int values for each two rows - so
2000*1999 insert commands)
In this way... more >>
Would threading be any use here?
Posted by Keith at 11/3/2006 3:15:50 AM
I'm writing an application that is somewhat similar to Visual Studios
GUI Designer.
Now my problem lies in that sometimes when there is a large number of
forms read in from file, that there seems to be a serious lag in
painting the controls. This doesn't always happen, but once the lag
happe... more >>
Newbie question about Listbox
Posted by garyspam NO[at]SPAM gmail.com at 11/3/2006 2:04:01 AM
Hi,
I want to create my own custom control based on the Listbox. I
basically want to add a couple of attributes and methods to the Items
collection within the Listbox class.
I know that i can do
MyNewClass : Listbox
But how do I add things into the Items collection
Cheers
Gary
... more >>
Best way to get MX record from C#
Posted by C.Levasseur at 11/3/2006 1:51:34 AM
Hi, I would like to know what's the best way to get a DNS MX record from C#.
The Win32 DnsQuery() API seams to do the job but is there a C# (.Net
framework) equivalent? If not, is P/Invoke my only solution? I'm not that
familiar with P/Invoke... and DnsQuery has a lot of structures (in C). If ... more >>
Printer Ink Status
Posted by up3umrmuofnz3pd NO[at]SPAM jetable.org at 11/3/2006 12:01:01 AM
Hi guys,
I'm working on a small desktop publishing software project where I need
to display the default printer's ink status/level in the status bar of
the main form. For the past 2 days I've been trying to find a way of
getting the printer ink level from the printer but I haven't been able
t... more >>
Disable events temporarily
Posted by Marc Solé at 11/3/2006 12:00:00 AM
Hello everybody,
I have a little "problem".
I have a DataGridView that is loaded automatically by code sometimes, and
manually by the user other times.
When the user introduces data in the DataGridView, there are some events
that control the introduced data for any errors the user can d... more >>
Interface to C++ (unmanaged) DLL and std::string or std::wstring
Posted by Howie Meier at 11/3/2006 12:00:00 AM
Hallo NG,
i can call functions from a native C++-dll wich uses "const char *" as
stringtype via P/Invoke without problems. Is there an easy way to call
functions that uses std::string or std:wstring in the function call ?
Has someone a tiny example how to access such a DLL with an
IJW-Inter... more >>
|