all groups > c# > july 2005 > threads for friday july 1
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 31
oop programming
Posted by Sharon at 7/1/2005 11:37:44 PM
Hi all,
I have a logical oop problem; I have an interface, and derived classes
The interface represents a general printer, and each class is a specific
printer
The question is what is the correct way to get a new instance of a printer
by its name?
Where should the getPrinterObjec... more >>
ADO.NET connection string in windows application
Posted by Lloyd S at 7/1/2005 10:58:02 PM
I was wondering how you can place a connection string to a database in a
windows application in one place so that it can be referenced easily from
anyplace in the code where a database connection is needed. I want to be
able to access the string value after it has been deployed so I can chang... more >>
How do I stop this thing?
Posted by Christopher Weaver at 7/1/2005 4:52:58 PM
Application.Exit() isn't having the effect that I would like. I thought it
would cause the app to terminate regardless of what was going on. What's
the best scenario for shutting down an app?
... more >>
User friendly display for combobox
Posted by jabailo NO[at]SPAM texeme.com at 7/1/2005 3:31:21 PM
For a Windows Form combobox:
I want to store an object in the Items collection of a combobox, but I
want the combo box to display a single string field (property) of that
object.
Can that be done?
... more >>
Reverse meaning of null in DataView
Posted by mdb at 7/1/2005 2:44:18 PM
I have a datagrid that is bound to a DataView, and it shows events and the
times that event started ("StartTime") and stopped ("EndTime"). If the event
has started but hasn't finished, then "EndTime" is null. When multiple lines
are displayed in the datagrid, if I sort by EndTime, then the n... more >>
HttpWebResponse.CharacterSet
Posted by Jason Manfield at 7/1/2005 2:14:02 PM
Why does HttpWebResponse.CharacterSet always return ISO-8859-1? I am
accessing a Chinese Web site (http://cn.yahoo.com) -- View Source in IE shows
the character set to be "gb2312", but the HttpWebResponse shows it to be
ISO-8859-1. Websites like www.cnn.com also show the character set to
IS... more >>
Finding the CD drives on a system
Posted by Greg Smith at 7/1/2005 2:00:47 PM
Is there a way to detect how many, and what drive letters the CD/DVD drives
on a system are?
Any help is greatly appreciated.
... more >>
INSERT command with Access
Posted by John Straumann at 7/1/2005 1:42:06 PM
Hi all:
I am trying to update an Access table from an ASP.NET page and am getting a
"syntax error" statement back, but I can't for the life of me see what is
wrong with the string shown below. All the data items in Access are set to
Text.
INSERT INTO test( t1, t2, t3, t4, t5 ) VALUES( 't... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Registering assemblies in the target machine
Posted by Luis Arvayo at 7/1/2005 1:17:43 PM
Hi,
If I will distribute some assembly .DLL files together with a demo app
including source code of this demo app:
What is needed to do in a Setup Project in Visual Studio, in order to
register those controls in the Toolbox of Visual Studio .NET in the target
machine ?
Thanks
Luis A.... more >>
How to ...
Posted by Jacek Jurkowski at 7/1/2005 12:29:16 PM
Remove a language specific chars from a string?
To make a "aaa" from "a¶aæaó" string...
... more >>
FolderBrowser Problem
Posted by McKool at 7/1/2005 12:22:49 PM
Hello,
I'm having problems with the Folder Browser control. When I call the =
ShowDialog() function, the Dialog is shown but only with the buttons, I =
can not see the ListView with the folders. Know somebody this error? =
how can I fix it?
Thanks in advance for your answers
KW... more >>
VSS question
Posted by Frank Rizzo at 7/1/2005 11:25:27 AM
Sorry to post an off-topic issue here, but the VSS NG is absolutely dead.
I have some files in VSS with the .iss extention. When I right click on
the .iss file in VSS and select Edit, I'd like a certain application to
come up (InnoSetup in this case).
InnoSetup comes up when I double-clic... more >>
[Newbie UK Date problem] Ways atround this UK date format localisation/SQL selection issue?
Posted by DC at 7/1/2005 11:18:29 AM
Im having a rather annoying SQL related problem with SELECT statemnets
and UK dates
The entire application is globalised to culture="en-GB" and
uiCulture="en-GB", and the access database is displaying and accepting
dates in UK format.
For some reason the statement is selecting the record... more >>
Changing the default language in specific textBox
Posted by Gidi at 7/1/2005 11:15:04 AM
Hi,
my user default language is hebrew but in some cases i want that the default
language in specific textBox will be english (i mean that when the user will
hit the 'T' key he will get a T in the textBox and not the parallel letter in
hebrew) what is the best way to do it? i can always che... more >>
Merge Method for Datasets Change Rowstate of Unchanged to changed or modified
Posted by certolnut at 7/1/2005 11:00:37 AM
Hi all
I'm using the "Merge" method for datasets to append data from an external
excel spreadsheet into a Sql Server Table
The problem is that "Merge" method copies over the current RowState
(UNCHANGED)of the excel spreadsheet rows, so when I try to update the data
adapter for Sql Server, i... more >>
StreamReader not reading all lines
Posted by JoKur at 7/1/2005 10:08:02 AM
Hello,
First let me tell you that I'm very new to C# and learning as I go. I'm
trying to write a client application to communicate with a server (that I
didn't write). Each message from the server is on one line (\r\n at end) and
is formed as [Message] [Optional Argument1] [Optional Argu... more >>
DataGrid row tag
Posted by Jassim Rahma at 7/1/2005 10:03:36 AM
Hi,
Is it possible in datagrid to assign a hidden tag for each row identify
the AutoNumber ID from the database instead of displaying it as a
column?
Best Regards,
Jassim Rahma
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Reading Directory Information
Posted by Greg Smith at 7/1/2005 9:41:35 AM
Hi, all.
I have been asked to write an application that would keep track on archive
data on CDs and DVDs. I will basically need a line for each file.
I have started out by saving a "dir" to a text file and parsing the file,
but it seems there must be a better way to do this.
Is there a... more >>
Best practices for team development...
Posted by brett at 7/1/2005 9:16:53 AM
I'd like suggestions on what you consider a great environment for about
five developers that are on location. Being on location does present
certain problems in setting up the environment. I'm interested in ways
developers can keep tabs on the overall project progress and individual
progress o... more >>
Load multiple files into Sybase and Threading Question
Posted by GG at 7/1/2005 9:09:38 AM
I need to bcp into Sybase servers different files into different tables
simultaneasly. Is the following architecture thread safe?
1st Have a Helper Class that will take as a parameter the bcpCmd so we
can pass as paremeter to the thread
It looks like this
public class WorkToBeDone
{
string... more >>
problems saving a bitmap
Posted by melanieab at 7/1/2005 8:54:01 AM
Hi,
I'm trying to save a bitmap file so I can print it later. I have
Image.Save("sImage.bmp",System.Drawing.Imaging.ImageFormat.Bmp);
The file sImage.bmp shows up in the bin\debug folder but when I try to print
it (or open it), it's completely black. I know Image is the correct picture ... more >>
collision detection
Posted by (cmrchs NO[at]SPAM yahoo.com) at 7/1/2005 8:46:36 AM
Hi,
I'm writing a graphical program in which I let shapes (rectangles, regions, ...) move around.
how can I detect if two shapes 'collide' ?
thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comp... more >>
strange problem with dlg.ShowDialog(); - Help !!!
Posted by Gidi at 7/1/2005 8:02:05 AM
Hello,
i'm having a problem with the following code:
if (m_is_it_exist==1) // if the weapon is in the mlay and can be sold
{
PrintCustShtarBuy pd=new PrintCustShtarBuy(this.mf,this);
PrintPreviewDialog dlg = new PrintPreviewDialog() ;
dlg.Document = pd;
... more >>
New form without a new taskbar window/icon
Posted by ukdmbfan at 7/1/2005 7:52:05 AM
I want to create several forms in my C# program so that when people click on
options in the menu bar (such as Tools -> Options) it brings up a new form
dialog window for them to change certain settings of the program. In Visual
C# (EE Beta) I am using the "Windows Form" template under Project ... more >>
cancel BeginConnect
Posted by g18c NO[at]SPAM hotmail.com at 7/1/2005 7:41:09 AM
Hi, is there anyway of canceling the BeginConnect operation on a
socket?
I would like my user to be able to hit a button to abort the connection
attempt - i notice the sockets class does not provide an explicit
cancel instruction. Is there any way i can do this? Ideally i dont want
to use thr... more >>
javascript problem
Posted by Newbie at 7/1/2005 7:04:03 AM
i placed an html button on a C# asp.net webform and placed the following html
code in the html/aspx file:
<TD style="WIDTH: 147px"><INPUT onclick="history.go(1)" type="button"
value="Go Back"></TD>
but now i have to use a variable instead of "1" bec. the no. of pages to go
back to ... more >>
keep the graphics
Posted by jin at 7/1/2005 6:43:02 AM
Sorry, is there any way that after we draw some line or graphics on the
windows form, after the windows minimized, the line and graphics won't
dissappear?
I'm appreciate for any reply, thank you... more >>
How to convert a double 2.0 to string "2.0"
Posted by Jianwei Sun at 7/1/2005 6:34:53 AM
Hi, guys,
If I simply do a double d = 2.0 ,and then s=d.ToString() , it will trim
the .0 off and return me 2, is there a good way to keep .0 and return me
2.0.
Thanks,... more >>
Sorting an array of ints using a for loop
Posted by CodeRazor at 7/1/2005 6:33:06 AM
How is it possible to sort an array of ints using a for loop?
I recently tried the suggestion a newsgroup user offered on how to perform
this, but find that it doesn't work. He suggested the code below:
int[] list = new int[5]{12,1,105,99,66};
int length = list.GetLength(0)-1;
for (int i... more >>
OCX using c#
Posted by Ravi at 7/1/2005 4:43:03 AM
Hi,
I need to develop a control which runs within Internet Explorer. In
Visual Basic 6.0 we used ActiveX controls. Is there an alternate or an
improved way of developing these type of controls in C#.Net?
Thanks,
Ravi... more >>
What is wrong with this code? (StringBuilder)
Posted by Heribert Coumans at 7/1/2005 4:26:04 AM
given the following 2 functions:
public bool AnOtherSimpleTest1(string aString) {
StringBuilder strB1 = new StringBuilder();
StringBuilder strB2 = new StringBuilder();
strB1.Append(aString);
strB2.Append(aString);
return strB1.Equals(strB2);
}
public bool AnOtherSimpleTest2(string a... more >>
A problem to get your teeth stuck into..
Posted by geoffblanduk_nospam NO[at]SPAM yahoo.co.uk at 7/1/2005 4:25:33 AM
Given a set of intervals {i1, i2, i3, ...} a list is produced; the base
items (0) are placed one at a time into the stream and after the ix one
a interval item (1, 2, 3, etc) of the correct type is created. When
intervals intersect the order is kept (most frequent first).
For example, given th... more >>
C# Error Code list.
Posted by mraj at 7/1/2005 3:31:02 AM
Can some one help me in locating the list of possible errors that could be
thrown out of C#?
--
Mohan... more >>
BitArray Handling by a newbie
Posted by Heribert Coumans at 7/1/2005 1:26:03 AM
giving the 2 methods:
public bool SimpleBitArrayTest1(int length, int order) {
BitArray array1 = new BitArray(length);
BitArray array2 = new BitArray(length);
array1[order] = true;
array2[order] = true;
return array1.Equals(array2);
}
public bool SimpleBitArrayTest2(int length, int ... more >>
SQL table update question in C#
Posted by Wing at 7/1/2005 12:42:33 AM
Hi all,
I have created 2 tables in sql database and join these 2 tables before
assign the result to the dataset, and display the result in datagrid.
Everything is fine up to this point. The problem come up when I want to
delete one of rows in datagrid and update the change to the
correspondin... more >>
CustomAttributeBuilder and Regex.CompileToAssembly()
Posted by Grant Johnson at 7/1/2005 12:00:00 AM
Hi,
I am trying to create an assembly to store compiled regular expressions.
I need to give this assembly a strong name. However, I can't seem to
get my use of the CustomAttributeBuilder class right.
Here's what I'm doing:
// The regular expression
infos = new RegexCompilationInfo[... more >>
Everting the PrintDocument paradigm
Posted by Frnak McKenney at 7/1/2005 12:00:00 AM
Evert: verb. Turn inside out; turn the inner surface of outward.
The project I'm working on involves seven or eight reports. They
vary from simple ("print this field here, that there, with a header
and footer") to more complex ("put field A on the left unless FieldB
is nonzero, in which ca... more >>
c# and SQL Server problem.
Posted by Jacek Jurkowski at 7/1/2005 12:00:00 AM
My application is using an identity field of an SQL Server.
Identity field called "ID" is a Primary Key too. The problem
is when i add some record to the table SQL Server is
assigning it sime new id. But thouse is not returned into a
Data Table so the id number on SQL Server is not equal
thouse... more >>
Panel & external VScrollBar
Posted by Sascha Schmidt at 7/1/2005 12:00:00 AM
Hello !
I'm trying to combine an external (not part of the panel)=20
vertical scrollbar (VScrollBar) with a panel in order to=20
scroll the content of the panel vertically using the external=20
VScrollbar. I can't set the "AutoScroll"-property to true and=20
then use the generated scrollbars ... more >>
Newbie: Count in Repeater
Posted by Singularity.co.uk at 7/1/2005 12:00:00 AM
Hi
I have a repeater on the page which is displaying data from the database
correctly. My question is how can I modify the following code to add an
increasing number value before the database record:
<asp:Repeater id="rptPoint" runat="server">
<ItemTemplate>
<%# DataBinder.Eval... more >>
Where to download ODBC.NET ?
Posted by Charles shao at 7/1/2005 12:00:00 AM
Where to download ODBC.NET ?
I searched by google. but all linkages are expired.
Could you please give me an available link ?
Thanks
Charles Shao :-)
... more >>
|