Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score DAtagrid for Flat File
Thom Little - 30 Dec 2006 11:14 PM - 4 messages
I need to maintain data in a flat file (probably a tab delimited .txt file) and would like to access it with gatagrid.  I would populate it during startup and save it on exit. Can I access a flat file with datagrid?  If I can can you point me to a ...
Score How do I: Dynamically embed resource files (specifically, XML) (...)
CodeLeon - 30 Dec 2006 11:09 PM - 9 messages
Hi, All. I am creating a setup program. The way it works is that the user creates their setup info, my program generates the C# code for a setup executable, embeds the xml file containing the info for the setup, and compiles the whole thing into one EXE. How do i embed ...
Score Speed Freaks & Bit Fiddlers: Can you make this go faster?
Russell Mangel - 30 Dec 2006 9:39 PM - 10 messages
Can someone show me how to speed this up? 1. Whats the fastest way for Unsafe C#? 2. What the fastest way for Safe C#? public static Int64 ToInt64(Int32 low, Int32 high) {   Byte[] lowBytes = BitConverter.GetBytes(low);   Byte[] highBytes = BitConverter.GetBytes(high); ...
Score Compare Serialized object
Paez - 30 Dec 2006 4:49 PM - 2 messages
Hello There. I hava a Myclass [] obj1 in wich I add my computer hardware configuration. After this object is "filled", I serialize it, into a dat file. Then I deserialize it into  obj2 and I compare the original and the ...
Score combobox selectedindexchanged event
tbrown - 30 Dec 2006 4:47 PM - 6 messages
I have a combobox with items like this: {one,two,three}.  The selected index is 0, so "one" appears in the combobox text.  When the user drops down the list, and selects "two", for example, I modify the Items ...
Score help for changing the default installation folder
sunil - 30 Dec 2006 3:28 PM - 2 messages
Hi, I want to change the default installation folder to my own path. I did it by changing the application folder's DefaultLocation property. The installation works fine as long the path that I give is complete path. If I give relative path, there is an error. ...
Score TopItem & ListView [Win C#]
MikeY - 30 Dec 2006 2:36 PM - 2 messages
Hi Everyone, I am trying to ensure displayed items at the top most portion of my ListView when being added to my ListView, no matter where the items are being added with in the listview. So that the users can easily find where their added ...
Score How can you make a class register an event?
Shawn - 30 Dec 2006 1:04 PM - 4 messages
Here is what i am trying to accomplish. I have a group of user defined controls and i have a form. the form has a tab control and a menubar. the user defined controls will be add one to a tab ...
Score Stacktrace class and CLR 2.0
rani.yaroshinski - 30 Dec 2006 6:05 AM - 4 messages
Hi all, The Stacktrace class (system.diagnostic) in CLR 2.0 (Framework 2.0), still offers a constructor to allow showing the stack-trace of another thread. However, the usage involves suspending the diagnosted thread. Now, CLR 2.0 turns the Suspend method into obsolete, which leaves the ...
Score Best practice to allocate this byte array for this situation?
trevor.farchild - 30 Dec 2006 5:14 AM - 2 messages
Hi, long time reader, first time poster I have an application that will be doing this 5 times a second: Get a bunch of data from a NetworkStream and convert it into a Bitmap Therefore, the process looks like: Read the NetworkStream to find out size of the data ...
Score CSharp and Excel
gumbystation@gmail.com - 30 Dec 2006 1:00 AM - 7 messages
I am looking to take data from an excel spreadsheet into a csharp application to manipulate the data in various ways.  Currently, I am using VS2005 (self-taught C#) and Excel 2000.  I have researched into using the Excel.Application object and have successfully openned a ...
Score Memory leak
Frank Rizzo - 29 Dec 2006 11:54 PM - 6 messages
Hello, I have a very frustrating issue I've been working on.  I have a routine that does the following: 1.  Load a large (declared local to the function) DataSet from the database.  It contains 5 tables. ...
Score FileIOPermission
Emil - 29 Dec 2006 11:46 PM - 11 messages
When I compile the application and run it (on my computer) it works fine, by on the other computers exception is thrown: "Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." ...
Score Showing Save As dialog in C# 2.0 - Windows
Omer - 29 Dec 2006 11:01 PM - 3 messages
HI, I have showed a Save As dialog in ASP.Net many times. Now trying to show one in windows based application but to no avail, can anybody tell me how to do it ? My application is writing a file, and I just want a ...
Score Subject: ShockwaveFlashObjects breaks when I try to create a DLL.
Michael - 29 Dec 2006 10:47 PM - 3 messages
I had a program that loaded a Flash movie into a player and diplayed the length of the movie.  It was using AxShockwaveFlashObjects.  Now I want to make it into a DLL that I can run from the comand line.  Well ...
Score checking for an internet connection. how?
roger_27 - 29 Dec 2006 10:31 PM - 3 messages
the code below works great, but here is my problem: if I connect to dial up via the modem, and then disconnect the LAN, it will say "MODEM". if I connect the LAN back, it still only says "MODEM". I need it to be on modem, but let me know when "LAN" works again.. its gets ...
Score Remote Server Status
Thom Little - 29 Dec 2006 10:17 PM - 6 messages
What is the best way to determine if a remote server is available? HTTP server. Mail Server _______________________________________________ Thom Little    [link] Thom Little Associates, Ltd. ...
Score How do I get the file size of a JPEG and resize it if too big?
Karen Hill - 29 Dec 2006 10:07 PM - 4 messages
How do I get the file size of a JPEG and resize it if it is too big in terms of MB or KB?  I am using Windows Forms, .NET 2.0, C#.  I want to put this image in a database so I want to make sure it isn't too large ...
Score the pains of casting ushort + ushort...
xlar54 - 29 Dec 2006 9:52 PM - 2 messages
I have some code that ends up looking alot like: ushort x = (ushort)(m + b); whereas both m and b are ushorts also.  This is due to the automatic casting of values to int.  Some quick questions: 1 - Why?  Why would they do this, this way? Why not automatically cast ...
Score System Properties -> How to extract "User"
> Adrian < - 29 Dec 2006 9:34 PM - 5 messages
System Properties show the User. I would like to be able to extract that information in an application (not change it, only retrieve it). How can that be done? Thank you, Adrian. ...
Score Need help getting router's WAN ip
MrNobody - 29 Dec 2006 8:18 PM - 4 messages
I am trying to get my router's WAN IP using a WebRequest, but when I try getting a response I get the following error: The server committed a protocol violation. Section=ResponseHeader Detail=Header name is invalid    at System.Net.HttpWebRequest.GetResponse() ...
Score Question regarding this code and serialization...
VMI - 29 Dec 2006 7:50 PM - 2 messages
I'm working with these serializable classes, but I'm not really sure what they their purpose is. I understand what serialization is, but I'm not certain how this code is necessary. Once I instantiate myType class the way ...
Score Creating a 'console application'
Marco Shaw - 29 Dec 2006 7:29 PM - 4 messages
C# novice... Can I create a console application (think the Pine email reader or even 'edit' in DOS) where I can use my up/down/side arrows to move around the app? I'd want something with a simple menu system as well as popup functionality. ...
Score Help with documentation in Csharp
JC - 29 Dec 2006 6:33 PM - 7 messages
I like  your opinions about the best way of documenting the code in Csharp. To my particularly I like the solution given in VST 2000 but that they (Microsoft) removed of 2005. That you  think about Ndoc and others? What do you prefer for VS2005 and ...
Score Virtual file download from web page
Ethan Strauss - 29 Dec 2006 3:39 PM - 3 messages
Hi,    On a web application I want to be able to create files on the fly for users to download. I have currently done this by creating the files on an accessible location on my hard drive and then creating a link to the file on ...
Score Creating an adapter for an Image Web Control
hardieca - 29 Dec 2006 1:27 PM - 2 messages
Hi, I would like to create an adapter for the image web control to cure a pet peeve of mine. Currently, if I write out: <asp:Image ImageUrl="myPic.jpg" AlternateText="Some text" runat="server" /> the html that is emitted is: ...
Score DataRepeater
Amjad - 29 Dec 2006 11:19 AM - 3 messages
Hi i have datarepeater in which i have textboxes, how to create txtCustID_TextChanged event in datarepeater like simple textbox its easy double click it and it create automatically the event but in data repeater we have multiple textbox and cannot directly create event handler for that ...
Score Access form controls from another form
Paez - 29 Dec 2006 10:10 AM - 2 messages
Hi there. How can I modify a form control property from another form. Let's say, I have a frmMain that has a ToolStripMenuItem with the current user info. Then, I open another form (frmChangeUser) and after I enter a password in ...
Score How to use XmlWriter Class to convert a Object with data to Xml format?
Sugandh Jain - 29 Dec 2006 7:52 AM - 2 messages
How to use XmlWriter Class to convert a Object with data to Xml format? Regards, Sugandh ...
Score Xml element declaration with the namespace attributes
anoop.mangal - 29 Dec 2006 6:27 AM - 2 messages
I need to form an xmlelement like the declaration below: <message xmlns="http://abcd.com" xmlns:s2s="http://abcd.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="[link] message.xsd"> ...
Score How to set a disabled control's color
Jason Huang - 29 Dec 2006 5:49 AM - 2 messages
Hi, How to set the color of a disabled control, such as a disabled ListView's color to white? Thanks for help. Jason ...
Score using enums in refleciton
bshumsky06 - 29 Dec 2006 4:01 AM - 4 messages
Hi, I am trying to parse some text into c# commands using reflection.  I am new to this so there may be a simpler way of doing things.  Anyhow, the below code works fine except for enums.  PropHere is an array ...
Score Convert a DataGridView to HTML?
phrankbooth - 29 Dec 2006 3:53 AM - 3 messages
Hello, Is there a way to convert .Net2's DataGridView into an HTML table? Any pointers appreciated. Thanks, --PhB ...
Score setting form control property from class
tirrell payton - 29 Dec 2006 2:13 AM - 10 messages
Hello, I am trying to manipulate the properties of a form's controls from a class. I dont want to make the form's control public. Attached is a code snippet of what I am trying to accomplish: Public Form1() ...
Score DataTable or DataSet from XML
JohnAD - 29 Dec 2006 12:01 AM - 7 messages
Hello NG, Originally I posted this question on microsoft.public.xml but did not get any reply all day so cross posting it on this NG in hope of getting some answer - I have a very basic understanding of XML so need some help here. I have a ...
Score Kill a MessageBox
Dave Booker - 28 Dec 2006 10:50 PM - 4 messages
How can I kill or close a MessageBox that is shown in a thread that I later abort?  In the following code, the MessageBox will always stay open until closed by the user, even when the other event terminates first and the main ...
Score Digital rights management for images
Henrik Dahl - 28 Dec 2006 10:26 PM - 11 messages
Hello! I have some images (for instance in .jpg files) which I would like to apply digital rights management for, i.e. that only authorized users may wiew then using their www browser, i.e. if a non-authorized user is attempting to ...
Score Binary search class: small problem retrieving the last element in the ordered array
Bob Rock - 28 Dec 2006 9:53 PM - 12 messages
Hello, I have an array of strings and need to find the matching one with the fastest possible code. I decided to order the array and then write a binary search algo. What I came up with is the following. I noticed that if I set: ...
Score Trace class truncates string when it contains null chars???
Bob Rock - 28 Dec 2006 9:52 PM - 2 messages
Hello, using the WriteLine method of the Trace class I noticed that strings containing null characters (i.e. \0) get truncated in the output window at the first null char and anything that follows simply gets lost. I'm using ...
Score Retrieving from inside a static method the type of the containing class???
Bob Rock - 28 Dec 2006 9:51 PM - 9 messages
Hello, is there a way of retrieving the type of the class containing a static method from the method itself when it gets called? I have this situation: an abstact class that defines a static method, a class that derives from the abstract class and I need ...
Score Generic Container (Binary Tree) for Unique Values
randy1200 - 28 Dec 2006 9:08 PM - 5 messages
I need a generic container that will only accept unique values. I can work with strings or ints. The idea here is that the container must refuse duplicate values. Is there a generic container in .NET 2.0 that only accepts unique values? I ...
Score ASP.net 2.0 deployment
marc.cueto - 28 Dec 2006 5:09 PM - 4 messages
Hello, I'm trying to build a deployment package for an application that was migrated to ASP.net 2.0. My problem is that after I deploy the application, I still have to into the IIS manager, go into the web ...
Score Redirect Not working after UpdateItem
Rich - 28 Dec 2006 5:07 PM - 2 messages
Hi, I'm using a DetailsView in asp.net 2.0 and C#. After the UpdateItem(true) is hit, I want to redirect the page to the next page. The code won't do this though for some reason. As soon as the update is done, the same page just reloads. Could anyone help me with this? Here's a piece of the code I'm using: ...
Score ConstrainedCopy
JPS - 28 Dec 2006 3:28 PM - 5 messages
Can anyone show me an example of how to use the Array.ConstrainedCopy method.  The MSFT example is worthless. ...
Score Enterprise Library 2.0 - ExecuteDataSet doesn't closes the database connection - any idea?
-pb- - 28 Dec 2006 2:36 PM - 7 messages
I am using .NET 2.0 along with Data Access Application Block of Enterprise Library 2.0 in one of my wrapper class and what I observered is once the connection is left open after execution of ExecuteDataSet function of Database class. ...
Score Copy Files
samoore - 28 Dec 2006 2:08 PM - 20 messages
I am searching here... I am trying to create a Web App that allows me to copy a file from a server to a users local computer. I want the user to press a button and that should cause the file to be moved. I have created this locally on ...
Score CultureInfo and Decimal point.
Hector - 28 Dec 2006 1:37 PM - 5 messages
Hi, My application supports different languages, and i have a problem with the decimals: In this application, i receive datas like "10.528". When i use CurrentCulture = "en-US", no problem. But with "fr-FR" for example, there's a bug. ...
Score Changing default installation folder
sunil - 28 Dec 2006 1:16 PM - 4 messages
Hi, I dont know whether I am posting to the right group. If it is not the right group, please tell me. I want to change the default installation folder to my own path. I did it by changing the application folder's DefaultLocation property. The ...
Score Create command button with macro in a Excel using C#
Senthil - 28 Dec 2006 12:33 PM - 3 messages
Hi All       I need to create an Excel report and create a command button and have to run a macro on the click event that will print all the pages in the Excel workbook. I am able to create the report from the database but I am not sure how ...
Score Visual Studio 2005 Missing Web Controls
Jake K - 28 Dec 2006 11:53 AM - 3 messages
Any ideas why I cannot see the Web controls (panel, label, button, etc.) on the toolbox in VStudio 2005/new C# Web Application?  Screen shot attached. This seems to be a problem on both my Vista RC machince and XP Pro machine. ...
Score Visual Studio Missing Web Controls
Jake K - 28 Dec 2006 11:51 AM - 5 messages
Sorry if this is a repost... it didnt seems to send the first time. Any ideas why I cannot see the Web controls (panel, label, button, etc.) on the toolbox in VStudio 2005/new C# Web Application?  Screen shot attached. ...
Score binarywriter and buffer size?
fundoo_kr - 28 Dec 2006 10:41 AM - 4 messages
Check the following code ///Buffer to store the data byte[] data = new byte[DEFAULT_BUFF_SIZE]; ///Create a memory stream from the buffer MemoryStream memStream = new MemoryStream(data); ///Binary writer BinaryWriter newData = new BinaryWriter(memStream); ///Write the data newData.Write(Convert.ToUInt32(nResourceID)); ...
Score Application screen hang while process is running
Venedict - 28 Dec 2006 10:32 AM - 3 messages
Hi All, I have develop an application in C# 2005. When the application is running, the screen seem like hang and task manager is showing NOT RESPONDING. But the process is still running in the back end. How can I show the status on the status bar in the screen in C#? I have try ...
Score Serialize to Xml.
Sugandh Jain - 28 Dec 2006 9:31 AM - 8 messages
I am using a method to serialize objects to xml. this method is working fine to serialize most of the objects to Xml. For one collection object, it is not doing so. The Collection and its containing object are marked [Serilizable]. ...
Score Line numbers in stack trace
pavel.orehov@gmail.com - 28 Dec 2006 8:35 AM - 4 messages
Hi, I am using Environment.StackTrace to print the stack trace to the log when I have any exceptions in my application. When I work in development environment I see the line numbers in the trace without any problems. However when an application runs at the production PC deployed with ...
Score WPF - where does it fit in?
farseer - 28 Dec 2006 6:52 AM - 5 messages
Is WPF going replace Winforms? Where can WPF applications run currently?  Must you have .net3.0 installed? ...
Score WTD: IrDA software
hjgvhv uhhgvjuhv - 28 Dec 2006 6:06 AM - 5 messages
I am trying my hand at IrDA software. Google came up with so many hits, I am running in circles. Does anyone have any web site with decent explanation of IrDA operation ? Thanks donald ...
Score Converting Java Applet to C#
farseer - 28 Dec 2006 5:29 AM - 6 messages
Hi, i have an applet java applet which basically serves as a stock streamer..it connects to a data feed and show the bid/ask/last/etc info for a portfolio of stocks in real time.  I would like to convert this ...
Score Understanding Generics....
SpotNet - 28 Dec 2006 1:19 AM - 8 messages
Hello NewsGroup, Reading up on Generics in the .NET Framework 2.0 using C# 2005 (SP1), I have a question on the application of Generics. Knowingly, Generic classes are contained in the System.Collections.Generic namespace. Literature I have read on this ties generics in with collections, hence articulate their ...
Score C# Array question
Jason Huang - 28 Dec 2006 1:04 AM - 7 messages
Hi, In my C# windows form MyForm, I would like to have an array which is [string, SqlParameter] How do I declare this kind of array in C#? Thanks for help. Jason ...
Score AxWebBrowser events not firing
Nick - 27 Dec 2006 10:18 PM - 2 messages
Hello, I created a project a few years ago for a client that uses an AxWebBrowser control. It's always worked (and still does) when compiled with VS .NET 2003. We passed on the code so the customer could maintain it. They are using VS ...
Score How to: DataGridView (for WinForms) adding multiple bands...
JDeats - 27 Dec 2006 9:46 PM - 3 messages
Does the Microsoft DataGridView control support multiple bands (i.e. expanding rows with embedded grids). If not, can anyone recommend a good third-party solution for someone needing to manually build out a multi-band grid without a fixed data source. The Infragistics controls ...
Score PhysicalAddress From Endpoint
Dan Holmes - 27 Dec 2006 9:24 PM - 4 messages
How can i get a PhysicalAddress object if i only have an EndPoint object ? I have an app that is a terminal emulator (vt100).  When the telnet app connects i want to get the MAC of the terminal.  I can get the ...
Score ObjectMapper.net
qhaut - 27 Dec 2006 8:34 PM - 4 messages
Hello, First of all - sorry if this forum ist not the most suitable one for my question... I am using the current version from ObjectMapper.net and try to solve the following: Two Classes: Company Employee an employee can work for 0 ... n Companies ...
Score how to dial the modem in C#
roger_27 - 27 Dec 2006 8:29 PM - 5 messages
hey, does anyone have anything on how to dial the modem in C#? I have read about RAS and wininet.dll, and I have seen many examples but they are in VB/VB.NET and C++. I need a C # example on how to dial to an ISP using the ...
Score how do I use mshtml in my project?
MrNobody - 27 Dec 2006 7:23 PM - 4 messages
I want to use MSHTML in my project but when I try to add it as a Reference it says "A reference to 'C:\WINDOWS\System32\mshtml.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM ...
Score Bitwise - Capture bits shifted out
amyl - 27 Dec 2006 7:09 PM - 3 messages
I have a 32 bit number "3515261219" that really contains four 8 bit numbers. 11010001 10000110 10100001 00100011 Is there a way to capture the bits that are shifted out of the number when you right shift? If I can grab the bits this way I can right shift ...
Score How do I log in to web page using SSL with WebRequest?
MrNobody - 27 Dec 2006 6:53 PM - 3 messages
I use a 3rd party DNS provider to handle routing requests to a domain name I registered to my computer, whose IP changes every once in a while due to dynamic IP.  The company I use is called ZoneEdit. ...
Score Read data from an asynchronous Socket
Giulio Petrucci - 27 Dec 2006 6:23 PM - 3 messages
Hi everytbody, I'm experiencing some problems trying to asynchronously read data from a Socket object. What I do now is: 1) call th BeginReceive(...) method on the Socket object; 2) within the asynchronous callback method, call the EndReceive method, ...
Score WebBrowser Loading Question
Bob Bryan - 27 Dec 2006 5:34 PM - 2 messages
After adding a WebBrowser control to my form (VS 2005), and the following 2 lines of code to a click event:    webBrowser1.Navigate(new Uri(NextURL));    String PageData = webBrowser1.DocumentText; After stepping through the code, noticed that PageData was empty.  After the ...
Score I have 2 listboxes with SelectionMode = MultiExtended and I just cannot figure out why I get the err
Joao - 27 Dec 2006 4:42 PM - 6 messages
Hi all, I have 2 listboxes with SelectionMode = MultiExtended and I just cannot figure out why I get the error below: System.IndexOutOfRangeException was unhandled   Message="Index was outside the bounds of the array."   Source="System.Windows.Forms" ...
Score reading data from excel file
madhu sudhan - 27 Dec 2006 3:36 PM - 2 messages
HI, I want to read data from excel file and export this data to dataset. I know abt the basics of opening a file using application, workbook and worksheet classes. But i don't know how to read data from the excel ...
Score Windows Presentation Foundation: ContextMenu propagation using HierarchicalDataTemplate?
Henrik Dahl - 27 Dec 2006 3:13 PM - 2 messages
Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the synthesized MenuItem objects? Best regards, Henrik Dahl ...
Score LogonUser works only after installing SQL Server 2000
nild - 27 Dec 2006 2:09 PM - 7 messages
Hello i have a strange problem. I'm using LogonUser to impersonate the user under which my program must run. On Win XP or Server 2003 it works. But on 2000 it doesn't. So i found out, to set SE_TCB_NAME privileg - it ...
Score why does this return a negative vlaued number?
Jens Jensen - 27 Dec 2006 1:47 PM - 7 messages
Hello, Can someone explain why this function call return a negative number -2500? System.Math.IEEERemainder(7500,5000) I would expect 2500 . below the msdn reference of this function [link] ...
Score Sort FileInfo in ListBox
Dave - 27 Dec 2006 12:37 PM - 5 messages
I'm using the below code to populate a ListBox with file content information.  Sorting the information alpha/numerically is now an issue.  Would someone please let me know the best aproach to take in doing this. Thank You ...
Score C# and pipes
Laurent Navarro - 27 Dec 2006 12:01 PM - 8 messages
Hello,     I'm currently working on a multi threaded application and I would like to create a pipe to communicate between them: the main thread will write into the pipe some data and the working threads will read and execute. But ...
Score GridView
Bhagya - 27 Dec 2006 11:36 AM - 2 messages
Pls help..This is the scenario I have Name: TextBox Address: TextBox Add Button I enter Name Address and click add, one row gets added in the GridView. I again select Name Address and add another row in the GridView. ...
Score ComputeHash on large stream
semedao - 27 Dec 2006 11:15 AM - 3 messages
Hi, I saw that when I use ComputeHash on large file stream the ComputeHash method don't read all the stream first and than hash it , it's read it in chunks (memory performance?) How can I know the chunk size in each read ? ...
Score Reverse a Dataset
Paez - 27 Dec 2006 11:14 AM - 4 messages
Hi there. Anybody knows if is it possible to reverse a dataset? Lets say, if the dataSet has 10 rows, row 1 will row 10 and row 10 will be 1 and so on... Thanks in advance. Paez ...
Score HELP!!!, about security of asp.net control
jht5945@gmail.com - 27 Dec 2006 8:06 AM - 2 messages
I am using asp.net now, but I meet a asp.net security problem. I use select control like this: <SELECT id="selTokken" style="WIDTH: 144px" name="selTokken" runat="server"> <OPTION selected></OPTION> <OPTION value="1">111</OPTION> ...
Score Add chm file to help menu
gordon - 27 Dec 2006 5:35 AM - 2 messages
Hi I have an app that i have written a chm help file for. What is the best way to associate that with my help menu and the F1 key. I have added the file to the project already, just not sure of the best way ...
Score security Exception
Doug - 27 Dec 2006 4:58 AM - 4 messages
Hi I am using vs2005 on xp pro machines and i have a variable that is declared as: public string user = SystemInformation.UserName.ToString(); On one of my computers this works well and allows the variable 'user' to be set the the user login name., this then allows another method to use the ...
Score Crystal Report Engine isn't found
Pucca - 27 Dec 2006 12:45 AM - 4 messages
Hi, I'm using VS2003, .net 2005 and Crystal Report 11 Rel 2.  My C# application runs fine on my Development machine but when I create the setup .msi file and install it on another PC the Crystal Report gives an error about not able to ...
Score comboBox & data binding
> Adrian < - 26 Dec 2006 9:42 PM - 3 messages
What is wrong with this code? The values don't show up. private void Form1_Load(....) {     string [] test = {"one", "two"};     comboBox1.DataSource = test; } ...
Score image resouce not found
sklett - 26 Dec 2006 8:41 PM - 3 messages
I'm getting an error when I try to load a form in the designer: <rest of namespace>.Properties.Resources' has no property named 'SearchGo_icon'. When I look at the list of image resources I see the resource VS2005 is ...
Score Reading arguments
csharpula csharp - 26 Dec 2006 6:52 PM - 6 messages
Hello, I am reading a line of arguments from command line,here is an example of such line: convert -d 01/01/07 -n New File 3 -p C:\MyDocuments What is the best way to read it if for example New File 3 (which can ...
Score Static vs Non Static DAL Class(es)
Fred Mertz - 26 Dec 2006 6:48 PM - 11 messages
I'm wondering what some of the important considerations are regarding implementing the DAL as a static class vs creating instances of it as needed. I'm writing a .NET 2.0 Windows application (MDI) that will communicate with a SQL Server; approximately 120 users. ...
Score dismiss a listbox when mouseclick outside boundaries
tbrown - 26 Dec 2006 5:27 PM - 5 messages
I have a listbox on my form and I set it to invisible.  When a particular button on the form is pressed, I make the listbox visible and allow the user to select from it.  When the selection occurs, the listbox is made ...
Score Where's the background cursor?
Marcel Brekelmans - 26 Dec 2006 5:17 PM - 4 messages
Hi, I was wondering why the Cursor object doesn't have the 'working in background' icon (the combined hand/hourglass cursor, signifying that the computer is busy doing something, but you can still use it). I would like to use it in my own programm. ...
Score sending mail in windows form
DBC User - 26 Dec 2006 4:32 PM - 3 messages
I would like to know is there a way to I can do the same thing as 'mailto:' to in web forms? Thanks. ...
Score DrawString + Jusitfy
Gidi - 26 Dec 2006 4:08 PM - 3 messages
Hi, I'm using DrawString() Function, to create a document in "micorsoft word style". I know how to draw few font styls in the same row, but what i need now is to know if there is an option to adust the rows to have the  same length (like ...
Score avoid easy decompiling
--== Alain ==-- - 26 Dec 2006 3:17 PM - 8 messages
Hi, Using the .NET reflector tool, i know that a DLL or EXE developed in ..NET platform can be decompiled and therefore code is available for all. I would like to know if exist a way how to avoid tools like .NET ...
Score ListView and new features
--== Alain ==-- - 26 Dec 2006 2:21 PM - 2 messages
Hi, Several months ago i've asked some information about the best way how to have some particular columns (progress bar, checkbox, images, color picker,...) in a ListView component. It seems that ListView is a complex component and a lot of people advise ...
Score Cross: Access speed
Igor - 26 Dec 2006 1:43 PM - 17 messages
Can I use access for big database (cca 10-30 MB, cca 10-30k lines in database). It will be asp.net 2.0 aplication and very fast server. Mostly simple transactions (like SELECT * From Books Where Name like 'SomeName%'). ...
Score Need Help Encrypting String
manmit.walia - 26 Dec 2006 1:41 PM - 4 messages
Hello All, I have been given a file to convert to C# and being my bad luck the file is written in VB6 which I have no idea on how to convert the file to C#. I first thought that I would try the Visual Studio Wizard to ...
Score Memory leak while Hiding a form
Alex - 26 Dec 2006 1:02 PM - 12 messages
Hello all, I have a main form(say "form1") .i want to display another form(say "form2") on occuring of an event (say a button click) and want to hide it after some time so that it will again displays while occuring of the ...
Score Querying Solaris LDAP server
RJN - 26 Dec 2006 12:29 PM - 4 messages
Hi I've written a code that queries Windows LDAP server and works fine, but the same doesn't work when querying Solaris LDAP server. DirectoryEntry de = new DirectoryEntry("LDAP://server.com"); DirectorySearcher ds = new DirectorySearcher(de); de.Username = "xxx"; ...
Score how to configure my iis to send email from my Asp.net website (in
Hamed_1983 - 26 Dec 2006 11:38 AM - 4 messages
hi i have a asp.net website and i want to send mail from my site (in iis from my computer) to my mail(for example outlook),but how to configure my email seeting in my iis on my computer ? ...
Score Using serviceConnectionPoints
ssg31415926 - 26 Dec 2006 10:28 AM - 6 messages
Does anyone have any experience using SCPs (serviceConnectionPoints) in C#?  Specifically, I'm trying to use an SCP to locate a service on a server, once the service has created the SCP. I've found some documentation on MSDN (at: ...
Next »