Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score How to trap Delete keypress?
Robert W. - 13 May 2006 11:03 PM - 4 messages
In my WinForms app I wanted to implement a Read-Only textbox.  I didn't like the appearance a textbox takes on when the ReadOnly property is set true so instead I trapped the KeyPress event with a generic event handler: ...
Score Temporary form
Stefano - 13 May 2006 9:41 PM - 2 messages
Hi, I want that when an application opens a form of information it is opened for 5 second ones and then it is closed automatically leaving opened the application. Can you help to make that me? Thanks ...
Score Refresh UserControl drawing elements
Executor - 13 May 2006 7:16 PM - 2 messages
Hi you all, I have created a usercontrol with a filledEllipses on a filledRectangle, using this Paint event: private void myControl_Paint(object sender, System.Windows.Forms.PaintEventArgs e) {    SolidBrush aBrush = new SolidBrush(this.BackColor);    e.Graphics.FillRectangle(aBrush, 10,10, this.Width - 10, this.Height ...
Score A question about understand inheritance, virtual and override
Tony Johansson - 13 May 2006 6:09 PM - 3 messages
Hello!! Below I have  three classes. They are Base, Sub and Test. Sub is inheriting from Base. The main issue here is to pass the reference of Test up to the base class Base. This work but I hope that somebody can explain more about why this works. ...
Score IIS and Server 2003 Web Edition
Marc - 13 May 2006 5:45 PM - 3 messages
Hi, The last week I just started using C# to build an asp.net app. Using IIS 5.1 locally is not a problem but I'm wondering what the long term cost will be when I host my own website. ...
Score socket.available (socket closed)
Dirk Reske - 13 May 2006 2:47 PM - 5 messages
Hello, in msdn stands, that the socket.available property can fire a SocketException when the remote machine has closed the connection. why can? I have to check the number of receivable bytes bevor I receive them, but when remote closes the connection, it ends in an endless loop... ...
Score GDI+ or etc
PointMan - 13 May 2006 1:48 PM - 2 messages
i'm looking for some stuff using GDI+ user interface like.... using mac os x tiger it is like this -when window open, wallpaper wave. -windows flip over can i make this thing using GDI+?? could you give me some info..plz... ...
Score custom configuration section in app.config
npaulus - 13 May 2006 1:38 PM - 2 messages
Hi I am trying to experiment with a custom configuration section in app.config but it just doesnt work. app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections>   <section name="Regions" type="ConfigSectionHandler.MySectionHandler, ...
Score ConfigurationManager doesn't exist
Paul Cheetham - 13 May 2006 12:59 PM - 3 messages
Hi, I have converted a project from VS2003 to VS2005, and I have an error which I can't seem to solve. I was using Configuration.AppSettings to read values from the application configuration file, but got a warning that this has now been ...
Score windows Key + R and Windows Key + L
PointMan - 13 May 2006 11:54 AM - 4 messages
i'd like to know that what execution file is for windows key + R and windows Key + L is it exsiting file on windows xp?? if so, where can i find this? tell me about this file name and folder path?? ...
Score How to make web service secure
jack - 13 May 2006 4:58 AM - 5 messages
Hi all I have have a web service in c$ which was a pretty easy task, but the task seemd to be difficult when came to security.. i have had a vb6 application which sends xml file and gets a request in ...
Score Exceptions that Cannot be Caught
thomson - 13 May 2006 4:30 AM - 4 messages
Hi All,                 Are there any sort of exceptions that cannot be caught by the Runtime, Any Insights? Thanks in Advance thomson ...
Score great book to start learning C
Carlos Alberto - 13 May 2006 4:16 AM - 5 messages
Hi developers; I would like to get some help about this, I have bought a lot of books (the most of them advanced books) and I would like to find a basic starting point to learn C; also I'll really appreciate if you send me a list ...
Score Error when trying to use StreamReader to read from a NetworkStream
Al Wilkerson - 13 May 2006 4:12 AM - 3 messages
Hey, Has anyone ever got a "Unable to read data from transport connected" message after reading data from a streamreader composed of a networkstream. For example: Server TcpListener tcpServer = new TcpListener(localAddr,port); TcpClient tcpClient = new TcpClient() tcpClient = tcpServer.AcceptTcpClient(); ...
Score How can I do to access to command line?
Carlos Villaseñor M. - 13 May 2006 2:35 AM - 2 messages
Hi everybody! I need to execute csc.exe to do some settings to a library, but I don´t found how in the visual studio help. Regards Carlos Villaseñor M. ...
Score textbox to combobox
C# newbie via DotNetMonster.com - 13 May 2006 1:29 AM - 5 messages
i am useing 1textbox,1combobox and 1 button i am trying to make it so when i hit button1 the text in textbox1 will transfer to combobox1 ...
Score NullReferenceException on an already instanciated object
eljainc - 13 May 2006 12:00 AM - 5 messages
Hello, I have a perplexing situation. I have the following set of code, which depends on a scheduling library from GravityBox software (Schedule.NET 2005). Nobody in their forums has been able to help me resolve this problem: scheduleDomainController1.ConnectionString =  ...
Score ADO C# VB Difference
Tina - 12 May 2006 11:55 PM - 11 messages
In vb we say.... Dim theRow As dsLogin.CustLoginRow theRow = DsLogin1.CustLogin.Rows(0) If I try to say the following in C# it says I can't do an implicit conversion... dsLogin.CustLoginRow theRow; theRow = dsLogin1.CustLogin.Rows[0]; ...
Score Creating a static class
Tina - 12 May 2006 11:08 PM - 6 messages
I'm using C# 1.1.............. I add new Class item to my project.  It's created as class Math I change it to public static class Math I get an error saying that "The modifier 'static' is not valid for this ...
Score CPU Utilization ? Very High Very Little Activity
Glenn Thomson - 12 May 2006 11:00 PM - 3 messages
Hello: Use C# 2003 .Net Frameworks 1.1 SP1, OleDbConnection I open an Access data using a class (dataset has many pictures in it) and scroll back an forth using the four arrow keys. Recs displayed on screen, a short ...
Score Locking Up??
crgsmrt - 12 May 2006 10:28 PM - 4 messages
Hi all, I'd really appreciate it if someone was able to help me out with a problem I'm having with C#. I'm a complete newbie to this, so please excuse what may appear as a stupid question.  Basically, I'm trying to ...
Score streamreader newbie question
Ian M - 12 May 2006 9:32 PM - 4 messages
Hi, I am trying to retrieve values from a text document in this format: NewProd(0,0) = "xy004125" NewProd(0,1) = "myTitle" NewProd(1,0) = "xy004136" NewProd(1,1) = "anotehrTitle" NewProd(2,0) = "xy004115" NewProd(2,1) = "yetAnotherTitle" and so on... ...
Score save and opening
new at C# via DotNetMonster.com - 12 May 2006 9:19 PM - 5 messages
i need a really simple way to save and open text ...
Score Remoting - Updating Textbox from server messages
Brosto - 12 May 2006 8:55 PM - 14 messages
Hello, I'm writing a server client application and I'm having a terrible time getting one section to work.  This is my first time using .net remoting, so please bear with me if I'm doing something incorrectly.  To give a brief ...
Score i need a way to save and open
C# newbie via DotNetMonster.com - 12 May 2006 8:48 PM - 5 messages
i am useing 2 richtextboxs,1savefiledialog,2button and 2tabs have got 1 richtextbox on each tab and 2buttons above the tabs.i need a way to save both richtextboxs in 1 file and when i open the saved file the text ...
Score Re: HOT TEEN WEB CAM SHOTS FROM MSN MESSENGER
Blah - 12 May 2006 8:24 PM - 2 messages
On Fri, 12 May 2006 05:02:17 +0200, joebob <yczhh***@wcyggtbu.com> wrote: Do you use interop, or a com wrapper to get the pictures? ...
Score C++ in C#...
odwrotnie - 12 May 2006 7:57 PM - 2 messages
Hi, i have a situation: C++ class: namespace Shape {     public ref class Shape     {     protected:         String^ name;         String^ color; ...
Score DataGrid binding to an arraylist of items object
maflatoun - 12 May 2006 7:53 PM - 3 messages
Hi, I'm wondering if there is a way to bind to datagrid or a gridview the items in an arraylist. These items all have vars such as price, qty..etc? (besides putting in a datagrid or datatable first). ex. ...
Score Cannot view aspx in Designer
VMI - 12 May 2006 6:33 PM - 4 messages
I posted this in the MS aspnet NG and nobody replied. Hopefully, I'll be luckier here... I have VS .net 2003 v1.1 and I'm trying to view some web pages in the designer form. When I try to do this, I get this error: ...
Score System.Net.Sockets.Socket (Get state of Message)
Frank Uray - 12 May 2006 6:09 PM - 4 messages
Hi all I am using System.Net.Sockets.Socket to connect to my Mailserver ([link]). It all works fine exept one thing: I do not know how I can find out if the mail is already read or unread ... ...
Score int.ToString() does not exist. Why?
axkixx - 12 May 2006 5:37 PM - 8 messages
For whatever reason, I keep getting error of int.ToString() not existing. Why not? Has anyone encountered this problem before? ...
Score Create an instacne by class name
Rader - 12 May 2006 5:19 PM - 2 messages
Hello everybody, I have a method "CreateInstance" defined in the following code snippet: //To create an instance by a class's full name,but shoult check if it can be multi-instantiated at first public T CreateInstance<T>(string classFullName, bool ...
Score Mail attachment problem
Ray - 12 May 2006 4:58 PM - 3 messages
Hi Can anyone help with something that has beaten me. I am sending an email with an attachment, as per below. If I comment out the MailAttachment line then the mail gets sent, but with it in I get an error. ...
Score addref() on C#
Diogo Alves - Software Developer - 12 May 2006 4:45 PM - 2 messages
Greetings, I have a com object that cannot be released by the carbage collection, in c++ that object is created and then we add a AddRef(), and only when we need to release him we do Release(). And then you ask to me: "Why would you want to do that if the framework do ...
Score VS.Net Dropdowns for objects and Events
Tina - 12 May 2006 4:13 PM - 6 messages
Again, I'm a VB.Net Developer learining C# and I have another question... (BTW, my questions on this forum, thus far, have been "newbie" questions but no one seems to be able to answer any of them) With VB.net when the codebehind file is being edited there are two dropdowns ...
Score Worker thread updating Forms's field value
Walter W - 12 May 2006 3:10 PM - 4 messages
Hello, I have a ordinary Form that has disabled editfield for status information and bushputtons for doing actions. For Example pushing Fetch pushbutton starts a query for retrieving information from database. I also have a sub Thread that should same time update disabled editfield in ...
Score Regex Qs
tbh - 12 May 2006 2:56 PM - 5 messages
hi, all, a couple of questions re regular expressions in C#: - is it possible to define new character classes? (e.g. \q to mean something like \w | [']) - is it possible to negate a character set *other* than with [^...] ? (e.g. negate what I called \q above) ...
Score Custom Attributes not working.
Jared - 12 May 2006 2:55 PM - 6 messages
My goal is to provide some additional functionallity inside the database wrapper if the current object has the LongRunningAttribute attribute applied.  The attribute is never being instantiated by the framework. What am I doing wrong? TIA, Jared [LongRunning()] private DatabaseWrapper _database = new DatabaseWrapper(); ...
Score How do I get a custom attribute off a value
bg - 12 May 2006 2:28 PM - 2 messages
hi all, I have this: // custom attribute [AttributeUsage(AttributeTargets.Field)] internal class ThingAttribute : System.Attribute { ... } enum LotsOfThing {     [ThingAttribute("asd")] < == use custom attribute here     onesingular; } // call a method using above ... c.method(LotsOfThing.onesingular); ...
Score how to get the assembly in the parent class of an ancestor
Dan Holmes - 12 May 2006 2:27 PM - 4 messages
If i have Class2 that is inherited by Class1, how can Class1's methods operate on Class2's assembly information? For instance:      public class Component      {          public virtual List<ComponentInfo> GetAssemblyInfo() ...
Score Reference COM DLL without registering
Dave Booker - 12 May 2006 2:21 PM - 2 messages
I have a DLL that was compiled from VB6 that I want to reference in a .NET 2.0 C# project. I can add it as a reference if I first register it using regsvr32 But I want to be able to send the project to other computers (along with a ...
Score What is databound
tony - 12 May 2006 1:53 PM - 2 messages
Hello! If a control is databound what does that mean? //Tony ...
Score Language enhancement idea: C# method instance fields
WXS - 12 May 2006 1:38 PM - 23 messages
Sometimes a method in a class requires the use of class instance variables/fields that will not be used outside of the method itself.  Currently this means you must create a instance field in the class such that from a maintenance stand point it is disconnected from the method, and also ...
Score how to use List Class in Base class?
phl - 12 May 2006 1:30 PM - 10 messages
Hi, I have a class, which inherits a class that inherits a List class. How do I pass this base List Class to another function by reference? At the moment I just create a new List for doing this but I don't want to ...
Score XML - read thru the values
Dan Aldean - 12 May 2006 12:57 PM - 4 messages
Hi, I create this XML document: <?xml version="1.0"?> <Bookstore>   <Book Genre="Novel" Style="hardcover">     <author>       <first-name>Margaret</first-name> ...
Score Class Library Development
Dan Aldean - 12 May 2006 12:29 PM - 3 messages
Hi, Can somebody explain what is Class Library Development? Is it the DLLs that the developer builds? Thanks ...
Score obtain the date of each monday
alexjaquet - 12 May 2006 12:26 PM - 2 messages
Hi, I need to obtain the list of the date of each open monday. Any idea ? thx ...
Score Graphics rendering to a Panel is immediately cleared ???
Paul_Madden - 12 May 2006 12:26 PM - 7 messages
I have a System.Windows.Forms.Form onto which I add a Panel (MyPanel) directly derived from System.Windows.Forms.Panel. Here are the important code fragments ...     public class MyPanel : Panel     {         ............................. ...
Score RadioButton
Radiobutton via DotNetMonster.com - 12 May 2006 12:25 PM - 7 messages
i need help with radiobuttons. i am useing 1button and 2 radiobuttons i am trying to make it so when u select a radiobutton and hit button1 it will clear radiobuttons 1 and 2. ...
Score Creating a Generic Reporting Engine/Server
Rahul - 12 May 2006 12:24 PM - 3 messages
Hi All, I am trying to create an Reporting engine/server which my applications will connect to and get the reports out. Now this needs to do request handling like if 2 many users are connected to the Server it needs to ...
Score partly dutch, partly english
Martijn Mulder - 12 May 2006 12:08 PM - 2 messages
I use a  System.Windows.Forms.SaveFileDialog to select and name the file to save my work. When I select an already existing file the SaveFileDialog automatically displays a Dialog: File ... already exists. Do you want to replace it? ...
Score About software distribution
Ikke - 12 May 2006 11:57 AM - 9 messages
Hi, Suppose I write some great piece of software in C# - how can I distribute it? Do I need to pay anyone for a licence? Microsoft for example? Thanks for all info! ...
Score Novice C#.NET question
local - 12 May 2006 11:53 AM - 6 messages
Being new to C#.NET I wondered if it were possible to compile a program to run on a machine which does not have the .NET framework installed? ...
Score Popup window (actually slide up window like AOL/Trillian)
UJ - 12 May 2006 11:45 AM - 3 messages
Does anybody have any code to do the kind of status window where the window slides up from the bottom displays for a few seconds and then disappears? I found it for MFC but not C#. TIA - Jeff. ...
Score Access a physical disk
d.albano - 12 May 2006 11:15 AM - 2 messages
Hi to all, this is my first post in this group. I need to directly access to a disk but i'm getting some problem to let to filestream to work. I use createfile to acquire PhysicalDrive0 handle and after i pass the ...
Score How do I catch the event that happen when the minimize icon is clicked
tony - 12 May 2006 11:12 AM - 3 messages
Hello! I have a mainManu where I can chose to display some window forms. When the mainMenu is minimized I need to minimize every window form that is started from the mainMenu. So I need to catch the event that is trigged when the little underscore(the ...
Score Big in Framework 2.0 with wmi?
wavemill - 12 May 2006 10:51 AM - 7 messages
Hello, this is my code with vs20005:                 ManagementObjectSearcher searcher =                     new ManagementObjectSearcher("root\\CIMV2", ...
Score Fast Multiple Application Comunication
Olie - 12 May 2006 10:04 AM - 12 messages
This post is realy to get some opinions on the best way of getting fast comunication between multiple applications. I have scowered the web for imformation on this subject and have just found conflicting views and far from ideal solutions. ...
Score How do I find out if a form is visible or not
tony - 12 May 2006 9:57 AM - 3 messages
Hello! How can I find out if a form is in state visible=true meaning is visible on the screen or visible=false is not shown on the screen. I can't find any suitable method in the form class for doing this. ...
Score Single Sign-on
beachboy - 12 May 2006 9:30 AM - 3 messages
any method for  the single sign-on? pls advise the solution.. Thanks in advanced. ...
Score Query Mailbox in C# (.NET 2.0)
Frank Uray - 12 May 2006 9:20 AM - 4 messages
Hi all I need to search (Subject) eMails in a specific Mailbox. After I have found a mail I need to be able to detach the attachements .... What is the best practice to do this? It has to work without Outlook being installed. ...
Score Event naming conventions
Mantorok - 12 May 2006 8:49 AM - 3 messages
Hi all This has baffled me for a bit now, what is a recommended naming convention for events, my thought was the events should just be named as in the .Net framework, ie Click. However, some people feel preceding the name with "On" is necessary, is that ...
Score About inheritance when I use window forms
tony - 12 May 2006 6:58 AM - 2 messages
Hello! Assume I have three window forms called Frm1, Frm2 and Frm3 each of these have a method called foo1 and foo2. Now instead of having this foo1 and foo2 in each of the three window forms I want to put these foo1 and foo2 in the Base class and then ...
Score ASP.net - Themes
WayDownUnder - 12 May 2006 5:37 AM - 2 messages
Hello, I have a theme in my project . I  use the page directive <%@ Page Language="C#"   MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Content01.aspx.cs" Inherits="Content01" Title="Untitled Page" Theme="Summer" %> The page does not seem to pick up the theme. ...
Score C# objects
Jazer - 12 May 2006 5:25 AM - 7 messages
Hi, In many other programming languages is construction with. with <object_name> do begin .... end. Is there something similar in c#? ...
Score NewBie help.
archana - 12 May 2006 5:23 AM - 2 messages
Hi all, I am having confusion regarding following code:- HttpWebRequest wr = (HttpWebRequest)WebRequest.Create( url ); WebResponse resp = wr.GetResponse(); MessageBox.Show(resp.ResponseUri.ToString()); Above code fails for some url. It was giving error 'The remote server returned an error: (500) Internal Server Error.' ...
Score through asp.net in C# how to check a web site is up
Suresh.P.R - 12 May 2006 4:40 AM - 12 messages
Hi, Through ASP.Net in C# how we can check automatically that the Web Site is up. Or generally through .Net  windows application how we can check a particular web site is up. Please inform me, Suresh ...
Score radiobuttons
new at this via DotNetMonster.com - 12 May 2006 4:34 AM - 3 messages
i am new at this and i need some help. i am working with 2 richtextboxs,2 radiobuttons,1 fontdialog and a button i am trying to make it so when you select radiobutton1 and hit button1 the font dialog will control richtextbox1s font and color and if you select ...
Score ETA for Service Pack for .NET Framework 2.0 and VS.NET
Jeremy S. - 12 May 2006 3:52 AM - 5 messages
About 6 months ago MS announced that a service pack for .NET Framework 2.0 and VS.NET (2003 and 2005) would be available around mid-year. Any update on that ETA? (we're approaching mid-year now) Just curious (and yes, I googled this and found nothing helpful) ...
Score asp.net, C#, constructor in new class
Ranginald - 12 May 2006 3:24 AM - 6 messages
I am learning C# and asp.net and am trying to create a new utility class. The default code you get from vwd express is: /// <summary> /// Summary description for ddlCode /// </summary> public class someClass {     public someClass() ...
Score What is the unit in DirectX ?
Boki - 12 May 2006 3:17 AM - 3 messages
Hi All, For DirectX, we can set the x, y, z, axis, but what is its unit? pixel, or center meter or ? ex: verts[0].X=150; Best regards, Boki. ///////////////////////////////////////////         public void OnCreateVertexBuffer(object sender, EventArgs e) ...
Score Master Pages - public properties
WayDownUnder - 12 May 2006 1:38 AM - 8 messages
Hello I am having trouble accessing a public porperty that my master page exposes I try to access it in a content page but the property is not visible through intell sense. Master Page '''''''''''''''''''''''''''''''''''''     string m_PageHeadingTitle = "My Company"; ...
Score CSharp compile's bug?
www.s1985.com - 12 May 2006 12:50 AM - 4 messages
bool b = true; if(!b) goto end; string str="str"; end: Console.Write(str); compiler throw error message 'unassign variable "str"'. this error explain compiler was find variable define, but don't execute assing sentence. Why?Is't a bug? ...
Score copy 1 dimensional to 2 dimensional array with actual int values
j-in-uk - 11 May 2006 10:09 PM - 4 messages
Hi, I have a table with 2 columns and a one dimensional string array. I need to copy the string array to the table but I think I have to convert my string array to a 2dimensional array first with an ...
Score Control properties are not enabled
Steve Teeples - 11 May 2006 9:58 PM - 4 messages
I have a base form that I use for creating a common look and feel of all my forms.  On the base form I've set all "Modifiers" to public so that the inherited forms can edit them.  I have a statusstrip on the base form.  It's ...
Score Language="C#" required in code in front
fred - 11 May 2006 9:54 PM - 3 messages
Does anyone know why Language="C#" is required in the code in front of aspx and ascx files? for example in the header of my aspx file: <%@ Control Language="c#"  Inherits="Blah.Apps.Controls.Announcement" CodeFile="Announcement.ascx.cs" %> ...
Score Is it possible to Define multiple assembly attributes of the same type in one assembly?
Andreas Mueller - 11 May 2006 8:44 PM - 2 messages
Hi all, I have an attribute class: [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] class MyAttribute : Attribute {       public MyAttribute(){ } } In one assembly I define the attribute multiple times: [assembly: MyAttribute()] [assembly: MyAttribute()] [assembly: MyAttribute()] Then I try to access the attributes: ...
Score Serialization Question for .Net 2.0
V - 11 May 2006 8:15 PM - 7 messages
Hi, I am trying to ascertain if Object Serialization (binary or xml) has been improved (new classes, or new ways) from version 1.1 of the .net framework. I pretty much know how to do that in 1.1, and am working on a program ...
Score Friend classes
Padu - 11 May 2006 7:59 PM - 4 messages
Is there such a thing in C#? If not, is there a workaround or suggested shift of paradigm? I know friendly classes can be evils sometimes, but some other times it may be very helpful. If you think about the memento pattern, it is nice for the ...
Score Sql connection performance advice please!
Steven Blair - 11 May 2006 6:49 PM - 8 messages
I have a DB connection performance issue in my C# app. I have used the Stopwatch to track how long it takes to do a couple things. Creating a SqlConnection object takes 19ms, and Opening a connection (Sql2005) takes roughly 120ms. ...
Score ?? Can I Limit Member Visibility to the Namespace ??
Alan Foxmore - 11 May 2006 6:05 PM - 8 messages
I understand about public, internal, protected, etc. Is there a way to ensure members are accessible within the same namespace only? In other words, I want to prohibit access to members outside the namespace. Can this be done? I don't think so. ...
Score properties
RobcPettit@yahoo.co.uk - 11 May 2006 5:42 PM - 10 messages
Hope I word this ok. Ive created a class, which I added to my references. In the class ther is public method called isloggedin. when I check the objects I see 'public bool IsLoggedIn { get; }     Member of BetBetter.Betfair.BetfairWrapper'. My project compiles ...
Score How can I get my VS2003 Form files splitted in 2 Partial class flies like in VS2005 ?
TheSteph - 11 May 2006 4:50 PM - 10 messages
In VS 2005  Form files are in 3 parts : From1.cs, Form1.Designer.cs and Form1.resx. In VS 2003 there is only one ".cs files". How can I split my old VS2003  ".cs files" files in 2 files : From.cs and ...
Score Return value of method
Toco - 11 May 2006 4:36 PM - 4 messages
Hello.  I have method (called GetKey) in a class that returns a string.  Also, I have in another class, a method which makes a call to the GetKey method.  What I wish to do is to do an evaluation of the return value of the ...
Score Why this declaration is legal
Boki - 11 May 2006 4:31 PM - 4 messages
Hi All, I saw a code:     vertexBuffer = new VertexBuffer(         typeof(CustomVertex.TransformedColored), 3, dev, 0,         CustomVertex.TransformedColored.Format, Pool.Default); but why not: ...
Score CallContext thread safe
Tommaso Caldarola - 11 May 2006 4:23 PM - 2 messages
If I call System.Runtime.Remoting.CallContext.SetData() and then I call System.Runtime.Remoting.CallContext.GetData() from a different thread I get null, if the thread indeed is the same I get right data. How to do CallContext.GetData() thread safe? ...
Score Exception Handling
Fernando - 11 May 2006 4:07 PM - 6 messages
I would like to know if this is OK or if it is better to just let the exception go instead of re-throwing it: I have: try { } catch(OracleException ex) {     // Do something } catch(Exception) {     throw; ...
Score How to cancel a BackgroundWorker in a blocked state ?
Sagaert Johan - 11 May 2006 3:58 PM - 3 messages
The backgroundworker contains a blocking call to UDPClient.Receive How do i unlock this thread so the backgroundworker can be cancelled ? Johan ...
Score Lock problems with System.Timers.Timer
Ben - 11 May 2006 2:54 PM - 5 messages
Hello everybody I got confused by this problem for which I don't have a logical explanation. There is a Thread (ThreadA) which receives Events from another system thread (ThreadS). ThreadA then adds a time stamp to the received event and adds it ...
Score Copy/Cut/Paste menu
Sasho Popovski - 11 May 2006 2:53 PM - 3 messages
Is there elegant way to create Edit menu in MainMenu with standard Copy/Cut/Paste MenuItems which will work on the Application level. There ara Copy/Cut/Paste methods connected to the TextBox-es, but i need a general functionality in MDI Oriented Application. ...
Score C# vs C++
cr113 - 11 May 2006 2:39 PM - 6 messages
I'm thinking about switching some of my apps from VB.NET to either C# or C++, just for the experience. I'm leaning towards C# since I had the misfortune of having to maintain a windows program written in C several ...
Score problem tablelayoutpanel c# windows application
Sudha Pune - 11 May 2006 2:28 PM - 3 messages
Hi all i am using vs2005 C# window application i am trying to add the controls dynamically inside the "tablelayoutpanel", i need to add row by row and each row i will have to have 10 columns and each column i need to add one control ...
Score Release Builds
Philip - 11 May 2006 2:27 PM - 5 messages
In VS.NET 2005, I have C# class library projects and when I switch to conduct a release build ... the build still creates program debug files (PDB).  I have tried everything.... I have manually deleted all PDBs before conducting ...
Score Specific IComparer use with TreeNodeCollection
escristian - 11 May 2006 2:23 PM - 4 messages
Hello. I am trying to use a specific IComparer object to sort the nodes of my TreeView. Now if it was an Array I could simply call Sort() and pass it my IComparer object. But with the TreeNodeCollection object there is no ...
Score Changing the Version number
Greg Smith - 11 May 2006 2:12 PM - 4 messages
I would like to change the version number that you get as the first part ('1.0.') of string that is returned by "Application.ProductVersion". Where do I change this? Any help is greatly appreciated. ...
Score Uploading a document using http post
neoret@gmail.com - 11 May 2006 1:52 PM - 2 messages
Hi there. I need to perform an upload of a document using HTTP post. This has to be done from my windows form using C#. My challenge is: 1: To send - the word document 2: To attach several variables to the same request ...
Score Application Dessapears
Diogo Alves - Software Developer - 11 May 2006 1:48 PM - 3 messages
Hi, After the splash that loads de application sometimes, and I repeat SomeTimes, the app get's invisible. It just don't appear on my task bar neither on the screen. But if I do Alt + TAb the application is there and ...
Score Bug in Reflection in .net 2.0
Konrad Kaczanowski - 11 May 2006 1:46 PM - 3 messages
Hi, I have the following code: using System; using System.Collections.Generic; using System.Text; namespace GenericParamsCodeGeneration {     public class MyGenericClass<T,U>     {         public void NestedGParamMethod(NestedGenericClass<IList<int>> ...
Score INTELLISENSE....
jacopomeucci - 11 May 2006 1:46 PM - 3 messages
Hi all..... someone knows why if i write an ENUM in C# class,  sometime,. when i invoke this class via another class i cannot see intellisense tag???? Note that the program run however.... It seems that all code is all right, but i'dont know why i have this ...
Score 'is' operator is giving compile error when used with switch statem
Raj - 11 May 2006 1:38 PM - 10 messages
public static void HandleException(ref Exception io_exException,                                               bool ...
Next »