all groups > c# > november 2007 > threads for friday november 30
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
binding a listbox
Posted by Michael Powe at 11/30/2007 11:27:38 PM
Hello,
I want to bind a list box to a collection that will be pulled
dynamically from a web service.
The data that will be pulled will consist of a name and id. I want my
listbox to display the name but, when a name is selected, pass the id
as the value.
i've read and googled but i can... more >>
default background color name?
Posted by Slickuser at 11/30/2007 8:08:44 PM
What's the equivalent color of the default background in C#?
I want set the a circle to that color after I draw it.
Thanks.
C# color link
http://www.flounder.com/csharp_color_table.htm... more >>
TreeView or DataGridView ?
Posted by colin at 11/30/2007 7:48:27 PM
Hi,
I wish to display and edit 3 collections of different object types,
each object type also has a collection of the other 2 types,
such that if one object contains another then the reverse
is always true, a many to many relationship.
the objects are 3d objects making up a wire mesh model,
... more >>
Aborting Threads
Posted by AdrianDev at 11/30/2007 6:43:57 PM
Hi,
I have a thread which I call like this:
// Allocate a new thread containing class with the host
getInfoThread git = new getInfoThread(host);
// Create the thread and call the Go method
new Thread(new ThreadStart (git.Go)).Start();
// Sleep for 5 ... more >>
C++ grammar for ANTLR & C# output
Posted by Rami at 11/30/2007 6:35:58 PM
Hi,
I'm looking for ANTLR input file with C++ grammar which is configured for C#
output. Does anybody know where can I find it?
... more >>
WiFi signal strength in vista
Posted by Maarten Weyn at 11/30/2007 5:52:44 PM
Is there a way to get the signal strength of all surroundin access points in
c# on a vista pc?
regards
Maarten Weyn
... more >>
Dyanamically referring to an object instance
Posted by RSH at 11/30/2007 3:49:11 PM
Hi,
I have a situation where I have multiple objects created from concrete
classes:
// Concrete implementations of the Abstract class ApprovalChain
MarketingApprovalChain MktgAppChain = new MarketingApprovalChain();
AccountingApprovalChain AcctAppChain = new AccountingApprovalChain();
I... more >>
How do you check to see if an object works in vs2005 standard?
Posted by Andy B at 11/30/2007 3:07:36 PM
I have an object i want to test before putting into real code. How do i do
that in vs 2005 standard?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Need advice on working with coarse-grained objects
Posted by BillG at 11/30/2007 2:22:27 PM
I am used to dealing with recordsets and I am using a coarse-grained object
and need to know if I am doing it correctly.
I have a class named Activity which represents an event being planned (golf
outing, dinner dance etc.). The Activity hold a list of Registrations which
represents some c... more >>
loop over the static variables of a struct?
Posted by sloan at 11/30/2007 12:47:23 PM
Is there a way to loop over the static variables of a struct?
public struct FunFoods
{
public static readonly Guid GRANOLA = new
System.Guid("00000000-0000-0000-0000-000000000101");
public static readonly Guid TRAILMIX = new
System.Guid("00000000-0... more >>
Simple question about c-tor and initializing
Posted by TonyJ at 11/30/2007 12:38:19 PM
Hello!
Assume I have the two classes Test1 and Test2. They are very similar.
Test1 initialize the instance variable in the C-tor but
Test2 initialize the instance variable without using the C-tor.
Both classes can be seen below.
In this simple example it doesn't matter because Test1 is the ... more >>
Listview control / selected blue line
Posted by Finn Stampe Mikkelsen at 11/30/2007 12:30:15 PM
Hi
I'm writing an application in which i have a listview. I'm using Hottracking
/ Hoverselection properties set to true. This gives me a control with each
item looking like a hyperlink, but is there any way to disable the typical
blue 'selected line' so that the only visible indication of w... more >>
Static Variables.
Posted by Gobinath at 11/30/2007 11:39:03 AM
Hi,
I have a pretty basic question.
I have a C# control with lots of classes and I need few instances(manager
classes) shared by all the classes in the conrol. So I define a Static Class
and it works OK.
Now When I want multiple instances of the control in the same application
and eac... more >>
Enumerating XML Attribute Nodes
Posted by James at 11/30/2007 10:19:44 AM
Hi,
I am trying to optimize some c# code that contains lots of code such as
String name = null;
try
{
name = myXMLElement.Attributes["name"].Value;
}
catch
{
}
[OK - I admit it - It's my code!]
The code needs optimizing, and I suspect throwing exceptions like this is
t... more >>
How do I get the assembly name at compile time?
Posted by Dave at 11/30/2007 10:12:00 AM
Surely it must be possible to access an assembly's name (ie the name of the
..exe or .dll file to which it will eventually compile) at compile time. All
the information is available within VS, but how do I get at it?
(Actually what I'd like to do is get the assembly name of a referenced
ass... more >>
Create Permutations from Dictionary<string, List<string>>
Posted by Assimalyst at 11/30/2007 9:13:19 AM
Hi
I have a Dictionary<string, List<string>>, which i have successfully
filled. My problem is I need to create a filter expression using all
possible permutations of its contents.
i.e. the dictionary essentially creates the following array:
Key Value
Column1 1
Column1 ... more >>
Questions about porting C++ dll to C#
Posted by chrisben at 11/30/2007 9:07:01 AM
Hi,
I have some codes in C to do some complex calculation. In order to use it in
C#, I wrap the C codes using C++ and create a unmanged dll, then my program
will call the dll from the C#.
The application has been working ok. However, it is not convenient for me to
debug the codes since a... more >>
XMLReader file used by another process
Posted by heday60@gmail.com at 11/30/2007 8:19:39 AM
I've got this application that watches a directory for XML's and then
parses them into a DB. It then moves them based on if the XML was
succesful or a bad XML...
foreach(FileInfo file in dir.GetFiles("*.xml"))
{
try
{
ParseXML(file.FullName);
}
catch
{
FilesToMoveError.Add(file... more >>
datagrid
Posted by DLI at 11/30/2007 7:58:10 AM
I have a datagrid that displays related child rows from a master table.
I have set the datagrids datasource to the relation I set up in the main
dataset
I created a dataview in order to keep all the form's controls in sync
This all works great EXCEPT
I would like to set the datagrid so... more >>
Threading and Instances
Posted by Trecius at 11/30/2007 7:26:00 AM
Hello, Newsgroupians:
I'm a little confused when it comes to threads in C#. Here's what I'm
trying to do...
I have a List<> containing a set of MyPoint(s)...
public struct MyPoint
{
int x;
int y;
int val;
}
class MyClass
{
List<MyPoint> m_list = new List<MyPoint>();
... more >>
Odd ObjectDataSource Issue with Generic List of objects
Posted by fig000 at 11/30/2007 7:23:30 AM
Hi,
I am new to C# and ObjectDataSources and have encountered what I
think is a strange problem. I have a web page that has a formview on
it. The formview is set to insert mode in the page load. The
ObjectDataSource for the form has a procedure for inserting. Ths
procedure adds the new rec... more >>
XmlSerializer List<T>
Posted by Caspian at 11/30/2007 6:39:13 AM
can anyone help with this problem, it seems to fail when I try to
initialise the XMLSerializer.
I'm getting a "There was an error reflecting type ... "
innerexception: "Cannot serialize member
'CommercialWebServices.DataAccess.ResponseStructures.RequestParameters.Parameter'
of type 'System.... more >>
difference is between using ThreadStart and delegates instead of using BeginInvoke
Posted by robparr@hotmail.com at 11/30/2007 3:13:04 AM
Hello, hopefully someone can help me.
I am reading and learning steadily about threading and asynchronous
programming, which to me sound like the same thing. At the moment I am
not sure what the difference is between using ThreadStart and
delegates instead of using BeginInvoke. Can both of t... more >>
listviewitem
Posted by plork at 11/30/2007 3:07:12 AM
hi all can anyone show me how i add a button to each row in a
listview?
i'm adding each row like this but i need to add a button as well
lv = new ListViewItem(id);
lv.SubItems.Add(xx);
lv.SubItems.Add(yy);
m_lstView.Items.AddRange(new ListViewItem[] { lv });
when i do AddRange i nee... more >>
Resources: How to retrieve localized resource?
Posted by Axel Dahmen at 11/30/2007 3:06:01 AM
Hi,
I've created a class library assembly containing several string resource
files, like:
- TableColumns.resx
- TableColumns.de.resx
- General.resx
- General.de.resx
I don't know how to address each of these having automatic language
fall-back enabled.
If I write...
new
Res... more >>
Running command line from aspx page
Posted by jetoo at 11/30/2007 2:16:45 AM
Hi there,
i'm trying to run a powershell script from a aspx page.
Here's the code:
//Powershell arguments
String powershell =3D "C:\\WINDOWS\\system32\
\windowspowershell\\v1.0\\powershell.exe";
String args =3D " -PSConsoleFile \"C:\\Program Files\
\... more >>
converting tableAdaptor queries into stored procs
Posted by Andy B at 11/30/2007 1:50:33 AM
Is there an easy way to convert tableAdaptor queries into stored procs
without messing up the dataTables in the dataSet or losing the queries
themselves?
... more >>
|