all groups > c# > april 2007 > threads for tuesday april 17
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Derive Enum
Posted by hufaunder NO[at]SPAM yahoo.com at 4/17/2007 11:07:28 PM
Imagine you have a charting library that can draw lines, bars,
floating bars, bands, etc.
Lines and bars need only one input. Floating bars and bands need two
inputs. There are two approaches:
1) One enum with all 4 types (bars, band, etc). One chart class that
accepts up to 2 arrays of value... more >>
MSB3073
Posted by Joachim at 4/17/2007 10:10:00 PM
I have a small post-build copy statement which has always worked before. But
now I get a strange error for which I don't find any documentation. I get the
following error when trying to execute the command mkdir
C:\Source\myapp\trunk\..\output\Resources
C:\WINDOWS\Microsoft.NET\Framework\v2... more >>
Application settings using a hashtable
Posted by Simon at 4/17/2007 9:38:11 PM
I'm trying to use the application settings feature in an application I'm
writing but I can't seem to figure out how to get it to save and load a
hashtable. Ints and strings load just fine but the hashtable is always null.
Is there a way to serialize it?
Thanks
Simon... more >>
Image Properties
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 4/17/2007 9:06:40 PM
I have a few custom controls that expose properties of type Image. The =
built in controls that have Image properties allow you to delete the =
image and set it back to "None". How can I allow my own Image propeties =
to be set back to None just by deleting the image name from the property =
g... more >>
opening & closing SQL connection
Posted by LeAnne at 4/17/2007 9:04:53 PM
my application polls a database every X seconds.
Some times X = 0.5 seconds (500 milli seconds)
The way the code has been written, the SQL connection is opened & closed
during every poll.
Is this effecient?
Should i be leaving the connection opened & then polling the database every
500 m... more >>
Exceptions and static constructors.
Posted by BLUE at 4/17/2007 8:43:35 PM
VS .NET 2003 CF
In this method I cannot catch exceptions thrown by Settings constructor (for
example FileNotFoundException) but only an OutOfMemory exception due to Get
returning void.
Why???
private void GtmForm_Load(object sender, System.EventArgs e)
{
try
{
this.i... more >>
How to write a Multi-language Visual C# application ?
Posted by cpchan at 4/17/2007 8:20:02 PM
Hello,
Can you tell me how to write a multi-languages Visual C# application
(English, Chinese, .. ) ?
Or are there any Web-sites which teach us how to write a Microsoft Visual C#
multi-language applications ?
Thanks a lot.
... more >>
PDF-Datei lesen
Posted by Thomas Bock at 4/17/2007 8:17:02 PM
Hi NG
wie kann ich eine PDF-Datei ohne Acrobat lesen, insbesondere Textblöcke?
Vielen Dank
Thomas Bock
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Simple question : Can I create a Web-based application with Visual C# 2005 Express ?
Posted by cpchan at 4/17/2007 7:26:18 PM
Hello,
Can I create a Web-based application (not a Web site) with Visual C# 2005
Express ?
Or I have to use Visual Web Developer 2005 Express Edition, choose ASP.NET
and then choose C# ?
Are there any web-sites give me step-by-step Visual C# 2005 Express
Web-based application development ?... more >>
Enterprise Library error
Posted by Vinki at 4/17/2007 7:14:01 PM
Hello Everyone,
I downloaded enterprise library 2.0 , 2006 today . I followed all the
instructions that were given in the documentation.
I tried to follow everything that was mentioned in QuickStart samples. I
made a small web application that did everything that Quick start sample was
... more >>
Q: Tricky Split Question
Posted by Martin Arvidsson, Visual Systems AB at 4/17/2007 6:47:12 PM
Hi!
I have a string containing this information:
Including file: Myfile.fle (C:\Program
Files\Application\Source\Myfile.fle)
After myfile.fle there are three spaces!
Since i use the folowing:
string[] splitted = unsplittedString.split(new char[]{' '})
The splitted string is outpu... more >>
DrawLine with And or Or Pattern
Posted by bern11 at 4/17/2007 6:12:25 PM
Is there a way to draw a Line in GDI that will bit-wise AND or bit-wise
OR the target pixel with a desired color? Same question with
fill-patterns. I want to draw in Reb, Blue, & Green, and have the
triple-overlapping region appear as white. I can write my own
algorithm, but if GDI alr... more >>
EnumAvailableSqlServers and sqlexpress
Posted by Torben Laursen at 4/17/2007 5:10:58 PM
Hi
I am trying to find find the sqlserver express that is running on my
computer using:
DataTable dtSQLServers = SmoApplication.EnumAvailableSqlServers(false);
It returns one row that holds the name "Office1" but the sqlserver is:
"Office1\SQLExpress"
If I try to connect to "Office1" I... more >>
RS 232 and Bluetooth Comms Routine
Posted by Kevin at 4/17/2007 4:49:09 PM
I would appreciate it if anyone could help or advise on coding for comms.
I am using C# and need to be able to open a comms port, send a command to a
device, receive the data back and close the port.
Also need to be able to set up the comms parameters Baud rate stop bits
parity etc.
Can a... more >>
Q: DirectoryInfo.GetFiles
Posted by Martin Arvidsson, Visual Systems AB at 4/17/2007 4:42:12 PM
Hi!
Is there any way to abort the process of GetFiles method?
I have a Method that will scan thousands of files and directories. But the
user will be able to abort this process, which i fully understand.
I do use a BackgroundWorker to be able to cancel to process, but since the
GetFiles d... more >>
conversion
Posted by Frank at 4/17/2007 3:45:09 PM
Hello all,
I am reading a serial device and I get 4 separate bytes (byte[4]). Put
together they form a Float type. How can I put these bytes together and get
a float?
Any ideas?
Thanks
Frank
... more >>
Multilingual Support in Windows Forms
Posted by Mike at 4/17/2007 3:00:02 PM
Is it possible to create multilingual support in a Windows form like you can
do in a web page by using resource files?... more >>
SqlException i don't know what to do with
Posted by Dan Holmes at 4/17/2007 2:55:32 PM
I don't know how to troubleshoot this one. src is after the error.
"System.Data.SqlClient.SqlException: XML parsing: line 1, character 698,
illegal qualified name character\r\n at
System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean breakConnection)\r\n at
Syst... more >>
Feedback and/or suggestions
Posted by JoeW at 4/17/2007 2:54:23 PM
I wrote a simple class to manage a ban list I have in a SQL database.
The table consists of 4 fields: ip_address, time, ban_length,
ban_type. I simply add the ip address to the database with the current
date and time, the length of the ban in minutes and the type of ban (0
= single ip, 1 = class... more >>
excel reference remains open
Posted by pleaseexplaintome_2 NO[at]SPAM yahoo.com at 4/17/2007 2:43:47 PM
using the code below (some parts not included), I create a new excel
workbook with spreadheets.
I then want to delete a spreadsheet, but a reference remains open and
excel stays in task manager when
the code highlighted below is used. can someone help me identify what
object remains open and
... more >>
How to retieve public IP of NIC / Router
Posted by Pete Kane at 4/17/2007 2:28:55 PM
Hi All, anyone know of a way to programatically get the WAN ip address of either a NIC or router ?... more >>
The F#.NET Journal
Posted by Jon Harrop at 4/17/2007 2:23:48 PM
Flying Frog Consultancy are starting The F#.NET Journal to publish
fortnightly articles about the F# programming language from Microsoft
Research:
http://www.ffconsultancy.com/products/fsharp_journal/?u
The articles cover a wide range of topics, including an introduction to
functional pro... more >>
C# project builds SLOWER in Visual Studio on faster, new workstations
Posted by Jon Davis at 4/17/2007 12:55:45 PM
We ordered new systems with fast hardware and great specs, but Visual Studio
takes longer to build a project than on the old workstation. Msbuild is
faster, csc.exe is faster, file copy is faster. But opening copying the
project files straight over from one workstation to the new workstation, ... more >>
Using about box as splash screen
Posted by Michael A. Covington at 4/17/2007 12:51:36 PM
Greetings all,
I have an About Box which was added to the project with Microsoft's wizard,
edited a bit so it just has 2 text box in it, and works fine.
I'm trying to also use it as a splash screen which I put up before, and take
down after, a time-consuming initialization operation. For ... more >>
checkbox always "false" in GridView
Posted by trint at 4/17/2007 11:46:51 AM
i have this in the html view:
<asp:TemplateField HeaderText ="Remove?">
<ItemTemplate>
<asp:CheckBox ID="removeSelect1" runat="server" />
</ItemTemplate>
<HeaderTemplate>
</HeaderTemplate>
<HeaderStyle ForeColor="White" />
</asp:TemplateField>
and this in my c# file:
foreach (GridViewRow... more >>
Can not retrieve XML file using XmlTextReader, peculiar problem
Posted by Mike at 4/17/2007 11:18:04 AM
Hi! I have an application that retrieves its settings from an Apache server
XML file.
The application bombs at this line for one user only:
m_XMLReader = new XmlTextReader(configFileURL);
Everybody else who logs into the laptop is able to use the application with
no problems. Is it a per... more >>
ListView item alignment
Posted by Ludwig Wittgenstein at 4/17/2007 10:56:18 AM
Hi, all.
I have a ListView in my GUI and I'm trying to align a collection of
times equally in 4 columns. For example, if I have 16, I want to put 4
in each column. How do I do this using a ListView in C#?
Thanks,
... more >>
UserControl and List<int>
Posted by Monty at 4/17/2007 10:44:16 AM
I have a Usercontrol with a public property List<int> Links
List <int> Links= new List<int>();
public List<int> LinkLabels
{
get { return Links; }
set { Links = value; }
}
Now when i put it on a dialog and open the properties dialog in design
mode i can click the (...) button a... more >>
Paying $ for a couple hours of your time (WebRequest website login)
Posted by KBuser at 4/17/2007 10:17:37 AM
Looking for somebody to help me for an hour or two (I doubt it will be
that long).
Basically I can't get the url encoding to work properly in my program,
so I need you to write a method which will login to a SPECIFIC site
(details given on contact). Then from the response I will need a few
spec... more >>
System.Windows.Forms.WebBrowser not working
Posted by sonicwrx NO[at]SPAM gmail.com at 4/17/2007 9:50:30 AM
Am I missing something?
I have a form with a browser control and a button. The code under the
button is:
private void btnGo_Click(object sender, EventArgs e)
{
wbScrape.Navigate(@"http://
www.google.com");
}
The browser just displays the message:
Navigation to... more >>
Problem writing parametrized query
Posted by weird0 at 4/17/2007 9:48:20 AM
Hi!
On the recommendation of one of the MVP's on this group....... I tried
writing parametrized queries. But the fucking thing does not work and
it does not update the data in the table.
I gotta do my work by concatenation right now. But what is wrong with
the code anyway?
Can anyone fi... more >>
Retrieving table fields from access DB
Posted by Chris at 4/17/2007 8:36:34 AM
Hi,
I'm using the following code
DataTable tables = ((OleDbConnection)oleconn).GetOleDbSchemaTable(
OleDbSchemaGuid.Tables, new object[] { null, null, null,
"TABLE" });
foreach (DataRow r in tables.Rows)
{
string tableName = r["TABLE_NAM... more >>
Using remoting in an n-tier application
Posted by hardieca NO[at]SPAM hotmail.com at 4/17/2007 8:32:52 AM
Hi,
Can anyone point me in the right direction for an example on how to
use remoting to separate my BLL and DAL onto different tiers? Is there
a best-practice pattern or design model for this?
Regards,
Chris
... more >>
best way to go
Posted by ba.hons at 4/17/2007 7:51:05 AM
Hi,
I am a c# programmer and am looking for some advice as i am about to
develop a web service application and not sure what the best approach
is.
Basically i need a client and server component but i am not sure what
is the best way to develop the client, through ASP.net or build an
Active... more >>
my custom check_changed
Posted by rodchar at 4/17/2007 6:56:03 AM
hey all,
i'm trying to build a custom handler for the 5 checkboxes i have on my web
form.
i noticed something i don't understand:
if i say in the code-behind:
protected void Check_Changed()
and then go back to the designer and then to the check changed event
properties for a checkbox ... more >>
Sharing a variable between all pages
Posted by oliv NO[at]SPAM linuxmail.org at 4/17/2007 6:05:15 AM
Hi,
New to .NET, I was wondering what was the proper way to share a
variable between all the instances of a web page.
I try with a static var, but it does not seem to always work. Why is
that ?
public partial class _Default : System.Web.UI.Page
{
static public string sharedvar;
... more >>
Inheritance or composition
Posted by Z at 4/17/2007 4:46:01 AM
Hi,
I want to create a class that sends/receives data from the serial port.
There is such a class in .NET v 2.0 but what I need is a serial port with
some extra features. For example I want my class to raise a certain event not
only when data has been received but also upon some additional ... more >>
C# COM server and array of VARIANTs
Posted by SD at 4/17/2007 3:44:03 AM
Hi,
I'm a complete newbie to .NET and C#. In the project that I'm working on, I
have a need to create a C# COM server (and for which I've referred to MSDN
samples). This COM server should pass an array of VARIANTs to a VB 6.0
client. The types of the array elements are not the same, for eg ... more >>
Collecting RSOP data in C#
Posted by mcw.willart NO[at]SPAM interpolis.nl at 4/17/2007 3:15:35 AM
Hi,
I'm trying to find out how to collect RSOP data in C#, but I haven't
been successfull yet.
Below is the code I Use in VBScript:
------------------------------------------------------------------------------------------------------------------------------
Const FL_FORCE_CREATE_NAMESPAC... more >>
http://support.microsoft.com/kb/309158/ ... BUG?
Posted by AA2e72E at 4/17/2007 1:32:00 AM
If GetUpperBound(n) returns a zero based dimension, should this line
ArraySize = MyData.GetUpperBound(0);
within the Button2_Click handler in fact be
ArraySize = 1 + MyData.GetUpperBound(0);
The full article is at http://support.microsoft.com/kb/309158/ and the
particular line of cod... more >>
search in byte array
Posted by Frank at 4/17/2007 12:00:00 AM
Hello,
I have a byte array (byte[]) and want to search for 3 bytes next to each
other containing 0x10, 0x12 and 0x16. Is there some method for that?
Thanks
Frank
... more >>
Visual Studio version numbers
Posted by Johnny Jörgensen at 4/17/2007 12:00:00 AM
Just a quick question:
The Visual Studio version number for VS6 is 6.0 and I can see in my Registry
editor that the version number for Visual Studio 2005 is 8.0.
Can I safely assume that the version number for Visual Studio 2003 is
7.0????
TIA,
Johnny
... more >>
|