all groups > c# > february 2006 > threads for saturday february 11
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
Carriage return
Posted by Jlaz at 2/11/2006 11:58:21 PM
I am new to C# and I am writing a small Windows app that consists of a Label
and Button. I've written code that displays the following in the Label:
---- ----
2004 $1,200.00
2005 $1,260.00
2006 $1,323.00
2007 $1,389.15
2008 $1,458.61
2009 $1,531.54
... more >>
How long is MCSD good for?
Posted by Brett Romero at 2/11/2006 10:57:36 PM
How long is the MCSD for the 1.1 framework going to be good for? The
MCPD for the 2.0 framework is now available and I wasn't sure if the
MCSD will drop off at some point. I can't find a reference to this on
Microsoft's website.
I'm assuming what ever time frame applies to the MCSD will also... more >>
directx or opengl
Posted by Jessica Weiner at 2/11/2006 10:33:25 PM
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
... more >>
Events seem to execute on a new thread - why?
Posted by Erik at 2/11/2006 10:30:44 PM
First, I am not creating any new threads via invoke or any other intentional
means. As far as I know, there is just one thread, which is the main
thread.
My windows form class creates a new DeviceController() object which
initializes a serial port and defines a serial port event handler, whic... more >>
Database Driven Object Factory - Am I Nuts?
Posted by Jeff S at 2/11/2006 9:46:27 PM
I'm relatively new to non trivial OOP programming and recently stumbled
across the idea of Factory classes that can create objects at runtime. I
know we can hard-code class definitions for use by our Factory classes...
just wondering if it's a common practice to drive class definitions from a ... more >>
Inheritance question
Posted by relient at 2/11/2006 8:56:49 PM
I am trying to understand the code below but I need some affirmation of
the following first: The reason I inherit the "Base" class method
implementation instead of the "Derived" class method in the class
"Third" is because the class "Derived" method has no implementation
because it's abstract. A... more >>
Scrolling text - like a marque
Posted by UJ at 2/11/2006 3:57:39 PM
Does anybody know how to do scrolling text like the HTML marquee? I need to
be able to set the text programmatically. I have to do it two ways - across
the bottom of the screen and also scrolling up the screen for news.
I can use HTML but it's not really smooth. I wonder if there is a control... more >>
Unmanaged C++ DLL use in C#
Posted by Nuno Magalhaes at 2/11/2006 3:44:44 PM
I made a simple DLL in C++ application and exported the
fnQuickTimeWrapper that returns the value 42.
I the C# application I do the following:
[DllImport("C:\\Work\\QuickTimeStreamer\\QuickTimeWrapper\\Debug\\QuickTimeWrapper.dll")]
private static extern int fnQuickTimeWrapper();
When I try t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ComboBox Blank Entry
Posted by Steve B. at 2/11/2006 2:32:31 PM
Without adding whitespace to the ComboBox datasource is there a way I can add
a blank entry or, a reset entry, to the ComboBox dropdown
Thanks
Steve... more >>
how ti sort hashtable by Value
Posted by max sharma at 2/11/2006 1:43:28 PM
Hi all,
I am using a hashtable for my application. Its similar to word count
application. How can I sort the hashtable w.r.t.
the VALUE and not the KEY. The sample data of the table is given below
which is sorted according the URL as in Dictionary:
www.webroot.com (11)
www.webshots.com (1)
ww... more >>
Making C++ DLL to use in C#
Posted by Nuno Magalhaes at 2/11/2006 1:42:58 PM
Can I code all I want in a C++ DLL (say sockets or files) and then
import and use in C# using P/Invoke?
Are there any good samples on how to code a DLL (using .lib and .h
files) and then use in my C# application?
I checked www.pinvoke.net but I can't find any DLL source file written
in C++ that... more >>
Seralisation the final question
Posted by Daniel at 2/11/2006 12:54:51 PM
Hi
i want to be able to check if information read that came from over a socket
is serilisable, if it isnt i want to handle it differently. Basically i am
trying to make a generic receivedata function that i can send any form of
data over the wire too and it will handle it appropriately.
... more >>
C# DataSet question please
Posted by irnbru irnbru at 2/11/2006 12:54:27 PM
Hi I am learning ADO.NET, I use DOTNET 2003, I wanted to know when you
create a dataset objet and fill it with data from Data Base with
DataAdapter fill method, the fill method only creates a datatable with
data but it doesn't pass the structure of the table from the database
(primary key et... more >>
autogenerate columns in datagridview
Posted by hazz at 2/11/2006 11:56:59 AM
in a databound scenario I have a database column value that is of type
varchar with 3 discrete text values.
Binding to this table column with autogenerated columns displays the text
values in a DataGridViewTextBoxColumn column type.
I would like to display images as follows but I need to do ... more >>
switch vs Select Case
Posted by ME at 2/11/2006 10:46:38 AM
In C# the following code generates a compiler error
("A constant value is expected"):
public void Test(string value)
{
switch (value)
{
case SimpleEnum.One.ToString():
MessageBox.Show("Test 1");
break;
case SimpleEnum.Two.ToString():
MessageBox.Show("Test 2");
break;
case SimpleEnum.Th... more >>
beginners question API
Posted by Hello everyone at 2/11/2006 10:16:28 AM
Hello everyone, Ive been trying to get this code to work for very long
now, but I havent been able to catch the problem. Im trying to use the
SendMessage method but when I execute the program nothing happens. Thats
the best response Ive gotten from it so far, other times it mdoesnt
compile. It... more >>
Asynchronous socket server
Posted by Macca at 2/11/2006 9:23:27 AM
I am writing an application that uses asynchronous sockets to get data over
ethernet from embedded devices, up to 30 concurrent devices.(These devices
are written in C).
My application implements an asychronous socket server while the embedded
devices are the clients
When the data comes ... more >>
Operation not allowed on non-connected sockets
Posted by Curious at 2/11/2006 7:00:37 AM
Hi,
I am using the following code to transfer messages between client and
server.
Upon running that code I am getting the following error message in
method ReceiveFromClient on line Stream s =....
"An unhandled exception of type 'System.InvalidOperationException'
occurred in system.dll
... more >>
button images.
Posted by Jessica Weiner at 2/11/2006 3:15:08 AM
I need buttons in my application that have a jpeg skin. However, I dont want
to include the jpg file in my distribution package. How can I incorporate
the jpg into c# code? Maybe by converting it to Hex code? Please let me
know.
Thanks.
Jessica
... more >>
button images
Posted by Jessica Weiner at 2/11/2006 3:14:14 AM
I need buttons in my application that have a jpeg skin. However, I dont want
to include the jpg file in my distribution package. How can I incorporate
the jpg into c# code? Maybe by converting it to Hex code? Please let me
know.
Thanks.
Jessica
... more >>
Accessing an SQL Server database file
Posted by AlexDP at 2/11/2006 3:09:27 AM
My program has to access an SQL Server DB file that is in the same folder as
the executable. i dont want to setup a server. i was able to do this on my
own computer, the program would access any sql server db file without it
being attached to the server. When i take it to another system it fai... more >>
jpeg icons
Posted by Robert at 2/11/2006 3:08:06 AM
I need buttons in my application that have a jpeg skin. However, I dont want
to include the jpg file in my distribution package. How can I incorporate
the jpg into c# code? Maybe by converting it to Hex code? Please let me
know.
Thanks.
Jessica
... more >>
C# DataTable Question
Posted by Jason Huang at 2/11/2006 12:00:00 AM
Hi,
C# Windows Form project.
string strQry="SELECT * FROM Customer WHERE CustName='John Doe' ";
SqlDataAdapter MySqlDataAdapter =new
SqlDataAdapter(strQry,rConn.ConnectionString);
MySqlDataAdapter.Fill(MyDataSet,"MyDataTable");
And the MyDataTable now has a Row like this:
00000001 John D... more >>
ReportViewer and ActiveX
Posted by Soren S. Jorgensen at 2/11/2006 12:00:00 AM
Hi,
I need to (somehow) show the ReportViewer (Microsoft Reports) in a ActiveX
control.
I got a 3rd. party app (SAP Business One) where I need to use the
ReportViewer and the only way to show the control (using SBO's internal API)
is through an ActiveX control.
I see no posiblity to "... more >>
button images..
Posted by Jessica Weiner at 2/11/2006 12:00:00 AM
I need buttons in my application that have a jpeg skin. However, I dont want
to include the jpg file in my distribution package. How can I incorporate
the jpg into c# code? Maybe by converting it to Hex code? Please let me
know.
Thanks.
Jessica
... more >>
c# Crystal Report SetParameter question
Posted by Jason Huang at 2/11/2006 12:00:00 AM
Hi,
In my C# windows form project, it has a form frmReport and a crystal report
rptCustomer.
The rptCustomer has 2 parameters, CustID and CustName.
Saying now in my frmReport, I build a DataSet rDS on the runtime and it has
a DataTable MyTable which has data like this:
00000001 John Doe
... more >>
|