all groups > c# > december 2004 > threads for tuesday december 14
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
when getting excel data with ole...
Posted by Antonio. kim at 12/14/2004 11:53:05 PM
Hello~ ^^
I have a question about getting excel data with oledbconnection.
I entered '23190000' to Excel Cell and changed Column width to small, then
the value chaged to 2E+07 or ####.
And I saved this file...(maybe both data saved..viewed data and original data)
when openning this file with... more >>
Resize Images
Posted by SlasherStanley at 12/14/2004 10:51:27 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0279_01C4E22F.C5BACAF0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_027A_01C4E22F.C5BACAF0"
------=_NextPart_001_027A_01C4E22F.C5BACAF0
Content-Type: text/plain;
charset="Windows-1252"
Content-Trans... more >>
Threading problem - Urgent Help
Posted by Carlos Lozano at 12/14/2004 10:35:02 PM
Hi,
I have the following problem. I created a
Properties section:
private SerialComm oComm = new SerialComm(); // Wraps a DLL to handle Serial
//comms.
private Thread PrinterThread = null; // Serial Communications... more >>
DateTime Hell
Posted by Franck Diastein at 12/14/2004 9:25:09 PM
Hi, I'm soon finishing my first app, and I learned a lot :-)
I'm still having trouble with dates...
When I pull a date from SQL Server, I store it in a DateTime variable
and when I want to display it I do this : _date.ToString("dd/MM/yyyy")
and this works fine...
But how do I asign to m... more >>
Service Process Installer
Posted by John J. Hughes II at 12/14/2004 9:24:57 PM
Two question:
1) Is there a way using the "System.ServiceProcess.ServiceController" to
change the service account type from say Automatic to Manual? I have a
control for my service that starts, stops, pauses, and continues but there
does not seem to be an obvious way to handle changing the... more >>
Reg Expression Help
Posted by Adam Clauss at 12/14/2004 9:17:33 PM
Alright, I have the following string:
--------------
Info
Info
Info
Info
Info
Info
--------------------
The string is several lines of information (all about one item) then a blank line. Then a series of information about another item,
etc, etc.
I'm trying to split this into eac... more >>
Connection Pooling and the data access application block
Posted by Edward W. at 12/14/2004 9:02:35 PM
I was looking at the data access application block version 2 and considering
what I had read about connection pooling in that to use connection pooling
successfully, you should close your sqlconnections as quickly as possible.
The DAAB doesn't seem to close or dispose of connections. Are peop... more >>
Saving DataGrid changes to database
Posted by David K. at 12/14/2004 7:26:57 PM
Hi all,
I am using a Windows Forms DataGrid control.
I would like to save to database any changes I made directly in the datagrid
control (either adding, changing or deleting), - by using the Update()
adapter method.
Please, let me know if it is possible and how it should be done.
Thanks... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Embedded ComboBox in a DataGrid control
Posted by David K. at 12/14/2004 7:16:12 PM
Hi all,
In a Windows Forms project, I would like to replace one of the columns in a
datagrid - with a ComboBox.
Any help will be very much appreciated.
Thanks,
David
... more >>
Possible to manipulate emails from Outlook Express by C#?
Posted by Bradley1234 at 12/14/2004 7:12:39 PM
I run Windows2000, and OE v.6? everything updated. But for some reason, any
email attachment is "removed" by OE, but it will show the file name and size
that it was kind enough to block.
What I have to then do is forward it to my yahoo account, where I can open
it, save it, then use it on out... more >>
Using collection as data object to a DataGrid
Posted by David K. at 12/14/2004 7:09:14 PM
Hi all,
I had created an Windows Forms project. I have created several struct
objects (with three fields) and added them to ArrayList collection. Next, I
tried to use that collection as a data object and assign it to the
DataSource property of a DataGrid control. Unfortunately, the DataGrid... more >>
Accessing compiler error messages from web page that runs batch file
Posted by Jon Maz at 12/14/2004 6:50:51 PM
Hi All,
To allow myself to make development changes directly on a remote server
*without* having to compile on my local dev machine and then upload the
dll's to remote, I have created a RunBatch.aspx on the remote which calls a
batch file (myBuild.bat) on the same machine, and this batch file ... more >>
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount" Problem Still Error
Posted by kelvinweb NO[at]SPAM gmail.com at 12/14/2004 6:47:39 PM
Hi All,
I try to use the following microsft resolution web site, but still
have same problem.
http://support.microsoft.com/default.aspx?scid=kb;en-us;555074
I put the source code on "DataGrid_setPage"
try
{
//bind code
CheckOrder (null,null ); <---- Binding Function
}
... more >>
RegEx Problem in .NET
Posted by BigAl at 12/14/2004 6:37:05 PM
Perhaps someone here can help me out...
RegEx: "^.*\d{5}(-\d{4})?.*$"
Intended Purpose: To strip out the City/State/ZipCode line from a signature.
Sample Text:
Joe Jackson
131 W. 5th Street
New York, NY 10023
RegEx Should Return: "New York, NY 10023"
1) This RegEx works correct... more >>
RegEx Not Working In .NET
Posted by BigAl at 12/14/2004 6:33:08 PM
Perhaps someone here can help me out...
RegEx: "^.*\d{5}(-\d{4})?.*$"
Intended Purpose: To strip out the City/State/ZipCode line from a signature.
Sample Text:
Joe Jackson
131 W. 5th Street
New York, NY 10023
RegEx Should Return: "New York, NY 10023"
1) This RegEx works correct... more >>
Anchoring and docking (problem with sizable form)
Posted by Mad Joe at 12/14/2004 6:14:02 PM
Hi!
I have a window form that contains 4 elements (2x2) on one panel.
Those 4 elements are GroupBoxes of the exact same size, sorted like this:
groupBox1 groupBox2
groupBox3 groupBox4
While resizing a Form window manually, I would like to resize
automatically each groupBox by keepin... more >>
Type.GetType(string)
Posted by the fuzz at 12/14/2004 6:02:31 PM
yeah g'day..... is it somehow possible to not include the version & public
key token in the call to Type.GetType(string)
ie something like
Type.GetType("System.Windows.Forms.ListView, System.Windows.Forms");
instead of
Type.GetType("System.Windows.Forms.TextBox,
System.Windows.Forms,... more >>
Datagrid
Posted by silesius at 12/14/2004 5:30:29 PM
I hava a datagrid bound to a dataset and would like to control which columns
in the datagrid can be edited.
What's the easiest way?
... more >>
Visual C# .NET Deluxe Learning Ed.
Posted by Andy2005 at 12/14/2004 5:27:03 PM
i am a c++ programmer and i wanted to learn directx but am lazy and think
directx in c++ is too much work.
i started learning with SharpDevelop + vc# 2005 beta and fell in love with
C# syntax
i then ran out and buy me Visual C# .NET Deluxe Learning Ed.(vc# std).
(comes with a good book)
i ... more >>
User controls
Posted by Fabio Negri Cicotti [MCP] at 12/14/2004 5:26:46 PM
Hello all.
I'm developing few "user controls" and honestly that is a new world for me,
thus sorry about silly questions.
So, how do I make a user control goes to page's bottom when is dragged
insted of goes to the Form? In other words what I want is a control without
interface (similar t... more >>
Send short message
Posted by cfyam at 12/14/2004 5:16:19 PM
How can I send a short message to my cell/phone in my C# app?
... more >>
C# COM dll called by a C++ app not returning strings
Posted by sienaman at 12/14/2004 4:55:03 PM
I have a C# dll with a COM interface that is successfully call by a C++
client. One of the parameters is a string, the method looks like
void Goofy(string strUserInput,[Out, MarshalAs(UnmanagedType.LPWStr)] out
string strOutput);
I make an assignment in the C# COM object to strOutput like ... more >>
dynamic member reference
Posted by Sharon at 12/14/2004 4:36:58 PM
Hi to all.
How do i reference a class member dynamically?
Somthing like:
byte i = 35;
Button currentButton = this["button" + i.ToString()];
Thanks,
Sharon.
... more >>
ascii or binary
Posted by Pohihihi at 12/14/2004 4:01:34 PM
Hello NG,
I am making a small tool which reads files on harddisk and saves many
information about files in a db. Now, while reading information from the
file I want to figure out what type, ASCII or BINary, it is while reading. I
can look for ext but there are millions of them and not very ... more >>
How can I remove the escape character?
Posted by Steve at 12/14/2004 4:01:02 PM
string str ="\"C:\Program Files\Internet Explorer\iexplore.exe\" -nohome"
How can I remove charcter to
string str = ="C:\Program Files\Internet Explorer\iexplore.exe -nohome"
... more >>
Regular Expression Glitch!!!
Posted by Vai2000 at 12/14/2004 3:59:20 PM
Hi All, These are the sample inputs and expected replacement expression. My
Regular expression is glitchy can someone correct?
// Inputs:
#VE*89*9# // Sample 1
#VE*3*90# // Sample 2
#VE*2*9# // Sample 3
//Want to replace with
#VE*1*1#
Regex rx= new Regex("#[V][E][*][1-9]|[0-... more >>
Address and phone validation
Posted by Srinivas Kollipara at 12/14/2004 3:49:11 PM
Hey guys,
i have a small question in C#. I have a windows form which has Address
fields, zip code and phone number fields. it is working fine with U.S. but i
need to modify that for all the other countries. is there any way i can
validate zipcode and phone numbers.... Thanks in advance.
bye
Sr... more >>
Sort mark in List View Column Header
Posted by Gas at 12/14/2004 3:41:06 PM
Hi,
I am just wondering is there a way to add an up or down arrow in the column
header of a list view control to indicate that the row are sort by that
column?
Gas
... more >>
Is the opportunity for creating objects limited and often exagerated to the detriment of software at hand? Discuss :-)
Posted by thechaosengine at 12/14/2004 3:12:13 PM
Hi everyone,
I've been having some discussions with collegues of mine as to what
constitutes an OO design. I don't have a very strong view but was wondering
what everyone else thinks. The two opposing view fell like this:
View 1
In order to be making OO software you should be instantiatin... more >>
Newbie: Trying to figure out library's behavior.
Posted by Daniel Passwater via DotNetMonster.com at 12/14/2004 2:58:56 PM
If I hard code something in a comm library, such as load an array, when I use the dll will the value be there?
--
Message posted via http://www.dotnetmonster.com... more >>
How can i get MX record from dns server
Posted by Alexander at 12/14/2004 2:33:00 PM
Best regards,
Alexander Zaharov.
... more >>
visual Studio not opening multiple Cs files....
Posted by SenthilVel at 12/14/2004 2:28:14 PM
HI all
in my visual studio DOtnet .
i am not able to open multiple cs files in the projects , its openings only
one cs file at a time,
can any one let me know, what setttings i must do in order to get all the CS
files to edit so that i can see all the files opened.
Thanks
Senthil
... more >>
Deployment problems
Posted by Scanner2001 at 12/14/2004 1:25:50 PM
This may not be the best group to post to, so if there are any
suggestions as to a different group, please let me know.
Here is what we are doing, we have a couple of dlls that are shared
(i.e. used by a number of other dlls and applications). These dlls have
their own setup process, b... more >>
Property or get/set methods ?
Posted by Herve Bocuse at 12/14/2004 12:51:33 PM
Hi,
I'm just wondering what are the guidelines for using a Property or a pair of
get/set methods related to a member variable ?
What do yu guys do ?
Thank you
Herve
... more >>
Binding a ListBox to a DataTable
Posted by Scott at 12/14/2004 11:51:08 AM
I'm trying to bind my listbox to a SQL query like this:
using (SqlConnection conn = new SqlConnection(CONN_STR)) {
using (SqlDataAdapter da = new SqlDataAdapter("roboticSiteNames", conn)) {
DataSet ds = new DataSet();
da.Fill(ds);
DataTable dt = ds.Tables[0];
lbSiteCode.D... more >>
brain frozen on enumerator
Posted by Stephanie Stowe at 12/14/2004 11:29:54 AM
Hi. I am trying to understand the weird System.DirectoryServices object
model. I have a DirectoryEntry object. I want to enumerate through the
PropertyCollection. So I looked at GetEnumerator. Lovely. My memory cannot
dredge up how to use an enumerator. I do not understand the documentation,
whc... more >>
web page loading when opening console application..
Posted by jam at 12/14/2004 11:15:48 AM
Dear all,
I ask some question before and i got some idea, like background thread....
However, I still dun know how could i start implementing this, could someone
help me on this and give me some sample code, how I could the page
displaying loading when I am calling a console application when i... more >>
try to AddMinuts in DateTime
Posted by Elmar Jacobs at 12/14/2004 10:54:22 AM
hi guys,
i try in this way
c#
System.DateTime actDateTime = CDocument.instance().getDateTime();
lastWarningDateTime = actDateTime;
lastWarningDateTime.AddMinutes(6);
if (lastWarningDateTime == actDateTime)
actDateTime = actDateTime;
c#
to add an offset in an instance of DateTime cla... more >>
REPOST:Hiding base class property from derived class instance
Posted by Baski at 12/14/2004 10:32:22 AM
Base class:
class AssetBase
{
string _clli;
public string CLLI
{
get
{
return _clli;
}
set
{
_clli = value
}
}
}
In Derived Class I want to give dif... more >>
windows task scheduler fails to restart
Posted by chandru.govind NO[at]SPAM gmail.com at 12/14/2004 10:17:26 AM
Hi,
I built a C# application that scans a folder and pops up a form if
there are any files present in the folder. I have scheduled this as a
task to repeat every 1 min using the windows task scheduler. But what
happens is that if that application is running, the task scheduler
fails to start ... more >>
How to code incremental search
Posted by rh at 12/14/2004 10:03:21 AM
Hi, I'd like to add an incremental search to my windows form DataGrid that
works like the one used in Windows Explorer.
In Windows Explorer, when you type a character it jumps to the first item
that matches that character. If you type another letter within a given
amount of time it will be ... more >>
Regex Websites
Posted by Mark at 12/14/2004 9:46:36 AM
Any recommended web sites for regular expressions? Thanks in advance.
Mark
... more >>
stop thread immediatly
Posted by Ha ha at 12/14/2004 9:39:33 AM
I create a main thread ,than create a subthread in the main thread,when
i found any error,i want to stop the subthread and the main thread
immediatly .How can i do for it.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
asp.net C# parameter question
Posted by Eric van der Niet at 12/14/2004 9:36:15 AM
Hello,
I am calling a Webform the following way:
http://<server>/<directory>/webform1.aspx?oType=1090&oId={ACF1BBA5-9002-4B36-8136-46C3687636D8}
As you can see i am sending a guid parameter to the form... but now the
question: In the webform how do i get the second parameter out of the
ca... more >>
generating dll at runtime
Posted by Faraz at 12/14/2004 9:35:06 AM
Hi guys,
I am trying to generate a dll file from a class file at runtime for
reflection purposes.
I am using System.Diagnostics.Process class to run a batch file that will do
this:
csc /t:library %1
Unfortunately the run-time window that opens when I run from Visual
Studio.NEt does not... more >>
msde
Posted by freddy at 12/14/2004 9:23:04 AM
I would like to start using msde with c# and it's features.Is ther a link
that you can send me... more >>
Getting exe version info
Posted by g18c NO[at]SPAM hotmail.com at 12/14/2004 8:29:05 AM
Hi, have a real simple question but i cant find the answer in the
docs... i would like to get my c# exe's version info so i can display
on a splash screen and in the about box.
i have looked at stuff on assembilies and reflection but cant make much
headway with it. Any help much appreciated.
... more >>
Literals
Posted by Shem at 12/14/2004 7:45:02 AM
Hi Folks,
I am trying to parse out a string which contains the User.Identity.Name
which results in something like mydomain\me. So when I do somethong like
trying to find where the backslash is by:
suser = User.identity.Name
iPos = sUser.LastIndexOf(@"\",1)
It never finds the backslash! I... more >>
What controller is best to...
Posted by Stijn Goris at 12/14/2004 6:59:02 AM
Hi all,
I want a user to create a list. The list is a one row, multicolumn (or one
volumn, multirow) The user should be able to add and remove items on the list.
What do I best use?
Regards
Stijn... more >>
fastest way to parse a file; Most efficient way to store the data?
Posted by hoopsho at 12/14/2004 6:46:45 AM
Hi Everyone,
I am trying to write a program that does a few things very fast
and with efficient use of memory...
a) I need to parse a space-delimited file that is really large,
upwards fo a million lines.
b) I need to store the contents into a unique hash.
c) I need to then sort the data ... more >>
Search engines and buttons
Posted by Dave at 12/14/2004 6:29:57 AM
Hi all,
The app I am developing is using .NET forms. To continue
in the application, I have linkbuttons, however, I notice
these use Javascript doPostBack to "POST" the form.
I am a little concerned about the implications for search
engines.
I am using C# along with Microsoft Content ... more >>
Selecting specific data to download
Posted by Dave at 12/14/2004 6:18:58 AM
Hi all,
Apologies if this is the wrong group. I have done a
search on google but my keywords are probably no good.
What I want to do is to display a list of data in a
datagrid (which I have already done). At the side of the
list, I want to put in a checkbox, basically to select
that li... more >>
Pretty easy question, i'd assume..
Posted by brianbasquille NO[at]SPAM gmail.com at 12/14/2004 5:56:20 AM
Hello all,
I have an form to Enter a Name with letters from A to Z in buttons.
When you click a button, it should append the text associated with
that button to a text box.
Instead of having an EventHandler for every button with a click event
of:
private void btnA_Click(object sender, ... more >>
ASPX page updates
Posted by James Lennon at 12/14/2004 5:47:05 AM
I am implmenting an aspx page that displays data from a database. I would
like the page to automatically update when the database changes. Does .NET
provide a mechanism that would cause a client web browser to perform a post
back that is initiated by the server side (possibly the users sessi... more >>
Trailing zeros and floats
Posted by V. Jenks at 12/14/2004 4:22:27 AM
I need to store money values in C# and I noticed when using
a float, the trailing zero was trimmed off automatically.
I don't want this, is there a native type that will *not*
do this so I can have my trailing zeros?
I want $0.10 not $0.1.....obviously that gives me serious
data issues.
T... more >>
Thread GUI problem
Posted by denton at 12/14/2004 2:51:03 AM
I want to read a line from the textbox just like a console window. The
called thread will not allow me to enter keys when I call Join. I have stuck
on this problem for 2 weeks:
private void button3_Click(object sender, EventArgs e)
{ ReadLine(); }
public string ReadLine()
{
Thre... more >>
PathGradientBrush throws out-of memory exception
Posted by bipingm NO[at]SPAM gmail.com at 12/14/2004 2:26:51 AM
In the following snippet of code,
GraphicsPath path = new GraphicsPath()
path.AddEllipse(0,0,X,X);
using (PathGradientBrush pgb = new PathGradientBrush(path))
{
pgb.CenterColor=Color.Red;
pgb.SurroundColors=new Color[]{Color.White};
e.Graphics.FillEllipse(pgb,0,0,X,X);
}
If X=0 (paramet... more >>
SendKeys to another running application
Posted by bat sar at 12/14/2004 2:19:28 AM
Hi all
I'm working on Visual C# .NET, I'm new and I want to build on-screen
keyboard, I want to know what should happen when you click a button,
lets say its "A" how should I send the value of it to another running
application, let it be Word or any other programm... I found somthing
about Se... more >>
how to use C++ DLL in c#
Posted by eric at 12/14/2004 1:29:45 AM
Hi,folks:
I have a class developed by vc++6.0 include .h .lib .dll.
can someone tell me how to use it in C#?
thank in adv
james
... more >>
cmd.exe doesn't work unless....
Posted by Primo at 12/14/2004 12:47:09 AM
Hi,
I'm relatively new to C# so apopogies in advance if I am missing something
obvious. I am trying to run a command, which I would normally run from the
command line, from within my C# application. Here is my code:
private void FileMonitor_Changed(object sender,
System.IO.FileSystemEven... more >>
Generics in VB.Net?
Posted by Robby at 12/14/2004 12:03:39 AM
In C++ I can write template classes and in C# they have generic classes that
are something like C++ template classes. Is there currently a why to write
them in VB? MS is adding C++ type functionality like operator overloading
to VB in version 2.0 of the .Net Framework. Will there be a way... more >>
|