all groups > c# > february 2006 > threads for sunday february 26
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
Add an item to a ListBox from a ComboBox
Posted by Sam at 2/26/2006 11:22:02 PM
Hi !!
I have a ComboBox and a ListBox on my form. The Combobox is filled at
the form Load.
After selecting an item from the combobox the item should be added to
the listbox with the text and the value.
I am not able to do so. Please will anyone help me out of this.
Sam
... more >>
DAL Standard or Best Practices
Posted by Jeff S at 2/26/2006 11:06:55 PM
Just wondering if it's standard practice to make DAL classes STATIC (in a
Windows Forms). Doing so would make sense to me because DAL methods are
typically called quite frequently - certainly the case for DAL "Helper"
classes - plus DAL objects/classes generally maintain no state. Seems like a... more >>
What is Instrumentation?
Posted by Water Cooler v2 at 2/26/2006 10:56:52 PM
What does one mean by instrumentation when one talks in the context of
software development best practices?
<QUOTE
src="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/AOPArticle.asp">
Contrary to popular belief, AOP can be useful to solve problems other
the... more >>
Windows Classic style
Posted by Jesper at 2/26/2006 10:55:27 PM
Is there a way to see if an XP user is using Windows classic theme as desktop
appearance. Also how can I detect operating system. I.e. prompt for version
of windows.
Best regards and thanks
Jesper, Denmark.... more >>
try catch - "Variable declared but never used" ?
Posted by What-A-Tool at 2/26/2006 9:35:54 PM
In the following code, "catch" is underlined in blue, and the error "the
variable fx is declared but never used" is displayed when I mouse hover over
it.
Am I doing something wrong, or do I just ignore it?
private void btnCalc_Click(object sender, System.EventArgs e)
{
try
... more >>
BMove won't work in Exchange if using permanenturl as source / des
Posted by Luciano Resende at 2/26/2006 9:26:26 PM
I'm trying to perform a webDav call to move selected messages into a
destination folder and does anybody know why BMOVE will work when i use the
regular folder name as the request parameters, and it won't work when i use
the folder permanentURL ?
Below you can see the two requests, the fir... more >>
Trouble with Identically-Named Variables
Posted by Robert Thompson at 2/26/2006 8:25:04 PM
Hello,
I'm running into a strange problem involving identically-named
variables in multiple projects. I'm using Visual Studio 2005, and have
a solution with three projects under it. Two of the three projects
have variables with the same name. These variables are both global to
their class.... more >>
slow system.net.mail mailmessage
Posted by JoshP at 2/26/2006 8:13:26 PM
Hi all, I am using an asp.net page to send e-mail to an internal exchange
server. The code completes, but the mail doesn't get sent from webserver for
at least a minute or more. Is there any reason why the e-mail is delayed?
My code to mail is below:
public void SendEmailToTechnician... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DirectX and Design buttons
Posted by Daniel at 2/26/2006 7:27:43 PM
Hey guys
Anyone know if it is possible to add a button at design time and place it
over the top of a directx window?
For example checkboxes, standard buttons, menus etc?
If so how?
... more >>
How to get invocation list for an event.
Posted by Peter Rilling at 2/26/2006 6:11:05 PM
How can I get access to the invocation list for a multicast delegate (i.e.
an event) at runtime?
Suppose that I have a reference to a class that has an event. I would like
to be able to enumerate through the list of registered handlers. I can see
that a MulticastDelegate has the GetInvoca... more >>
Drawing text on an arc.
Posted by AMP at 2/26/2006 5:42:16 PM
Hello,
I am looking for sample code to draw text on an arc. I see the
stringFormat.FormatFlags enum for vertical but nothing for arcs. I
could do it with lenthy trig algorythm that would take in all the font
metrics,but if someones got something simpler, I would appreciate it.
Thanks
Mike
... more >>
Webapplications quits without matter in ASP.NET 2.0
Posted by Sebastian Loncar at 2/26/2006 5:39:32 PM
Hallo NG,
i've big online game with a lots of requests per second and it uses a lot of
memory. the game runs as an ASP.NET application and holts all the game data
in the memory. The game has 1600 players.
Since a changed the server (from Windows 2003 32 Bit, 2GB RAM) to a new
Server "Windo... more >>
MouseClick vs. Click?
Posted by Peter Rilling at 2/26/2006 5:12:03 PM
What is the difference between the MouseClick and Click events?
... more >>
Adding an icon to Listview items
Posted by tony NO[at]SPAM dreamconcepts.net at 2/26/2006 4:49:47 PM
I am populating a listview from a text file. The items that are added
I would like to place an icon with them. I have a imagelist control
setup with bitmaps. When I run the program there is a spacer in the
far left column for the icon but no icon. I feel like I am missing a
step, not sure wh... more >>
How to include external file ?
Posted by Oleg Subachev at 2/26/2006 4:43:33 PM
I need to include external file into C# source code.
How to perform this ?
Oleg Subachev
P.S.
I need C# equivalent of Delphi's {$INCLUDE ...} directive.
... more >>
Passing arguements by reference
Posted by Andrew Bullock at 2/26/2006 4:30:12 PM
Hi,
I have two classes, A and B,
B takes an A as an argument in its constructor:
A a1 = new A();
B b = new B(a1);
///
A a2;
public B(A aa)
{
a2 = aa;
}
However, I figured that I could reduce memory usage and increase
performance by passing aa by reference.
How do... more >>
wrting a MAPi server/provider
Posted by MR at 2/26/2006 1:49:24 PM
Is there a document or example that show how to write a MAPI
server/provider?
Is there was way to write it in .NET?
this will be for an application that runs on XP but needs to exposes a third
party store of contact information to an client application that can only
get data from a MAPI sour... more >>
Best way Copying DataRow from one table to another table?
Posted by Mike9900 at 2/26/2006 11:18:28 AM
What is the best way to copy DataRow from one table to another table,
without copying its structure, which means copying only its data.
--
Mike... more >>
Accessible object from any form
Posted by DJINJA.NET at 2/26/2006 9:27:01 AM
Hi, I know this question has probably been answered a thousand times,
but I don't see the code to do it.
How can I access an object from any forms I create ? I tried creating
the object on my first form, and then pass that form as parameter when
creating all my other forms, and get it by
"thi... more >>
simple database question
Posted by mensuur at 2/26/2006 7:24:57 AM
hi,
i have a webpage that contains a DataList control. it retrieves the data
from a database. if one of the entries contains an HTML tag eg <b></b> it
will appear bold on the page. i want people to enter data into the database
from the website via a multiline textbox. will the enterer have ... more >>
Conversion signed/unsigned
Posted by yves at 2/26/2006 5:46:35 AM
Hello,
I'm trying to check if only the lsb 8 bits of an integer are used.
bool Func(int x)
{
if ((x & 0xFFFFFF00) == 0)
{
return true;
}
else
{
return false;
}
}
This actually comes down to checking if an integer is in the range
[0,255]. Alternatively I could ... more >>
Resource could not be found in class
Posted by Dave at 2/26/2006 5:15:27 AM
Whenever I try to load a bitmap using the standard code:
Bitmap myBitmap = new Bitmap(this.GetType(), "bitmapResourceName")
I always end up with an error of the form "Resource "bitmapResourceName"
could not be found in class MyClass".
This seems to be something to do with having renamed eit... more >>
Entering data
Posted by mensuur at 2/26/2006 3:49:27 AM
hi,
i want to make a very simple guest book for my website. i have an MS access
database with a table and the following fields: ID (autonumber), name (text),
subject (text), message (memo) and date entered (date/time). i have a form as
well, on a web page, with a textbox for each of those fie... more >>
Interventi.Properties.Settings Connection String
Posted by spooke at 2/26/2006 2:50:37 AM
Application.Properties.Settings a = new Interventi.Properties.Settings();
a.InterventiConnectionString = "Data Source=" + txtIP.Text.Trim() +";Initial
Catalog=Interventi;Persist Security Info=True;User ID="+
txtUTCOD.Text.Trim() +";Password=" + txtUTPWD.Text.Trim();
Property or indexer cannt be ... more >>
Not showing Certain members of the inherited class
Posted by Mike9900 at 2/26/2006 12:39:28 AM
I am inheriting from a text box control and does not want the client see some
of the methods be invisible to the clients.
Mike... more >>
MDI Forms - help
Posted by Timothy V at 2/26/2006 12:00:00 AM
Hi,
I have an MDI form that has a number of child forms which are all maximized.
How do I make an MDI Parent that does not have the menu bar (with the
max/min/close buttons for the child)?
Thanks in advance,
Tim.
... more >>
Good practice for exception handling
Posted by John Smith at 2/26/2006 12:00:00 AM
When implementing exception handling which one of these two alternative
ways of exception-handling is the better one?
******************************************************
Alt1)
******************************************************
try
{
codeline1; //throws exception1, exceptio... more >>
Adding webcontrol to a Winform (how?)
Posted by Ubergeek at 2/26/2006 12:00:00 AM
I'm trying to creat a little browser executable, I have added the
WebControl to my toolbox, and I have a WinForm ready to place the
control on, but the control is disabled - what gives?
Simple induction tells me that maybe, Webcontrols can only be used on
WebForms - but if this is the case,... more >>
OpenGL
Posted by Dragon at 2/26/2006 12:00:00 AM
How can I use OpenGL in C# ?
... more >>
|