Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Update database gives an error
Monica - 3 Mar 2007 11:27 PM - 3 messages
Hi, I am developing a web page with ASP.Net using C#. When I want to update date base I receive a exception message as following: ERROR:No value given for one or more required parameters. I don't know what's the problem. because everything seems fine. ...
Score Refresh Controls in my web page
Monica - 3 Mar 2007 10:01 PM - 2 messages
Hi, I want to develop a web page with ASP.NET using C#. is there any Command in C# like UpdateData in VC. Because, when I change my Combo Box or Edit Box, they don't give new information. I want to use a command that when I press a button, my Data became refresh. ...
Score Remove double quotes
Asif - 3 Mar 2007 8:36 PM - 3 messages
Hi all, I am trying to remove the following characters in string. 1- Double quotes (") 2- Black slashes ("\") Can anyone help me out how to remove them from string? Thanks in advance Asif ...
Score Using command line from C# code
Apoorv Khurasia - 3 Mar 2007 8:19 PM - 2 messages
Hi I am trying to build a system information utilty in C#. I want to use some of the command line features e.g. @systeminfo and @find etc. How can I use them in Visual C#? Any help would be deeply appreciated. ...
Score Properties.Settings.Default (application.exe.config) am I losing my mind?
DaBrain - 3 Mar 2007 8:09 PM - 4 messages
I have a program that uses settings. When I save my settings they are saved: Properties.Settings.Default.Save(); when I restart the application, my settings are present, the changes are in fact saved. All is good! However, When I go to the application Folder application.exe.config ...
Score Will Orcas target Win XP?
David Veeneman - 3 Mar 2007 8:00 PM - 5 messages
Will Orcas target Windows XP (using .NET 3.0) when using WPF, or will it only target Vista? I'm getting ready to start a project on which I'd like to use WPF, but I'm going to have to target both XP and Vista computers. Thanks ...
Score troubles Setting IP address for each NIC
Billy Bob - 3 Mar 2007 6:21 PM - 4 messages
Hello I've got three network adapter on my machine, and I'm looking to use WMI to set the IP address of each apapter but I need some help.  My network adapters are Intel (R) Pro/100 VE, PRO/1000 CT, PRO/1000 MT and I want to ...
Score web service returns dataTable
Bllich - 3 Mar 2007 6:11 PM - 6 messages
hello I have a web service method named "gettable" that returns DataTable from my database using table adapter.getData(), but when I call it from my winform client it says that method returns 'gettableResponseGettableResult' type, so I can't show it in datagrid on my form. ...
Score Import large text file to a MS Access database
mfrsousa - 3 Mar 2007 4:36 PM - 15 messages
hi there, i have a huge large text file (350.000 lines) that i want to import to a MS Acccess Database, of course i don't want to use Access, but do it with C#. i already have tried the AddRow method or Insert, reading each line of ...
Score Implementing IDisposible on light objects
joe.carr - 3 Mar 2007 4:24 PM - 3 messages
Hello, A discussion arose recently in a code review about whether or not one should implement IDisposible (and then call it) on an object which has neither unmanaged resources nor managed resources which are resource intensive (db connections, filestreams, etc.). It seems to me that if ...
Score C# grotty graphics
rayreeves - 3 Mar 2007 4:20 PM - 8 messages
If I look for guidance on this topic I find simple examples like this: public class Form2:Form  {   public Form2()  {    this.Text = "FORM2";    this.Size = new Size(450,400);    this.Paint += new PaintEventHandler(Draw_Graphics); ...
Score Alternative to global variables in c++: Newbie
weird0 - 3 Mar 2007 3:19 PM - 9 messages
Is there any alternative way to work in c# as if i want some variable or object to be globally available in c# just like i can do it in c++ b defining on top of main(). ...
Score Copy/Paste in menu
alunharford - 3 Mar 2007 2:30 PM - 2 messages
I have a reasonably sized MDI application, where some of the MDI children are opened by plugins whose code I (potentially) have no control over. If I press control+c, the text I want to copy is copied to the ...
Score Generics without direct instantiation
Mark Rae - 3 Mar 2007 1:14 PM - 7 messages
Hi, This is just for my own interest - I don't actually want to do it, I'm just curious to know if it's possible... Say we have the following method which accepts a List<string>... private void MyMethod(List<string> plstMyList) ...
Score CrystalReport ReportDocument.Load Exception
Jason Huang - 3 Mar 2007 6:51 AM - 4 messages
Hi, In our .Net 2003 + CrystalReports 10, do we have an Exception Handler for ReportDocument.Load? Thanks for help. Jason ...
Score Twelve Proofs that Muhammad is a True Prophet
lovelydiab - 3 Mar 2007 5:18 AM - 8 messages
My brothers and sisters everywhere! With this essay, I am not singling out the adherents of Islam - to which I ascribe - but rather I am writing this essay to every man and woman throughout the whole world. I ask Allah that He facilitates tat this essay reaches every ear, ...
Score possible to skip code from sub functions?
not_a_commie - 3 Mar 2007 5:17 AM - 4 messages
Is it (even remotely possible) to do the following: class jump { void A { go out of this function then skip to C } void B { do something bad } void C { do nothing } } main () { jump = new jump jump.A jump.B // this line of code got skipped ...
Score Copy OLE object from Clipboard
Ludwig Wittgenstein - 3 Mar 2007 1:47 AM - 2 messages
Hi, all.   Here's the scenario: I embedd a .txt file in Word as OLE object, then I copy it (manually), so now it's on the clipboard. How do I programatically (in C#) get that OLE object file from the clipboard ...
Score Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was cre
Joe - 3 Mar 2007 12:49 AM - 7 messages
I've been getting this message at all different times since a few days ago. I understand the message but not why I get it. I don't have any other threads. This happens when closing dialog boxes, doing a drag and drop and a few ...
Score Invoking Win32 SendMessge
Zytan - 3 Mar 2007 12:31 AM - 12 messages
Most code on the net is wrong.  This is SendMessage(): LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); All of those parameters are 32/64-bit in size depending on the compiler, except for UINT which is a C int, which is always 32-bit, ...
Score Sealed
Hilton - 3 Mar 2007 12:09 AM - 8 messages
Jon Skeet [C# MVP] wrote: I for one wish the "sealed" keyword on a class didn't exist.  Why can I not have: class NamedThread : Thread {   string name; Please help me understand why any class would be sealed.  You don't want to ...
Score Opinion wanted
Jack White - 2 Mar 2007 11:23 PM - 12 messages
Hi there, Is there a general approach for preventing users from selecting a menu item in an SDI or MDI application whenever the current field on your form is invalid (assuuming the app consists of a data entry form). In my case, I'm ...
Score convert (single) char to string
Zytan - 2 Mar 2007 11:18 PM - 6 messages
I am surprised that a single character string is not auto-created from a single char.  It is hard to find information on converting a char into a string, since most people ask how to convert char[] to string. ...
Score MDB file and Primary Keys
Chris - 2 Mar 2007 11:18 PM - 3 messages
When I use the ADD button on the navigator, it creates a primary key based on the dataset, lets say 9.  Whne I go to save the record, Access won't take it because it it not the next key available. Even though 9 does not have a ...
Score How do I allow an end user make modifications to a rdl that I created using Report Designer
Rob Dob - 2 Mar 2007 11:09 PM - 3 messages
Hi, I have several reports ( .rdl) that I created using report designer, how can I let the end user make modifications to the text in some of these reports. As I am unable to use Report Builder to modify reports ( .rdl ) created with ...
Score View IL while debugging
Maxim - 2 Mar 2007 11:02 PM - 2 messages
Hi all, Is it possible to see IL code while debugging the application? I can see asm code in disassembler view, but I'd like to see the IL code too. Thanks ...
Score aspx-file created on the fly?
Fritz - 2 Mar 2007 11:01 PM - 4 messages
hi, i am currently investigating a bug in a complex code project. unfortunately i cannot ask the developer having written it as he has left the company. the thing is: a .cs-code-behind-file of an .aspx-page interacts with ...
Score Does RichTextBox need "\r\n"? Is "\n" good enough?
Zytan - 2 Mar 2007 10:21 PM - 9 messages
In VB, you use ControlChars.CrLf (or better, ControlChars.NewLine). In C/C++, we are used to using merely "\n" (or at least I am).  It appears "\n" is good enough for RichTextBoxes.  Does it matter?  I am ...
Score How do I control file version numbers
Jim H - 2 Mar 2007 9:52 PM - 3 messages
My AssemblyInfo file has [assembly: AssemblyVersion("1.0.*")] My file version is now 1.0.2594.35196 How do I control this.  Where is this stored?  What is the difference between build and revision? Thanks in advance, jim ...
Score maintain state of application for each user
Steve Richter - 2 Mar 2007 9:26 PM - 3 messages
I would like store and recall user settings and window state for each user of my application.  By state I mean recalling at application start the location in a list view the app was at the last time it ...
Score EventLog class / Windows event logs
Zytan - 2 Mar 2007 8:56 PM - 3 messages
What's a Window event log?  EventLog documentation basically assumes the reader knows what it is.  It says the following: [link] "EventLog lets you access or customize Windows event logs, which ...
Score assigning, declaring and accessing dynamic variable
mamun - 2 Mar 2007 8:27 PM - 4 messages
Hi all, I am trying to create variables dynamically. This is needed because the user interface can have ten different textboxes with name as txt1, txt2 and so on. I would like to get values of all and then run in ...
Score Discrepancy between Math.Round and ToString( "F" ) method
Zeng - 2 Mar 2007 8:14 PM - 7 messages
Math.Round has good behavior as following: Math.Round(3.45, 1); //Returns 3.4. The last '5' is thrown away because 4 is even Math.Round(3.75, 1); //Returns 3.8. The last '5' is used because '7' is odd ...
Score Blocking Windows Port using C#
VeryMaqbool - 2 Mar 2007 8:09 PM - 6 messages
Does anyone know of a way, using C#, to programmatically block a Windows port? Futhermore I want to know how can we map processes to the ports opened on a computer using C# and without using existing softwares... can anyone suggest some techniques... ...
Score Passing arrays to C# from VB6
Luke - 2 Mar 2007 7:08 PM - 2 messages
Hi folks, newbie here of course. I have a COM Interoperable assembly written in C#. One of the exposed classes has a method which takes an array of int's as one of the parameters. If I call this function from a VB6 program, how do I pass the array parameter? ...
Score Web Site Administration Tool on production server
Michael - 2 Mar 2007 5:23 PM - 2 messages
Hi, I have a site I built and have been using the Web Site Administration Tool to administer my users on my development machine.  But now I have moved my site onto my production server with a production SQL server.  How can I go in ...
Score Case Insensitive string comparison
anonieko - 2 Mar 2007 5:16 PM - 7 messages
Is this a long way to compare strings ignoring the case? if  (   string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0 ) {    // etc. } ...
Score modify designer generated c'tor that calls InitializeComponent?
Zytan - 2 Mar 2007 5:06 PM - 3 messages
When you create a Windows app, you get a two files pre-made each with a partial class of the same class, and you also get a c'tor of your class which calls InitializeComponent().  I guess this is cool, since ...
Score Generics/Constructor
JimHeavey - 2 Mar 2007 5:05 PM - 4 messages
I am trying to follow along with an example about how to create a generic collection which is "Type" drivern (the article is here [link] - I think you have to have an account to actually see the article...but anyway). ...
Score Safely Raising Events in Multithreaded app.
smkramer072fdasfasdf - 2 Mar 2007 4:40 PM - 4 messages
This questions is in reference to the article on Using Events in the C# Programmers Reference ([link]). Under the Rasing Events section it says in order to avoid a race condition ...
Score Setting enum values in a web service
Tom Jones - 2 Mar 2007 4:19 PM - 2 messages
I am attempting to consume a web service with an enum parameter and not sure how to set a value for it. It looks as follows:     [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.30")]     [System.SerializableAttribute()] ...
Score Dtatgrid reorders columns on Databind
LQQKIN - 2 Mar 2007 4:11 PM - 2 messages
Hi everyone. I encountered a weirdest problem. Every time i databaind a dataset to the grid it reorders the columns. Any ideas???? Thanks a lot! ...
Score String lists resource editor for localization. Advice please
Claire - 2 Mar 2007 4:06 PM - 2 messages
Im writing a small application to allow some none techy people create localized string resources for our main application. So we can reuse modules each one has its own .resx resource file. So my string resource editor needs to be able to work on a project ...
Score RTF log file
Zytan - 2 Mar 2007 3:59 PM - 6 messages
I need a log file, and RTF is good since color formatting can help find the interesting parts.  I want something that I can code quick. Would the easiest way be to write to a hidden RichTextBox, grab the ...
Score Designer Controls With ArrayList type property.
Alvaro E. Gonzalez V. - 2 Mar 2007 3:00 PM - 4 messages
Hi; I'm doing a UserControl and add a ArrayList type property. But this property is not set correctly in design time from Designer. What is the better way to do it? Thanks Alvaro. ...
Score Find the encoding of an XML char array (or stream) stored in memory
Martin Z - 2 Mar 2007 2:40 PM - 4 messages
Hi, I have an application that involves sending a lot of XML data to various places.  The problem is that once in a while, I just want the XML document as a string (for example, sending to a typed dataset ...
Score Free FFT implementations
Jon Harrop - 2 Mar 2007 2:12 PM - 6 messages
Are there any free FFT implementations for .NET that work for arbitrary "n"? ...
Score C# Excel question
BrianDH - 2 Mar 2007 2:06 PM - 5 messages
Hi Does anyone know of a way (via code behind) to pull a single sheet out of a Excel workbook and convert it to a stand alone html document? Thanks Brian ...
Score C# ActiveX Control won't load on some machines, does on others
Artie - 2 Mar 2007 2:03 PM - 7 messages
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions.  On other PCs, the ActiveX control doesn't even seem to get loaded.  (On the failing machines, if we try ...
Score Newbie question please help
jed - 2 Mar 2007 1:32 PM - 4 messages
I have a 2 windows forms the first form needs to retrieve a numeric value in a textbox on the second form.The second form is a calculater and i need to send the calculated value in the textbox back to form1 when i click the calculate key.Is ...
Score How to call functions in another namespace from a dll
Hans - DiaGraphIT - - 2 Mar 2007 1:31 PM - 8 messages
Hi! I have a WinFrom solution with variouse forms and classes. Lets name the namespace to <MyTest01>.  I've developed a dll <statistics>.  The dll <statistics> needs to reach some of the classes/functions in <MyTest01>.  An example: ...
Score image
Hrvoje Voda - 2 Mar 2007 12:41 PM - 2 messages
I'm using picturebox. When I wnat to clear image from it, I call picBox.Image = null;. But it doesn't work. Hrcko ...
Score How to avoid NameSpace repetetion, in inheritance in different files.
Sugandh Jain - 2 Mar 2007 12:34 PM - 2 messages
Hi, The problem to which I am looking for the solution is as under. I have a  abstract class and there are multiple classes inherting it to implement some method(s). All the class files, are in different physical files. The common using ...
Score MetaData in .txt and .doc
Ivo - 2 Mar 2007 11:59 AM - 6 messages
Hi, I need help with creating .txt and .doc files form c#. I know how to create these files so that they contain the text I want, but besides that text, I also need to write metadata (hope that the term is right) to these files. ...
Score Restricting Generic type parameter T to int, uint, short
KK - 2 Mar 2007 11:11 AM - 2 messages
Dear All     I'm planning to develop a class for my project which can operate on only few known data types For example : public class MyOperations<T> {     public T[] ChangeBounds()     { ...
Score Regular Expressions question
Monica - 2 Mar 2007 10:23 AM - 6 messages
hi, How can I verify a valid phone number contain 0-9 and characters (   )  - and whitespace. for example: (416) 424-1234   or   416- 424-1234  or 4164241234 how can i use from Regular Expressions (C#)? ...
Score Official Burt Young Website Launch!
steffywrites - 2 Mar 2007 10:17 AM - 2 messages
The official website of Burt Young has been launched. Burt Young, the Academy Award nominated actor and maverick artist, has launched a wonderful display of paintings. The website is a literal library describing milestones, film and art. He can be browsed at: ...
Score UserName of the use who last modified a file in Windows
mazen.s.m - 2 Mar 2007 10:11 AM - 10 messages
I have been trying to find a way to get the Domain and UserName of the user that last modified a file. I know how to get the owner of the file via WMI or Win32, but I can't ...
Score Is is possible to call a C# user interface asociated to a lib file so as to be called by a C console
pableratz - 2 Mar 2007 10:07 AM - 3 messages
I have programmed a multi thread C control application, and now I want to add User interface functionality to my main thread. I would like to know if i could generate a library from a C# Screen and call it from ...
Score Can't connect to SQL 2005
Bob - 2 Mar 2007 9:04 AM - 5 messages
Hello folks, I am tring to create a connection to a SQL Server 2005 database but cannot. I get an error messahe that SQL Server does not exist or access denied I have tried Windows Authentication and I have tried SQL Server ...
Score validating xml file in .net2.0
cellardoor0716 - 2 Mar 2007 7:51 AM - 2 messages
I´m trying to validate a xml file against schema... I had to migrate my code from .net 1.1(where I was using XMLValidatingReader and it was working just fine...) to .net 2.0. The XMLValidatingReader became obsolete, so I tried the XMLReader instead, but I always get only the ...
Score Programming Office with CSharp
Alan T - 2 Mar 2007 6:10 AM - 3 messages
I recently programming Word application/document in CSharp but got several problem. Any pointer to get started? ...
Score Add quote
Alan T - 2 Mar 2007 5:57 AM - 4 messages
I want to add a double quote to a string: "John" Why it should work this way: String name = "John"; String myName = @"""" + name + @""""; But not String myName = @""" + name + @"""; As I added a @, I think just one double quote is enough. ...
Score RadioButton&Datagrid
rcoco - 2 Mar 2007 5:28 AM - 2 messages
Hi, I'm using RadioButtons in datagrid But When I select one I can't unselect it and when I select the others they cannot unselect the other instead they are selected all at once. how could I go about this ...
Score Need to test my TcpListener. What apps are sending data to tcp ports...
Charlie@CBFC - 2 Mar 2007 5:07 AM - 2 messages
Hi: I need a way to test my TcpListner, but not sure what applications are sending data to tcp ports.  How about Email or Instant Messenger?  If they are tcp, what ports are they sending data to?  Any other suggestions? ...
Score StreamReader / StreamWriter vs System.IO.File.*?
Zytan - 2 Mar 2007 3:30 AM - 16 messages
I have installed the Visual C# 2005 Code Snippets, and the snippets for file handling use StreamReader and StreamWriter, instead of System.IO.File.*.  VB 2005 code snippets don't use these.  Why are they suggesting the use of these classes instead of the fundamental ...
Score Insert string into database
Monica - 2 Mar 2007 3:05 AM - 2 messages
hi SQL queries does not recognize *$()!.,?/\[]{};:'"&^+=<>|. if I have a variable alike this: Date = "Thursday, March 01, 2007 - 9:53 PM"; how can I inset in my database? strCommand = "INSERT INTO Profiles (Date) " +                       "VALUES ('" + Date + "')"; ...
Score C# Form focus and Alt-Tab
claudioillanes - 2 Mar 2007 1:48 AM - 4 messages
I'm a beginner with C#. I've got a Forms C# application that has an AxWebBrowser component embedded. While the C# application runs, a user is filling out some text boxes in the AxWebBrowser. If they then alt- tab out and alt-tab back into the C# forms application, their blinking ...
Score Insert string into database
Monica - 2 Mar 2007 12:46 AM - 4 messages
hi, how can I solve this problem? should I write some code or this is provided by Microsoft? string FirstName = "Monica"; string Number = "123456789"; strCommand = "INSERT INTO Profiles (FirstName, LastName) " +                           "VALUES (FirstName,  Number)"; ...
Score Word application quit
Alan T - 1 Mar 2007 11:38 PM - 3 messages
private Interop.Word.Application _wordApp; What is the differences betwenn _wordApp.Quit(...) and _wordApp.Application.Quit(...) ? ...
Score Going nuts with DataBinding a ListBox (winforms)
sklett - 1 Mar 2007 11:26 PM - 2 messages
I've setup the simplest of tests; A form with a ListBox and a Button.  The ListBox is bound to a List<string>.  When you click the Button, a new string is added to the list. ...
Score Listening to windows messages from a windows service
andrewbb - 1 Mar 2007 11:17 PM - 3 messages
I'm developing a windows service that needs to listen for a particular WM_ message.  Is there a way to listen for a message from .NET service application? This would seem to be a simple thing, but I haven't seen anything on ...
Score Strange String Sorting
escher4096 - 1 Mar 2007 10:54 PM - 3 messages
Hi all, In C# 2.0, if I take a set of strings and toss them into an ArrayList and then sort them it does not always work as expected. I used some garbage data (I just grabbed the using statements from the ...
Score Question about visibility/ modifications of objects
Martin Pöpping - 1 Mar 2007 10:26 PM - 6 messages
Hello, I´ve a general question about the visibility and modification of an object. I will try to explain it in my code, where I have the problem: DocumentList dList = initDocuments(thesaurus); for (int i = 0; i < testRuns_; i++) ...
Score What is the best way to modify report ( .rdl ) within c# winform app
Rob Dob - 1 Mar 2007 10:04 PM - 3 messages
Hi, I have several reports within my c# winform application, I need to be able to give the user the ability to make minor modifications to some of these reports prior to running them.  Currently I am making use of both .rdl and ...
Score BindingNavigator and Access
Chris - 1 Mar 2007 9:41 PM - 2 messages
I have an access database dataset which a draggedonto a form which also put the data navigator on the form. The problem is that when I ADD a new record witht he add button, it gives me a primarykey that has already been used and ...
Score How do I add an Icon to my project?
trint - 1 Mar 2007 8:25 PM - 2 messages
I already have the icon added as an item in the solution. I tried this: this.Icon = ((System.Drawing.Icon)(resources.GetObject(@"C:\Inetpub \wwwroot\c#NewTest\WebResponse3\WebResponse\WebResponse\wr3.ico"))); and Nothing. Any help is appreciated. Trint ...
Score Help with simple XPath query?
sherifffruitfly - 1 Mar 2007 8:22 PM - 3 messages
Hi all, I'm never gonna get the xml part of c#.... sigh.... My xml file is structured as so: <?xml version=.....?> <TheAs> <TheA filename="name1" enabled="true" /> <TheA filename="name2" enabled="false" /> ...
Score StatusStrip ProgressBar
Aaron - 1 Mar 2007 7:05 PM - 3 messages
Since some controls such as the DataGridView take a long time to update themselves when performing certain tasks, I have added a StatusStrip with a ProgressBar on it.  While I am updating the controls on the form, I want the ...
Score Interop
Hugo Mind - 1 Mar 2007 6:36 PM - 2 messages
Hi, I have a DCOM DLL with a method expecting me to send parameter as LPSTR     Sub SendCommandArg1(ByVal Command As Long, ByVal Size As Long, ByVal Arg As LPSTR) Is there a way to convert c# string into LPSTR ? ...
Score How is memory managed for Database connections and DataReaders
Mike - 1 Mar 2007 6:14 PM - 5 messages
Assume i have a db connection and a datareader for that connection.  Now I perform a query that retrieves 100MB of data.  I know that the data reader gets 1 row at a time.  However, there is a result set out there that is ...
Score Current Microsoft Imagin Cup Project
j1mb0jay - 1 Mar 2007 5:24 PM - 5 messages
Please can you have a read of my latest project design. Just wondering if anyone can think of things that I have missed out. Have spent lots of man hours hacking this together. Be honest....... [link] ...
Score correct syntax for system.net.mail
Mike P - 1 Mar 2007 5:07 PM - 2 messages
I am building a message body to be sent by email, but I can't seem to get the correct syntax for 2 lines where I am defining the <form> and trying to pass parameters and where I am creating a hyperlink and again ...
Score Q: returning wrong type from GetEnumerator?
rchf - 1 Mar 2007 4:10 PM - 4 messages
I know this is simple problem but I am so new that there is some fundamental disconnect in my understanding of: Enumerable, Enumerator, and Generics.  As a result I am having a problem debugging this error message "Error    1    'SimpleSite.Email.Model.Hosts' does not implement interface member ...
Score Serialization of an Inherited Class.!
R Karthick - 1 Mar 2007 3:52 PM - 2 messages
I am new to serialization. Apologies, if my question sounds really basic. Stuck in this problem for the last two hours. Thought, will ask the experts instead of banging my head more. This is what I have..! <code> ...
Score Control Dock question
DBC User - 1 Mar 2007 3:12 PM - 4 messages
I am trying to put 2 controls in a page where I want the first control to have 80% of the screen and the second control 20%. How can I do that? I used control property to set the first one to Top and the second one ...
Score System.DirectoryServices - Constraint violation
Peter Bradley - 1 Mar 2007 2:58 PM - 6 messages
I'm trying to use System.DirectoryServices to update Active Directory from a Web Service.  When I try to commit the changes, I get the following error message: "A constraint violation occurred. (Exception from HRESULT: 0x8007202F)" My code is like this: ...
Score "AddressAlreadyInUse" error calling start() on TcpListener...
Charlie@CBFC - 1 Mar 2007 1:58 PM - 3 messages
Hi: I'm creating a simple port listener.  When I call start() method it returns "AddressAlreadyInUse" error.  He is my code... Int32 port = 80; IPAddress localAddr = IPAddress.Parse( "127.0.0.1" ); TcpListener server = new TcpListener(port); server = new TcpListener( localAddr, port ); ...
Score Good tutorial for making an image based GUI?
ShieldsJared - 1 Mar 2007 1:51 PM - 5 messages
Im looking for help making a good GUI out of pure images.  I would like to embed the common controls and such, but I want to make a nice looking GUI, similar to that of, say Windows Media Player.  I'm not ...
Score Best way to detect cause of lockups
Adam Benson - 1 Mar 2007 1:14 PM - 9 messages
Hi, We have a multi-threaded app, which has a windows form front end. We think we have been pretty careful to ensure that nothing but the UI thread alters controls on the form. But we've started experiencing lock ups. ...
Score Hide warning: "Generic classes may not be exposed to COM"
Torben Laursen - 1 Mar 2007 1:14 PM - 6 messages
I am writing a COM in C# using visual studio 2005 and VSTO. Inside the code I use some support classes that are generic but they are not used in the inferface of the COM. However I still get a number of warnings from the compiler like: ...
Score Article updated: generics in C# 2.0
ludwig.stuyck - 1 Mar 2007 1:05 PM - 5 messages
Hello, I updated my article on generics with databinding and serialization/ deserialization. Summary: Generics are one of the most useful improvements in the .NET 2.0 framework. In this article I start with pointing out the disadvantages of using the classical arrays and .NET collections, and ...
Score File and Folder Browser
Tom P. - 1 Mar 2007 12:39 PM - 3 messages
I have searched and the only stuff I can find is out of date (or I can't figure it out). I'm trying to make a browser that will accept Files or Folders as a target.  First off, does this even sound logical?  I'm making a sync ...
Score Read REG_BINARY Value into its string equalent - 010307
vighnesh - 1 Mar 2007 12:23 PM - 6 messages
Hi Folks Greetings to you all. I am dealing with a project ( windows application ) in which I have to read the REG_BINARY value from the Registry and get its string equalent ( the ASCII text value ). Can anyone please suggest me how ...
Score I have a question about declaring the Global.ascx:
TARUN - 1 Mar 2007 12:19 PM - 3 messages
I have a question about declaring the Global.ascx: In VS.NET I create a Solution, and there are 4 projects under it. They are put under 4 folders, but web pages would be called across the 4 projects. For example, web page Page1 in Project1 will redirect to web ...
Score XmlSerializer: how to not serialize properties?
Beorne - 1 Mar 2007 10:28 AM - 3 messages
I'm serializing a big class using XmlSerializer (I need xml serialization cause compact framework). I've learn that all my fields must be public. Ok. Now it is completly useless to serialize my get/set properties, but I haven't found an anttribute like ...
Score What is the way to write a proper confirmation email using CreateUserWizard?
Mahernoz - 1 Mar 2007 8:44 AM - 2 messages
Hi Friends, I have a Registration page which uses Asp.net CreateUserWizard Control. Now I want to send a unique value(a guid) by which i can be sure that the email address is of that user only. I will provide a ...
Score Bitmap.LockBits fails to work as advertised..... !?
TheMadHatter - 1 Mar 2007 7:53 AM - 3 messages
I dont know if I missed something in documentation, but I was having a problem with "Bitmap.LockBits" and was wondering if anyone else has discovered it too. According to everyones examples including some of the MVP's website examples, one could use unmanaged ...
Score whats the best way to do this with buttons
Peted - 1 Mar 2007 7:13 AM - 2 messages
I have a form with 8 checkbuttons in "button" apearence mode each button press activates a relay device on a connected piece of hardware. For the relay device to activate a specfic relay it needs to get a number of the relay to be used from the button pressed ...
Score Caching Visited Web links.
Mugunth - 1 Mar 2007 4:32 AM - 2 messages
Hi, I want to write a program that could cache all the pages accessed from a computer, irrespective of the browser. Is it possible to intercept the port number 80 for this? How can I do this in C#? Is there any ...
Next »