Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score How to get Multi-Monitor Position?
slowram - 8 Oct 2005 11:38 PM - 4 messages
I know how to get the monitor dimensions, virtual monitor dimensions, but how do I get the location of the second monitor in relationship to the original?  On the desktop when I go into my property settings for the monitor I ...
Score DataView relation to DataSet
C Glenn - 8 Oct 2005 9:52 PM - 2 messages
I've created a DataSet subclass that includes a public DataView.  The DataView is instantiated with the DataSet's DataTable in the constructor's parameter list.  Is there a way to determine the DataSet associated with the DataView through the DataTable used in the ...
Score Linking webpages from Internet to local folder
Zack Whittaker (R2 Mentor) - 8 Oct 2005 9:19 PM - 5 messages
OK, sounds like a stupid question but noone in the R2 beta is replying LOL. Is there anyway I could put a link on my site (eg. [link]) and it link to a HTML ...
Score Getting time from an HttpResponse
Nuno Magalhaes - 8 Oct 2005 8:51 PM - 2 messages
This site: [link] gives me the date at a specified moment but using HttpRequest and Response with this server is very bad. Does anyone knows how to get a high fidelity time in order to get my ...
Score Static type declaration in C# versus C or C++
Meya-awe - 8 Oct 2005 7:46 PM - 2 messages
Hello, Could anyone point me to an explanation or explain what the difference is between a static declaration of a variable in C# versus C or C++? thanks, BRAMOIN *** Sent via Developersdex [link] *** ...
Score Handle Selected index change
william_dudek@_yahoo_com - 8 Oct 2005 5:31 PM - 3 messages
I am becoming extremely frustrated with the event handlingin C#. I need to handle the OnSelectedIndex changed event and am getting the following error message when I build the application. C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\RecipieGuide\FormRecipe.cs(599): ...
Score C# with C++ DLL
Tim - 8 Oct 2005 5:18 PM - 2 messages
Hello all, I'm using a C++ DLL and I have a method that needs a "const char *buffer".  What is the equivalent of this in C#?  Any help would be appreciated.  Thanks. ...
Score Newbie: Values of a ListBox
Craig Lister - 8 Oct 2005 4:10 PM - 5 messages
I'm a Delphi developer, trying my hand at c# A simple question, I am sure: I'd populate a ComboBox in Delphi, with values from a table, and then at the same time, populate a TStringList with the corresponding ID's of the items ...
Score TcpClient timeout?
Danny Tuppeny - 8 Oct 2005 2:55 PM - 3 messages
Hi all, I'm using a TcpClient to talk to a newserver. If I don't send any data for a while, will the connection timeout, or does something in the TcpClient keep it alive? If not, and it times out, how do I keep it alive without actually ...
Score ListView-style column headers?
Danny Tuppeny - 8 Oct 2005 2:53 PM - 4 messages
Hi all, I need to build a Treeview/Listview control (none of those on codeproject do quite what I need!), and was considering using one of the existing controls as a starting point, though now I'm not so sure, and considering writing ...
Score Any Advanced Developers NNTP Around?
clintonG - 8 Oct 2005 2:37 PM - 6 messages
It has become painfully clear to me how useful it would be if it were possible to grab an entire topical tree from a specific newsgroup and archive it as XML enabling it to be republished in a webpage. I wonder if this is even possible? ...
Score How to test if a socket is connected
Nuno Magalhaes - 8 Oct 2005 12:03 PM - 3 messages
socket.Connected only gives the last access result but not the current status of the socket. What is the best way to determine if a socket is still connected? Because I want to cancel all my "output" in the client if the socket is ...
Score Threads
ShimiIL - 8 Oct 2005 10:40 AM - 2 messages
Im starting now to write a big chat server that is built to hold a max of 1000 users. Im having a trouble to find the best way to hold this users... i have 2 ideas, one is to create a thread for each user ...
Score decimal=int/int
orioth - 8 Oct 2005 9:50 AM - 6 messages
merhaba ben,int olan iki sayýnýn bölümünü decimal bi deðiþkene atamak istiyorum.sonuç decimal mi yoksa int mi çýkar? ...
Score sql connection
Mike - 8 Oct 2005 9:49 AM - 9 messages
Hi, I've added a new user as ASPNET in my laptop (where I am the only user) and I'm using this connection string:  "Data Source=(local);Initial Catalog=Orchestra;User Id=ASPNET;Password=boby" but it's giving me this error when tring to access any table in my Orchestra ...
Score enums
Curious - 8 Oct 2005 8:39 AM - 4 messages
Hi, I am trying to create the following enum: public enum myEnum {First Come First Serve, Shortest Job First, Round Robin} Now when I compile, errors are given.  The main reason is that each item in the enum is made of multiple words. ...
Score Help with iterating an array...
Gen - 8 Oct 2005 6:24 AM - 5 messages
Hi - I'm a c# student, as a small class exercise we were asked to write a program that uses an Average function using the params keyword.    My problem was with the loop, I could only get the Do loop to work.  When ...
Score Global variables & arrays
Roy Gourgi - 8 Oct 2005 5:55 AM - 2 messages
Hi, I am new to C#. I am trying to create some variables and arrays that can be seen throughtout the whole program. I have no choice as they have to be seen by the whole program. Where and how do I declare them? I tried putting the ...
Score How to write like-as 'VB shared function' in Csharp?
ABC - 8 Oct 2005 4:04 AM - 9 messages
In VB, we can write the share function as Public Shared Function FnXXX() .... .... End Function How about on C#? ...
Score checking virtual key range: 'a-z' and 'A-Z'
farseer - 8 Oct 2005 2:53 AM - 6 messages
if i wanted to check if a virtual key is in the range of 'a-z' or 'A-Z' is there an easy way to do this in C#? ...
Score deadlock - retrying the transaction
Zeng - 8 Oct 2005 12:17 AM - 19 messages
Hi, The bigger my C# web-application gets, the more places I need to put in the tedious retrying block of code to make sure operations that can run into database deadlocks are re-run (retried) 3-4 times and give up if after that ...
Score Inserting an item into a sorted list
Ryan Graham - 7 Oct 2005 11:06 PM - 11 messages
I totally bombed this question in an interview so I'm posting my answer here for comments and suggestions... perhaps (god help me) I'm just not that bright, but this works and seems to be fairly efficent. The idea was simple, ...
Score integer array to a byte array
Nils Wolf - 7 Oct 2005 10:36 PM - 5 messages
hi, how do i convert an integer array to a byte array?? ...
Score Implement a modal Dialog box in ASP.NET web app
Ritu Kachroo - 7 Oct 2005 9:50 PM - 3 messages
I need to implement a Dialog box in my Web application. The dialog box pops up  with "OK", "Show Details", "Show Image" buttons when the user clicks a marked point on a chart. I need to pass the numeric value of the point into the Dialog Box. ...
Score Debugging ScreenScrape Code
Dan McCollick - 7 Oct 2005 9:24 PM - 7 messages
Hi All,   I have a very small screen scrape application, that has a small problem.  when I run the app and I have fiddler(an http tool to view what is being sent by the requests/responses, [link]) the app works, and I am able to login to ...
Score how to define a pointer to an array?
Peter Demeyer - 7 Oct 2005 9:05 PM - 6 messages
I can't manage to define a simple pointer to an array. The following C++ code doesn't work in C# (compiler error: "You can only take the address of unfixed expression inside of a fixed statement initializer") Int32 *pointer; ...
Score Specified cast is not valid TcpClient TcpListener
Nuno Magalhaes - 7 Oct 2005 8:32 PM - 2 messages
This code gives me the runtime error "Specified cast is not valid": MyTcpClient ClientTcp=(MyTcpClient)ListenerTcp.AcceptTcpClient(); MyTcpClient is a class that inherits from TcpClient. Why can't I do this? Is it possible to get the remote endpoint without have to go to ...
Score javascript problem
Morten - 7 Oct 2005 8:12 PM - 3 messages
Hi! I'm trying to have a button open a Window using javascript. I want to open a window pointing to a specific URL and close it imediately afterwards. I've registered a javascript block in my code-behind file and used this code: ...
Score Good brain teaser (real life problem)
arthernan - 7 Oct 2005 7:53 PM - 6 messages
Let's say I have this class.     public class oompa_loompa: halfling     {         public var automobile;         }         public first_oompa_loompa oompa_loompa = new oompa_loompa(); ...
Score Easy question
Rachel - 7 Oct 2005 7:47 PM - 2 messages
My do while works the first time but the second time it breaks at the len = Convert.ToDouble(Console.ReadLine()); It says that I have an unhandled System format exception.  Help! using System; using System.Text; namespace assignment1 {     /// <summary> ...
Score Getting DataGrid Sort Column Header Name
DigHazuse - 7 Oct 2005 7:21 PM - 4 messages
relative noob. i'm trying to get/display the column Header name that the user clicks to sort on the DataGrid. I know that i could take the e.SortExpression and spin through the Columns on the DataGrid until I found the value that matches the ...
Score How to refesh a listbox bind to a dataview?
Alpha - 7 Oct 2005 7:16 PM - 7 messages
I have a listbox with datasource from a dataview.  When a user selects a different item in a combobox then I need to refresh the listbox to the appropriate listing based on that combobox's selected value which is included ...
Score Compare two arraylists with date values
godsella - 7 Oct 2005 6:52 PM - 2 messages
First i have two stored procedures, i have passed the values of each one into two different arraylists of dates. how can i compare the two arraylists of dates? Thanks in advance ...
Score Random Numbers are the same!
cvnweb - 7 Oct 2005 6:40 PM - 6 messages
I am trying to generate 2 random numbers that are diffrent, in order to add them to existing numbers to generate numbers that start out the same, but are randomly added and subtracted so that they can go down similar paths, but not be the same. I will implement code later to make ...
Score ListView row numbers?
Andrew S. Giles - 7 Oct 2005 6:06 PM - 2 messages
I am trying to provide a list to the user.  This list is the 1st 25 lines of a given file.  I want to provide the line number to the user, before each line. I see when I add Columns to a ListView, the way I want it to look.  The ...
Score Try catch finally
Raj Chudasama - 7 Oct 2005 6:06 PM - 4 messages
what is the extent to which you should use them?  Shall i include them in almost all methods ?  pleaes direct me to where i can find some more information thanks ...
Score What is the best way to create and print reports?
Gidi - 7 Oct 2005 5:35 PM - 5 messages
Hi, I'm writing a program that helps manging a store. i have one form that deals with products selling, in this form the user enters the customers details and the products which he bought. after the user payed for these products, i want ...
Score insert row to Excel using C#
Tim Wallace - 7 Oct 2005 5:25 PM - 6 messages
I need to insert a row into an Excel spreadsheet using C#.  I get a reference to the app, the workbook, the sheet.  When I attempt to call Insert, I keep getting errors, probably because I'm not certain what the ...
Score Q: Remote Debugging!
Visual Systems AB (Martin Arvidsson) - 7 Oct 2005 5:21 PM - 2 messages
First of all, sorry for the cross post, didn't know what NG to lay the question. Hi! I'v been trying to use the remote debugger with Visual Studio 2003. I came a cross some questions, and perhaps you wiz out there can help me? ...
Score Uploading Audio File
SivaprakashShanmugam - 7 Oct 2005 5:01 PM - 3 messages
Hello Can any one explain me how to send audio file to web server by using Web Services. I would like to have more security on top of it. ...
Score Web Services?
Fouad Fahim - 7 Oct 2005 4:41 PM - 3 messages
I want to know the differnce between File share and FrontPage ! Regards, FF ...
Score What is the scope of the 'lock' statement
Brian Kitt - 7 Oct 2005 4:01 PM - 4 messages
I have a need to lock some objects at the process level (making sure multiple threads do not share an object), and some objects at the machine level (making sure multiple processess do not share an object). I believe the scope of 'lock' is at the process level. ...
Score Animate a propeller
FredC - 7 Oct 2005 2:48 PM - 3 messages
I'd like to animate a propeller spinning on a form. Any code or tools that anyboby can point me at? ...
Score Use reflection to remove and add events
niteshs - 7 Oct 2005 2:14 PM - 3 messages
Hi all I want to be able to disable all events for controls on my form at runtime based on a certain condition and then re-add these events back. I have been able to view events through the EventInfo[] class ...
Score What's the Difference between 'yield break' and 'break"?
yyhhjj - 7 Oct 2005 2:12 PM - 4 messages
I created a test program to implement an iterator. First, I used 'yield break' in the iterator, it worked normally. Then, I simply used 'break' in the places of 'yield break', it still worked normally. What's the difference between 'yield break' and 'break' here? ...
Score UDL Files
Roger - 7 Oct 2005 2:01 PM - 2 messages
Anyone know how to create and read a UDL file with C#? ...
Score How to Schedule a WebForm to Print?
petemo94 - 7 Oct 2005 1:51 PM - 2 messages
Folks,    I've been tasked to develop a way to have our webform be automatically scheduled (e.g. once a day at 8PM) and printed to a local printer without any user interaction besides setting up the time/day. ...
Score Convert short * to object for use with InvokeMember
Patrick Ireland - 7 Oct 2005 1:45 PM - 4 messages
I am dynamically loading a class.  One of the methods of the class takes a short * (by reference) argument.  However, the InvokeMember call used to invoke the method of the class passings arguments in and object []. Since this is a pointer reference being passed it must be invoked in a ...
Score Visual Studio 2005 Beta
WRH - 7 Oct 2005 1:41 PM - 6 messages
Hello I have VS 2003 and would like to try the 2005 beta. Can someone tell me...any conflicts if installed with 2003?  Is there any expiry date or other restrictions on the 2005 beta? ...
Score This keyword
Dave - 7 Oct 2005 1:40 PM - 6 messages
Hi, I need a little help in understanding why FxCop complains about this. If I have a basic class like: class Class1 {       static void Main()      {            Class1 class1 = new Class1(); ...
Score Create an upgrading .EXE with an embedded DLL to overwrite existing deployed DLL
phobos7 - 7 Oct 2005 12:23 PM - 10 messages
I am trying to create a single .EXE that will upgrade a product by the doing the following: 1) Detect the location of the current installation (DONE) 2) Upgrade the existing config file (DONE) 3) Overwrite a DLL in the program files folder with a new DLL. ...
Score PrintPreviewControl - How do I...?
Tim - 7 Oct 2005 12:18 PM - 2 messages
Hi, I want to use a PrintPreviewControl instead of the dialog which is too restrictive. I have found a basic tutorial but I have lots of other questions: 1. How do I implement next and previous buttons? 2. How do I change the cursor only when it is over the document? ...
Score Uniform(...) method
Curious - 7 Oct 2005 12:11 PM - 5 messages
Hi, I am writing a class Distribution that inherits from Random class public class Distribution : System.Random {    public int Uniform(int min, int max)    {        return this.Uniform(min, max);    } ...
Score Regex to convert "camelCase" into "Title Case"
Greg Collins [InfoPath MVP] - 7 Oct 2005 12:07 PM - 6 messages
I couldn't find anything in my searches... I'm wondering if there's a Regex (with or without additional C# code) that can convert a either "lowerCamelCase" or "UpperCamelCase" into a proper "Title Case" (with spaces). Thanx! ...
Score converting array of byte data type to string.
shivaprasad - 7 Oct 2005 11:18 AM - 6 messages
Hi all, I am a Beginner to c#. I Need to convert array of byte data type to string. How to do this.. ex: byte[] bytes = new byte[1000]; this bytes get filled up. Now I need to convert to string. ...
Score Orcas and .net 3.0 ?
Jarod - 7 Oct 2005 10:55 AM - 2 messages
Hey It's just curiosity but is .net 3.0 going to be in Orcas version of Visual Studio ( 2008 ? ) or it will be just an update like VS2003 for VS2002? Jarod ...
Score Transparent textbox
Jörgen Westin - 7 Oct 2005 10:51 AM - 2 messages
Hi, Does anybody have a good example on how I can make a transparent textbox to put on a form? Thanks Jörgen *** Sent via Developersdex [link] *** ...
Score Com Port
Simone - 7 Oct 2005 10:28 AM - 2 messages
Hello. I want to do a demon that is listening strings on Com port (like Hyper Terminal). Any Ideas? Simon. ...
Score Printing Client side in ASP.NET
aniljain50 - 7 Oct 2005 10:18 AM - 4 messages
Hi All, I have a web form. let's say it has 3 fields. Employee No, Name ansd salary. Now my problem is I want to print the contents of this screen to a local printer. Note that this is client side printing and not ...
Score how to createCOM component in C#.Net
TulasiKumar - 7 Oct 2005 10:02 AM - 3 messages
Hi all, i am new in C#.Net.How to create COM compenent in C#.Net?Any one please help me.Kindly give me any Documentation. Thanks in advance Regards TulasiKumar ...
Score Event when a thread ends?
Anders Eriksson - 7 Oct 2005 9:42 AM - 7 messages
Hello! I have a form from which I start an thread running in the background and I want to have an event when the thread is done/ends. I start the thread like this: private Thread prT;    // this is a member of the Form1 class ...
Score Database permission
Mike - 7 Oct 2005 9:40 AM - 5 messages
Hi, I have created a C# web project(asp application) where it should access my database in my laptop and this the connectionstring that I m using: mySqlConnection = SqlConnection("Server=(local);Database=Orchestra;Integrated Security=SSPI"); and it's working in my windows application but in my web application its ...
Score Application error! (Common Language Runtime Debugging Service)
Newbie - 7 Oct 2005 9:23 AM - 2 messages
Hello, I've encountered the error below: (when running my compiled c# program) "Application has generated an exception that could not be handled. Process id=0xfffab7cd(-346163), ...." What should I do? Thanks. ...
Score How to access control in child form (MDI app)
Karl - 7 Oct 2005 9:12 AM - 3 messages
Hi, I'm just writing my first real c# application and I have a problem when trying to access a control in a child form. I am using an MDI application with a parent form called frmMain. In this code I need to parse some files whose filenames are in an ...
Score Datetime.Parse
Peter Kirk - 7 Oct 2005 8:00 AM - 3 messages
Hi there I would like some help with parsing date strings to DateTime structures. I can see that DateTime has Parse and ParseExact methods - but I am not sure what is best for me to use, and what parameters I need to supply. ...
Score Adding a panel
Anders Eriksson - 7 Oct 2005 7:42 AM - 3 messages
Hello! How do I add a panel and get the already existing controls to be included in the panel? The only way I have made it work if I create the panel first and then add the other controls. But often I don't realize that I need to use a panel ...
Score Start a process as soon as User Logs in
venkat - 7 Oct 2005 7:12 AM - 2 messages
Hi,     Is there any way to start my own process as soon as the user logs into computer. I want to run my process as hidden and i need to show it before logging out of the computer. ...
Score Qosmio G25 as developer laptop :)
kids_pro - 7 Oct 2005 6:59 AM - 2 messages
The Qosmio G25 was shipped with Window XP Media Center. Base on the laptop spec. this laptop is come with great performance. But if it good to install vs.net 2005 and do some real development on this laptop? Because this come with --> Window XP Media Center <-- ...
Score .NET DataGridView Scroll In View
NK - 7 Oct 2005 6:12 AM - 2 messages
Hi, I am trying to scroll down to a specific row in DataGrid. I am able to select the row at runtime using "selected" property but not able to get that row in view. For example, if I would like to scroll down to a 15th row in the ...
Score Detect system goto sleep mode, hibernation mode, switch user, logo
steve - 7 Oct 2005 4:10 AM - 4 messages
Is there anyway my AP can detect system goto Sleep, Hibernation mode, switch user and logoff? ...
Score Info Storage
Demetri - 7 Oct 2005 2:30 AM - 2 messages
We need a way to store information, similar to a dataset, but fast and with the ability to encrypt it.  I am currently using in memory arrays.  What is the faster relational thing we could use for storage that we can lock the ...
Score What is manage?
Newbie - 7 Oct 2005 12:45 AM - 2 messages
Hello, I always see the term *manage* in c#. What does it mean? Thanks. ...
Score PLS HELP: Adobe SDK with .NET?
MuZZy - 7 Oct 2005 12:04 AM - 2 messages
Hi, I just wonder if someone has any idea where i could get description of Adobe SDK functions translated to C#/VB.NET? The problem is this: we have an C#/VB.NET app which uses Acrobat COM classes for deviding/merging ...
Score Debugging DLLs
C Glenn - 6 Oct 2005 11:59 PM - 5 messages
I've done this, but now I'm doing something wrong and I can't figure out what it is! Every time I edit and compile the component that I'm creating, I copy the DLL into C:\Program Files\Microsoft Visual Studio .NET ...
Score Question on Microsoft Visual Studio 2005 C# Express Edition
paulrosenthal@juno.com - 6 Oct 2005 11:55 PM - 5 messages
Hello, I am building a program and I have a question. One of the features is sort of a quick version to get to a website. They will have a text box, which they put in the address. They will then have a "Go" button. That ...
Score Empty Character Literal
VJ - 6 Oct 2005 11:48 PM - 10 messages
I have a property for a control ( source code not available) . The property accepts single char as value.. so I can set it to '/' or ':' or anything like that...At initialize of my From I want this property to be set to a ...
Score Writing Textbox data to a file
CsharpNewcommer - 6 Oct 2005 11:40 PM - 4 messages
Hi Can someone tell me how to write the data from a TextBox (txt) or Label (lbl) to a text file to be printed. I have read the info from msdn.microsoft.com/library on "Writing Text to a File", and it only offers a ...
Score create new object of type... seems like it a reference?
jmrieman - 6 Oct 2005 11:10 PM - 4 messages
probably something really stupid but.... I have created a 2 classes public class PegBoard {     public int Status; } public class BFSPegBoardNode {     public PegBoard[,] BFSBoard;     public int rowFrom;     public int colFrom; ...
Score datagrid ... or ... listview??
TheMadHatter - 6 Oct 2005 10:52 PM - 2 messages
Yello, I am trying to creat an alarm list that updates, say, every .5sec. Basicaly it will be a fifo list. Which of the two (datagrid, or listview) would be best up for the chalenge? I havent got a clue as to what the "norm" is for solving ...
Score asm int 3?
David Thielen - 6 Oct 2005 9:42 PM - 9 messages
Back in the old C++ days we would put an _asm { int 3 } where we wanted the code to break in to the debugger. (We put this in a TRAP macro to make sure we walked all code paths.) Is there something like that I can put in a .cs ...
Score Using existing object when using New?
Christopher D. Wiederspan - 6 Oct 2005 9:14 PM - 6 messages
This is a bit tough to figure out the best way to ask, but here it goes. I've got a class, say MyObject, and everytime this class is instanciated, I actually want to get a reference to an existing object. Maybe better stated ...
Score c# and c
Martin Glaser - 6 Oct 2005 8:49 PM - 4 messages
Hi, i'm quite new to c# but already amazed how easy and fast gui development    is. So I quite like the idea of .net. up to now i was mostly using c and there is quite a lot of source code I want to use (without porting ...
Score Using Visual Studio (for VB) for C#
sarcqo - 6 Oct 2005 8:02 PM - 3 messages
I bought the software to learn Visual Basic - which included the Visual Studio IDE. Now, in my profile in VS I can select C# (and C++ if I would like)...does that mean that I can use my VS to create projects in ...
Score Proxy settings for internet access
JezB - 6 Oct 2005 7:35 PM - 3 messages
I'm writing a windows forms application which accesses the internet at various points in two different ways: - calling a webservice (.wsdl), - using the WebRequest & WebResponse methods. I have a user that runs the software behind a firewall. He's getting proxy ...
Score Sockets!
mattymatmat - 6 Oct 2005 7:35 PM - 3 messages
I've been using sockets to try and connect to ranges of IP's on port 23.  I'm trying to create a network discovery program for a specific program listening on port 23.  I have no problem setting up the socket and making the ...
Score Removing a Component That's Not There
C Glenn - 6 Oct 2005 7:20 PM - 3 messages
I've recompiled a DLL that contains a component.  The component vanished from the form.  I've since tried to replace it but most of the code associated with the component remained in the cs.  The code editor ...
Score Printing an Form
CsharpNewcommer - 6 Oct 2005 7:07 PM - 5 messages
Hi I have designed a form containing data and I want to print that form and the data as it appears in the Windows Form. I am a beginner with C# and I have read several "help"s on PrintPage, PrintDialog, etc. but none seem to address ...
Score Problem with reading a large text file
haibhoang - 6 Oct 2005 6:51 PM - 10 messages
I have a Windows Service that is trying to parse a large (> 1Gig) text file.  I am keep getting OutOfMemoryException exception.  Here is the code that's having problem: using (StreamReader streamReader = new StreamReader(stream,    Encoding.ASCII)) ...
Score generate 20 byte int from GUID ?
John Grandy - 6 Oct 2005 6:35 PM - 27 messages
Is it possible to generate a 20 byte integer from a GUID that is "unique enough" ( just like a GUID is not truly unique , but is "unique enough" ). We identify transactions with GUIDs , but a partner web service has a 20 ...
Score How do I change the selected item in a listbox according to a Comb
Alpha - 6 Oct 2005 6:30 PM - 3 messages
How do I change the selected item in a listbox according to a Combox's selected item on the same form?  The Combox is from a different table in the same dataset as the Listbox uses.  Combox's ValueMember is a ID that is a ...
Score Only some datasets shows in the Solution Explorer of VS.net 2003?
Alpha - 6 Oct 2005 6:11 PM - 5 messages
I have a small Window application and through out the different forms I create a different dataset.  At the begining I used the Tools to drag and drop the SqlDataAdapter, connection and dataset objects to the frist few forms but then later I removed those and created these objects in my code.  ...
Score User Control (WinForm)
Xaz - 6 Oct 2005 6:08 PM - 4 messages
Hi, if in a User Control I have a button, this User Control I add it to a Form which has a Textbox, when doing click in the button i want to complete the textbox, how to? Greetings. ...
Score Can a Derived Class Subscribe to Base Class' Events?
Jerry Nixon - 6 Oct 2005 5:46 PM - 8 messages
I hope this is easy, First, I simply must not override MyMethod as shown in the sample code - that is an unbreakable requirement. The purpose of the event is to allow me to extend MyMethod inside the derived class, within MyMethod's ...
Score Is this bad practice?
Nick Z. - 6 Oct 2005 5:41 PM - 4 messages
Consider the following code: class Log {     private static StreamWriter w = null;     private static XmlTextWriter tw = null;     private void InitWriter()     {         w = new StreamWriter("log.xml", true, Encoding.Unicode); ...
Score dynamically loading an assembly from a service (windows DRM)
Ollie Riches - 6 Oct 2005 5:14 PM - 8 messages
I am trying to dynamically load an assembly that has a reference to 'Interop.WMEncoderLib.dll' which is a PIA to the windows media player DRM components. When I run the code from a console application it works perfectly fine, but when the assembly containing the reference is load from ...
Score tools for detecting performance bottleneck and deadlocks
yaron - 6 Oct 2005 4:59 PM - 2 messages
Hi, I am looking for tools for detecting performance bottleneck and deadlocks in c# application. Thanks. ...
Score Async callbacks in C#
eminemabcd - 6 Oct 2005 4:48 PM - 2 messages
Hi, I encountered a problem trying to write a code that does the following: 1. Main GUI thread invokes a delegate using BeginInvoke. 2. A secondery thread (from the application's managed thread pool) starts executing and BeginInvoke returns. 3. Main GUI thread remains responsive while the secondery thread ...
Score Using an internal class as type of a field marked protected intern
Kolozs, Áron - 6 Oct 2005 4:37 PM - 3 messages
Hi everybody, The C# compiler reports a Compiler Error CS0052 in the following situation: I declared a type marked as "internal": namespace MyNamespace { internal class MyInteralClass { //     ... } /* I tried to use this type in a public class, and I want it to be accessible ...
Score Rule of Thumb for a Protected Dispose() Method?
Cody Powell - 6 Oct 2005 4:35 PM - 7 messages
Greetings all, I'm wondering if there's a rule of thumb related to objects that implement IDisposable, but whose Dispose() methods are actually marked as protected.  If you dig around System.IO, you'll see a lot of these, ...
Score Handle COM events
Max - 6 Oct 2005 4:11 PM - 6 messages
I have some code that launches MS Outlook and creates a new email message then gives control of the Outlook application to the user by displaying it on the screen. The problem is that when the user closes the Outlook application or sends an email ...
Next »