|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual C# .NETmicrosoft.public.dotnet.languages.csharp
c (not c#) compiler
grs -
25 Mar 2006 7:51 PM - 3 messages
We work in C# but have a need to compile and create a DLL of c code. I have never programmed in c, can you do this in visual studio 2005. It is c not c++. Any suggestions would be appreciated ...
Reflection ?
Jarod -
25 Mar 2006 6:30 PM - 8 messages
Hi I have let's say 10 classes and I need a function that will call a method on them. But this method name is the same in each of this class. For this method class can be initiated by constructor without params. Is there a ...
Socket communication layer as a DLL - how?
Roodie -
25 Mar 2006 4:00 PM - 9 messages
Hello, I have a quite specific problem, and after half a day spent with Google, still no solid answer. The task: I have to write a C# class Library ( DLL ) to handle TCP socket communication. It will be called by a multithreaded server application ...
DataGrid without data
Lee -
25 Mar 2006 2:43 PM - 3 messages
Hello all, Could any provide a link to an example of using a grid without a datasource? I would like to manually populate the grid as well as format it. Thank you, ...
Deserialization ?
Jarod -
25 Mar 2006 2:25 PM - 5 messages
Hey Can I in simple way deserialize data from DataSet ( not typed ) to my object ? Let's say I normally will do this in that way : myObject.Name = row["Name"].ToString();... and so on. Is there a way to put ...
Retrieving Configuration Settings in VS2005
Dan -
25 Mar 2006 2:17 PM - 11 messages
I use the settings grid to create a setting named "ServerName". Now i want to retrieve it in code and i can't figure out how. This should be incredibly obvious but i cant get it. I have tried creating an AppSettingsReader and using ...
How to customise the DataGridViewColumn with a UserContro editingcontrol ?
Tsair -
25 Mar 2006 12:05 PM - 6 messages
I do a customise DataGridColumn with a UserControl (TextBox + Button for Calender), DataGridView does not show the data content of the column. ...
XmlTextWriter
quest -
25 Mar 2006 2:57 AM - 5 messages
Is there anyway I can generate the xml in the following format using XmlTextWriter ? Intended output: <?xml version="1.0" ?> I tried: XmlTextWriter xmlWriter = new XmlTextWriter(xmlFileName, null); xmlWriter.Namespaces = false; but i got : <?xml version="1.0" standalone="yes" ?> ...
Transparent Background
Scott -
25 Mar 2006 12:00 AM - 3 messages
Is there a way to make a control have a transparent background? Like a text box. Thanks, Scott ...
String Encryption
Lee -
24 Mar 2006 11:36 PM - 7 messages
Does anyone have any recommendation for encrypting simple strings to be stored in a db? Thank you, ...
SMS Messaging from a Windows form
RSH -
24 Mar 2006 10:39 PM - 9 messages
Hi, Im looking for some sample code on sending an SMS message to my cell phone from a C# Windows form project...does anyone know of any? Thanks, Ron ...
.csproj referenced libs lookup hierarchy
John A Grandy -
24 Mar 2006 9:34 PM - 2 messages
If in the .csproj file <Project><ItemGroup><Reference><HintPath> can't be found , then what is the hierarchy of locations that VS05 utilizes to locate referenced libs ? ...
Writing font details to a txt file
Lee -
24 Mar 2006 7:53 PM - 6 messages
Hi, How do you write out a Font's details to a txt file? So you can eventually read it back in a select the font! thanks in advance ...
How to use "is" operator to a type from Reflection
Johndow -
24 Mar 2006 7:38 PM - 3 messages
I have trouble to use "Is" operator to a type that is from reflection. Basically, here is what I want to do, if Class1 type is not from reflection: class Class1 { } public class Test { ... if (o is Class1) //to determine if object o is Class1, or is derivative ...
multiple inheritance
Mark -
24 Mar 2006 6:49 PM - 46 messages
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark ...
Trouble moving a VS project to a new location
RSH -
24 Mar 2006 6:46 PM - 2 messages
Hi, I am having a little trouble with a Visual Studio project. I moved and existing project to a Network share and now when I go to run the project in Debug mode I get an error saying "The operation could not be completed. The ...
GAC assembly versioning policy QFE behavior
jtyner -
24 Mar 2006 6:26 PM - 3 messages
I am trying to get QFE (Quick Fix Engineering) working with an assembly installed in the GAC. I have two books that claim if two different version of the assembly are installed in the GAC -AND- they vary only by revision ...
Is there a free software for .GIG files?
Doru Roman -
24 Mar 2006 5:53 PM - 2 messages
Hi, Is there a free software to generate .GIF files? If not, what is recommended? Thanks, Doru ...
RichText Dialog
Michael Rodriguez -
24 Mar 2006 5:10 PM - 9 messages
Does anyone know where I can find a cheap/free simple dialog popup editor that will allow me to edit with the RichTextBox control? ...
screenshot of graphics object (or access to it's image)
alex sparsky -
24 Mar 2006 4:45 PM - 3 messages
I've read a lot of posts about this but none that I could find dealt directly with how to do this in c#. If I have a graphics object at the end of a paint call that has been fully drawn on. How do I get a bmp/image/screenshot of the surface that it controls? ...
Need some tips on how to implement a timer
Flack -
24 Mar 2006 4:15 PM - 6 messages
Hey guys, Here is what I am trying to achieve: I have a grid, and every once in a while the grid will receive a message to add a new row and highlight it (change the backcolor) for five minutes. ...
Shared Source Common Language Infrastructure 2.0 Release
Alvin Bruney - ASP.NET MVP -
24 Mar 2006 4:10 PM - 4 messages
I found this interesting [link] ...
Downloading files in pieces with WebRequest/WebResponse
Richard K Bethell -
24 Mar 2006 3:49 PM - 2 messages
From what I am reading, a System.Net.WebRequest can be set to retrieve just parts of a file in the WebResponse, using the .AddRange method to specify a byte range. This would be very useful for me for a client that I want to ...
Accessing a non-DotNet assembly from an ASP.Net application
trent dudei -
24 Mar 2006 3:19 PM - 4 messages
Hello, Here is my scenario: I have a Distances class that contains a GetDistanceFromCities method. This method makes a call to an external 3rd party non-.net asembly (miles32.dll). Everything works propery when I instantiate the class from a command line app and call the method, but when I ...
HTML into string from http address
Jesper -
24 Mar 2006 3:14 PM - 4 messages
Hi What is the easiet way to get the HTML from an URL location into a string. regards Jesper ...
Adding shortcut in user's desktop (setup proj) creates a shortcut to shortcut !
TN -
24 Mar 2006 3:11 PM - 3 messages
I think I am losing my mind. I've got a simple application for which I have a setup project to install the application. I create a shortcut to the applications project in the user's desktop. When I go to install ...
Static Functions and Thread Safety. How does it work?
WebMatrix -
24 Mar 2006 2:51 PM - 6 messages
Hello, It might seem like a stupid question to some. But I need to put this issue to rest once and for all, since it keeps coming up in code reviews every now and then. There’s a static function in business logic class invoked by a Web ...
ONE process at a time
Alan Wang -
24 Mar 2006 2:03 PM - 4 messages
Hi there, I am having a web application which has OpenOffice running as backend. The whole web application runs great if there is only one request at a time. The web application will mess up if there are more than one requests at same ...
Catching exceptions but don't want to cast the type.
UJ -
24 Mar 2006 1:18 PM - 6 messages
I have a try catch where I don't know all of the exceptions that can be thrown (I'm calling a web service in the try) and what I would ideally like to do is a catch all but then look at the type of exception that was thrown ...
Download prerequisites from the same location...not working
TN -
24 Mar 2006 12:47 PM - 4 messages
Am I missing something here? I am checking the radio button "Download prerequisites from the same location as my application" so that I can include the .Net 2.0 framework with my application setup. I created a VM running Win2k copied over the setup (and the dotnetfx directory) and ...
Why do I get these kind of warnings when building my exefile
tony -
24 Mar 2006 12:17 PM - 4 messages
Hello!! I use VS 2003 and C# for all class library except MeltPracCommon.dll which is C++.NET The problem is that I get these warnings when building the exe file and use my class libraries. See below for a detail description. ...
gdi+ question
ZQ -
24 Mar 2006 10:52 AM - 3 messages
Hi everyone! I have a question about GDI+. float deltaY = 0; // the onPaint handler of my control protected override void OnPaint(PaintEventArgs e) { e.Graphics.TranslateTransform(0, deltaY); GenerateGraphics(e.Graphics); } In an OnClick event, I change the value of deltaY, and invalidate the ...
How to getting console messages to Textbox
ano -
24 Mar 2006 10:44 AM - 5 messages
I have a console application and a lot of Console.WriteLine(). Now I want to convert it to Windows Form Application. Is it possible to getting all of the console messages to Form.Textbox without changing every Console.WriteLine()? Thank you in advance. ...
KML file appears as aspx when served
Simon -
24 Mar 2006 10:04 AM - 3 messages
I have a .Net C Sharp page (aspx) serving up as a .kml file. On my localhost and an internal test server the page serves correctly and opens Google Earth. On my production server, I am served the aspx file. ...
Workflow
Mr.Bean -
24 Mar 2006 7:24 AM - 2 messages
I'm trying to make a small workflow engine for the .net framework 1.1, not 2.0. I'm well aware of the winfx and the windows workflow foundation but I need something for the previous version(1.1). ...
aspx session expired immediately
ºa¤Ö -
24 Mar 2006 4:02 AM - 2 messages
when i try to update the dll file (compiled by csc) or cs file, or once the web application throw exception, all user's session will expired immediately....why?? and how to solve this problem? thanks ...
COleVariant
kevinniu -
24 Mar 2006 3:51 AM - 2 messages
Hi, In MFC, I have the following class class COptionalVariant: public COleVariant { public: COptionalVariant() { vt = VT_ERROR; scode = DISP_E_PARAMNOTFOUND; } }; How can I do the same in c#? thanks ...
Automating a .NET App
Anthony Malt -
24 Mar 2006 12:02 AM - 7 messages
Hi, I'd like to programmatically attach to a small app with another app. What the best way to achieve this? Thanks in advance for any feedback. Anthony Malt ...
@SomeFunction() ???????
TheMadHatter -
23 Mar 2006 8:49 PM - 5 messages
Yello, Quick Q: I used a converter to convert vb code to C# (and not very well I might add.) One of the things it did is an @ symbol to a few of the functions. I know what it means when you do it to a string, but what about a function? ...
Having Assembly entrypoint in DLL library
Shawnk -
23 Mar 2006 8:49 PM - 4 messages
I use two classes to manage the Main() command line (and alot of other stuff) for my prototyping environment. I tryed putting the MainClass in a DLL and just having the other class (which gets modified on a per project basis) as the 'program.cs' file (the ...
Session Var Question
Frank -
23 Mar 2006 7:01 PM - 3 messages
I am developing with VS.NET 2003 on the ASP.NET 1.1 platform. I don't know how to get around this 'Object reference not set to an instance of an object' error. How should I check to see if a session variable exists? ...
SqlCommand + T-SQL Statements
christof -
23 Mar 2006 6:52 PM - 4 messages
I'm trying to run this T-SQL code using SqlCommand: USE master; ALTER DATABASE AdventureWorks SET SINGLE_USER; GO I did it like that: public static int ObtainExclusiveAccess(Server srv, string database) { string cmd = @"USE master; "; ...
Escape Character \e does not work
pkaeowic -
23 Mar 2006 6:36 PM - 16 messages
I am having a problem with the "escape" character \e. This code is in my Windows form KeyPress event. The compiler gives me "unrecognized escape sequence" even though this is documented in MSDN. Any idea if this is a bug? ...
New Thread - Pre Screening Questions for a C# developer
M.Siler -
23 Mar 2006 6:03 PM - 9 messages
Let me clarify from my last post. I am not using these 4 questions as the sole screening method. Currently in, the Tampa Bay area (Florida) there is an extreme shortage of C# developers. We have utilized just about every ...
How to programmatically invoke Click event of the Button ?
Oleg Subachev -
23 Mar 2006 4:07 PM - 14 messages
I need to programmatically invoke from other class Click event of the Button on my Form. Button.OnClick method is protected, not public. How to perform this ? Oleg Subachev ...
is partial property implementation possible?
Ben Voigt -
23 Mar 2006 3:55 PM - 2 messages
The C# Language Specification says: A virtual property declaration specifies that the accessors of the property are virtual. The virtual modifier applies to both accessors of a read-write property - it is not possible for only one accessor of a read-write property ...
List<T> Question
Sean -
23 Mar 2006 3:46 PM - 15 messages
I have been using List(of String) when I could easily be using a string array instead. Is it still considered best practice to use Generic list of string rather then a string array? Thanks ...
Stopping the update of a text box while maipulatin it.
UJ -
23 Mar 2006 3:32 PM - 3 messages
I've got a text box that I'm going to be doing some manipulation on (selecting text, moving stuff around, that kind of thing) but I don't want/need the user to see it while it's going on. I'd like to leave the box ...
Pre Screening Questions for a C# developer
M.Siler -
23 Mar 2006 3:13 PM - 10 messages
I'm using a few employment firms to assist us in locating a few WinForms ..NET 2.0 C# developers. They are sending us everyone that claims they can program C# so my thought was to provide the firms with 4 questions that if ...
Smo + remote Backup fails...
christof -
23 Mar 2006 2:54 PM - 3 messages
Hello, I'm trying to do a backup by connecting to remote instance, code looks like that: using Microsoft.SqlServer.Management.Smo; using Microsoft.SqlServer.Management.Common; using System.Data.SqlClient; string connString = "Server=172.17.0.193\\SQLEXPRESS,15555; ...
Properties window - accessing collections
Steve Barnett -
23 Mar 2006 2:40 PM - 7 messages
I have created a user control that includes the following field: [Browsable(true)] protected TreeColumn[] columns = new TreeColumn[3]; This is accessed via an accessor as follows: ...
Accessing Arraylists
Dogmar Hoffman -
23 Mar 2006 2:21 PM - 5 messages
Hello, ArrayList arrTestArrayList = TestArrayList.LoadTestRecords(ConnectionString,StartDate,EndDate); and it is in the same public class and namespace that I am trying to access it from. Basically, I am looking for a way to test against the value at position 6 in that arraylist like: ...
Convert String in file
Ursula -
23 Mar 2006 2:11 PM - 4 messages
Is it possible to convert a string in a file. The problem is this: I have an object string that is a file xml and I want to pass to Deserialize function, but Deserialize function expect an object of FileStream type and ...
c# code > visio diagram
Rudi -
23 Mar 2006 1:46 PM - 2 messages
Hi Guys and gals, I want to generate a code diagram from a c# application, but when i do the reverse engineer thing it just creates the classes from the current projec ready for you to create your own diagram, what i want it to do is to actually ...
Q: property problem (enum)
dllhell -
23 Mar 2006 11:55 AM - 3 messages
hi all, I want to create a property in class (datatype=enum). In one other class I have declaration of enum: public enum enumCrep { cRep1 = 1, cRep2 = 2, } now, I want to create a property: public enumCrep ecRep { get { return this.ecRep;} ...
getting a mac address
Dan -
23 Mar 2006 11:51 AM - 4 messages
Hi Does anyone know how to get the Mac address of a remote PC, using C#? I believe it's possible by deconstructing the packet received from a ping but I don't know how to do it. TIA ...
Datagridview loading rows
Luca Beretta -
23 Mar 2006 11:31 AM - 2 messages
I think this a simple question but i'm breaking my brain without results. I've a datagridview bounded to a datatable, with an imagecolumn that should contain a different bitmap depending from a field in the bounded datatable. my problem is to find an event raised for each rows loaded in the ...
instance control
murali@pune -
23 Mar 2006 11:22 AM - 4 messages
hi, I want to create a class in C# that will only have 'n' instances at any given time. If (n+1)th instance is requested, an Exception will be thrown. These instances must be maintained in a collection in the ...
aspx display romanian diacritics
george.miscalencu@gmail.com -
23 Mar 2006 11:19 AM - 2 messages
I'm trying to display a text from a database, text that contains Romanian diacritics (aîst) in a aspx page. The text has been inserted in the database using a asp application with a HTML editor with this setting: content-type="text/html; charset=iso-8859-2" ...
How to get calling object type in static method of Base Class
Mirek Endys -
23 Mar 2006 10:18 AM - 6 messages
Hello all, another problem im solving right now. I badly need to get typeof object that called static method in base classe. I did it by parameter in method Load, but i thing there should be way, how to get this information in called ...
URGENTCusom dialog boxes
Mustafa Rabie -
23 Mar 2006 10:05 AM - 3 messages
Dear All, I am writing an app that does some syncronization with a mobile device. I use the System.Threading.Thread.Sleep(15000); to sleep the main app thread for 15 sec till the sync is finished. ...
How to retrieve valuèes from web.config for an assembly called by COM+
WT -
23 Mar 2006 9:58 AM - 2 messages
HI, I am using a system where I can write .NET 1.1 libraries assemblies that are called as extensions by a COM+ application. My question could I read values stored in an app.config file, which name to use and where to put this config file. ...
Multithread
amberti -
23 Mar 2006 9:56 AM - 4 messages
I'm trying to write a multithread application: it will get different kind of data from DB, my intention was to create different thread for each query. I tryed to use the AsyncHelper.FireAndForget method u can easily find on this goup but i wasn't lucky: I was able to crate threads but not to ...
I get some warnings that I don't understand when building the exe file
tony -
23 Mar 2006 9:16 AM - 2 messages
Hello!! I use VS 2003 and C# for all class library except MeltPracCommon.dll which is C++.NET The problem is that I get these warnings when building the exe file and use my class libraries. See below for a detail description. ...
Best practice for embedding forms
Baliga, Narasimha -
23 Mar 2006 8:49 AM - 3 messages
Hi, I am trying to write an app which will have say a MainForm that has a TreeView and a Panel control on it. The project also has 2 other forms. Now the TreeView would have 2 nodes and on each node click one of the 2 ...
FTP using Active Mode
Jay -
23 Mar 2006 8:47 AM - 2 messages
Hi, I have a problem in connecting to FTP Server in Passive Mode. Actually server is behind firewall. Now can anybody tell me how to connect Server in Active Mode. Actually i want code in c# which connects FTP Server in active mode. ...
Is there such C# tool ?
Oleg Subachev -
23 Mar 2006 8:43 AM - 5 messages
I have .cs source file with a bunch of public and internal members (classes, methods, enums ...) in it. I want to extract declarations of public members into separate file so that I can distribute this file among users as documentation. ...
Why my C# App use no more 25% of the total 4 CPUs' resources?
WangJiping -
23 Mar 2006 8:10 AM - 4 messages
is there any setting options ? ...
Why use stored procedure in C#?
Jason Huang -
23 Mar 2006 7:27 AM - 11 messages
Hi, In my C# Windows Form application project, I have done all queries on my codes. Now I wanna try using the Stored Procedure. But I am not clear about why using the stored procedure. Would some one give me some advice? ...
public abstract static ...
pali -
23 Mar 2006 5:53 AM - 5 messages
Hi, I was just wondering, why is not possible to make a member of a class BOTH abstract and static? MSDN says just that's in an error, not why this is so. In a nutshell, I need this: I have an abstract base class called EntityBase that all my other business ...
asp.net repeater
Howard -
23 Mar 2006 5:30 AM - 4 messages
I need to do 2 things with the repeater control 1- in the html output give a unique template(color, font size) to the first item (not alternate) and only the first. The datasource of the repeater is an objectdatasource from a business object ...
Getting reference to running instance
Tim -
23 Mar 2006 5:28 AM - 2 messages
I have a C# executable that has a class, say "Sample" which is a singleton. The exe is running and the class is loaded. From another exe, can I get a reference to the running instance of the "Sample" Object? ...
Data Access Tier with Large Result Set
dm1608 -
23 Mar 2006 5:27 AM - 4 messages
I'm wondering what the best practice should be when processing a large result set within a Data tier. Basically, I have a C# app that runs a query and loops thru over 500K rows and does a few things per row. I would like ...
Backgroundworker Control
dm1608 -
23 Mar 2006 5:24 AM - 3 messages
Hi -- I have a C# application that basically has a button that executes a SQL Reader to loop thru a rather large resul set. Thru each interation of the reader object, I check to see if a file exists on the server. If it does, I ...
Data availability best practices?
Jim Hubbard -
23 Mar 2006 3:25 AM - 3 messages
I have a client that wants me to code a simple application as a prototype. The catch is that he wants to use this application at several different stores while being able to share each store's data. He also want the ...
Question on Generics
Chuck Cobb -
23 Mar 2006 3:23 AM - 5 messages
I have a question regarding generics: Suppose I want to create some generic collection classes: Collection<Cats> c; Collection<Dogs> d; and both Cats and Dogs are inherited from a base class called Animals. I'd ...
C# web form tutorial
Jason Huang -
23 Mar 2006 3:06 AM - 4 messages
Hi, I'm new to the C# web form application. Would someone give me some links regarding to the step by step or tutorials? Thanks for help. Jason ...
File Encryption
Bob -
23 Mar 2006 3:04 AM - 3 messages
Hi, Need to protect a file which is written to a CD, the CD is then read on another machine. My App will be present on both machines and will be doing the Writing / Reading. The level of protection required is modest. We just want to make sure that ...
Disabling Form Objects
dm1608 -
23 Mar 2006 1:20 AM - 3 messages
I have to issues: 1) Does anyone know of a programmatic way I can disable all textboxes, combo, listboxes, and buttons on a form? 2) What is the best practice for disabling multiple controls on a form. Basically, I need to disable almost everything on a form and re-enable when ...
How to call delegated methods individually without dynamic binding?
mmmpie -
23 Mar 2006 12:21 AM - 3 messages
I want to be able to hand off the inner functionality of a loop to a delegate. However, I also need to be able to call one of a number of delegates based on the context of the loop ( in this case what level Im ...
Encryption, PGP, and .NET
The One We Call 'Dave' -
22 Mar 2006 11:56 PM - 4 messages
Hi there, I read a Microsoft paper explaining the basic concepts of encryption. For example, I now understand the difference between asymmetric and symmetric encryption and have successfully used the .NET crypto classes. I'm now working on a project where I need to download a file from a bank ...
App will not run as a scheduled task
donal.conlon -
22 Mar 2006 11:55 PM - 3 messages
I have a c# console app that runs fine manually, however when i add it as a scheduled task it does not run at all. The application takes in args, and calls another command line app. Even if i disable the process call, it still will not run. Am I ...
programmatic telnet session
michael sorens -
22 Mar 2006 11:32 PM - 4 messages
I have searched extensively and have found only hints of what is needed so far: What I want to do is open a telnet session to a remote host on a given port, login, execute a simple command, and retrieve the results. The ...
Not catching exceptions thrown in dll class
Michael Rodriguez -
22 Mar 2006 11:29 PM - 4 messages
I have a data layer in a dll class. If I manually throw an exception in that data layer, the generic Application.OnThreadException in my UI does not catch it nor does it display any message whatsoever. The user is totally ...
delegate contravariance not fully implemented
Ben Voigt -
22 Mar 2006 11:12 PM - 7 messages
I've extended the article "Covariance and Contravariance in Delegates" from the C# Programmers' Guide, and it seems contravariance of delegates is implemented wrong. Lambda calculus states that Handler2Method is a subtype of HandlerMethod... why can't I cast (it should be implicit conversion, actually)? However the ...
ComboBox
dm1608 -
22 Mar 2006 11:04 PM - 5 messages
I'm used to setting the Text property and Value property of a ComboBox. I do not see this option for C# 2.0. Am I missing something? Basically, I'm trying to loop thru an ADO.NET reader object and populating ...
Multiline TextBox
dm1608 -
22 Mar 2006 11:03 PM - 3 messages
Hi -- I'm populating a multi-line textbox with about 500+ items. Is there an easy way that I can force the scrollbar to the bottom while appending new items? ...
"Add Reference" Dialog doesn't show the installed assembly in GAC
Maxwell2006 -
22 Mar 2006 10:55 PM - 4 messages
Hi, I am using Visual Studio 2005. I have added a DLL into GAC. I can confirm that by going to C:\WINDOWS\assembly and see the assembly name. Now I am trying to use the assembly by adding a reference to it. In "Add ...
Installed System DSN List?
dm1608 -
22 Mar 2006 10:41 PM - 3 messages
Does anyone know how I can populate a combobox to display the installed DSNs on a particular machine? ...
Context Switch Deadlock Was Detected
Ian Semmel -
22 Mar 2006 10:18 PM - 5 messages
I am doing a length operation reading access database and creating a sql database when I get this message. What am I supposed to do to get around it ? Thanks ...
App.Config and C#
dm1608 -
22 Mar 2006 9:56 PM - 2 messages
Can someone please show me how to access a "ConnectionString" property within my app.config file from within C# for .NET 2.0? I know if VB.NET 2.0 I can do a My.Settings("ConnectionString"). I cannot ...
Clever Techniques for Determing Dimensions of Multi-Line Label?
Robert W. -
22 Mar 2006 9:48 PM - 4 messages
Long ago I developed a simple algorithm for calculating how much space is required to display a multi-line label in a limited width. It seemed to be working okay but then my testing revealed a flaw when trying to display the ...
HTML to PDF, something decent
Gawel -
22 Mar 2006 9:43 PM - 2 messages
Hajo, I've been looking for decent software that will allow me to convert html to pdf. I am interested not only in commercial but also in free solutions. I've tried: 1. iTextSharp - it does not render a little bit more complex pages ...
Creating a color from a string
Lee -
22 Mar 2006 9:18 PM - 2 messages
Hi, I have saved a Color to a text file using Color.toString(). How do I load it in again? I have tried;- Color myColor = Color.FromName(strColor); but it fails, I have also noticed that the color is sometimes saved with a ...
a basic casting question
sam -
22 Mar 2006 9:11 PM - 5 messages
I'm new to C#. This piece of code works fine and needs no explicit cast in vb.net. itemId = arrCart(cartId, i) When I converted it to C#, it complained that it cannot do the implicit conversion. So I tried: ...
Left function
sorourke1@hotmail.com -
22 Mar 2006 8:46 PM - 3 messages
I am attempting to collect the user's IP address from a Web App. I then need to verify the address is not an 'internal' user. I need to compare the left 3 characters of the IP address with a constant. I know I have done this with ...
annonymous ip before using webrequest object
heatstor -
22 Mar 2006 6:44 PM - 3 messages
Hi, When using the webrequest object, is there a way to make the source ip anonymous before connecting to a URL/website. Any help will be appreciated. Asim. ...
Incrimenting Dates in C#
Dogmar Hoffman -
22 Mar 2006 6:23 PM - 8 messages
Hello, I am pretty new to C# and have been surfing this forum. It has been a great help. I am hoping that you can help with this issue: I have the following: TimeSpan Diff = new TimeSpan(); Diff = m_EndTime.Subtract(m_StartTime); ...
IIF Statement in Access is cutting off my string in c#
Dave -
22 Mar 2006 5:25 PM - 5 messages
I have a field with data type of memo in my access database. I run a query from c# to access this field and it cuts off my string to only 255 characters. If i run this query directly in access it works fine. ...
Library.dll.config files in VS2005
Maxwell2006 -
22 Mar 2006 4:24 PM - 3 messages
Hi, I am developing a class library that uses new strongly typed .config settings in .NET 2.0. No I have a .DLL file and a .DLL.Config file. How can I deploy the DLL.config file? My main application has its own EXE.config file (or possibly web.config ...
are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.
Process.Start() throws an error saying "Setup error: failed to load resources from resource file Ple
Next »
|
|||||||||||||||||||||||