all groups > c# > january 2008 > threads for thursday january 10
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
Datatable.Clear() method please help
Posted by cameljs18@yahoo.com at 1/10/2008 11:59:53 PM
I have a datatable into which i insert data then display the data in a
datagridview.When i want to clear the table and place completely new
data in the table, the table still retains the column headers(this is
using the datatable.Clear() method).The table then adds the new
headers to the old wh... more >>
System.InvalidOperationException: The ConnectionString property has not been initialized.
Posted by QC at 1/10/2008 11:54:54 PM
Hi,
this morning found that my Service had crashed, and the error was
"Exception Details: System.InvalidOperationException: The
ConnectionString property has not been initialized". I have no clue
WHY the ConnectionString wouldn't be initialized as I do not play with
anything near it in my cod... more >>
c# reading data from .xls file results in missing data
Posted by ebenl555@hotmail.com at 1/10/2008 11:36:01 PM
i am writing code to import data from an .xls file into a db using an
oledbadapter to fill a datatable. I can access most of the values
easily using this method. i do however have problems with a couple of
lines in the file. when i access these rows, they do not contain any
data. when i look at ... more >>
modifying single frames in a multi frame tiff
Posted by Steve K. at 1/10/2008 11:15:15 PM
I would like to rotate pages in a multi-page tiff. Here is my first
attempt:
<code>
public void RotatePageAndSave(int degrees)
{
RotateFlipType rotateType = RotateFlipType.Rotate180FlipNone;
switch(degrees)
{
case 180: rotateType = RotateFlipType.Rotate180FlipNone; br... more >>
Help, Can't send to SMTP using SmtpClient using SSL on port 465
Posted by Rob Dob at 1/10/2008 10:27:06 PM
The following code is giving me a timeout problem., no matter what I do I
can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port
465 and using ssl, if however I try using outlook or outlook express it
works fine..
System.Net.Mail.MailMessage msgMail = new
S... more >>
Riddle Me This
Posted by pbd22 at 1/10/2008 6:51:17 PM
OK.
Can somebody explain why a windows service, when compiled in Debug
mode,
has no problem starting an executable program in one of its methods
and the
exe does what it is supposed to.
But, when the service is installed using installutil the exe fails.
Why might that be??
Thanks.... more >>
How to create a serial number for a software?
Posted by sheperson@googlemail.com at 1/10/2008 6:18:57 PM
Hi,
I have been working for several months on a sofware and now it is
finished.
I have a problem now and it is this:
Because I live in a country which there is no copyright law in it
(Iran!!!!). As soon as I give the software to some customers, the
software will be copied illegally and I don't... more >>
Why Would ResponseStream().Read return zero bytes when not at end of file?
Posted by Rymfax at 1/10/2008 4:47:45 PM
Greetings,
I have an app that uses HttpWebRequest to download a rather large file
(100 MB). I have a while loop set up so that it reads 4096 bytes at a
time from the ResponseStream() until it reads zero bytes. The odd
thing is that for some of the people using my app, the Read() function
fr... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DrawString Graphics problem
Posted by Brian Ward at 1/10/2008 4:40:42 PM
I am trying to get to grips with some basic graphics, being new to C#.
I have this code (see below) in a simple project .. when I run it 6 text
strings are drawn, as I expected .. but this happens twice .. once with
a grey background and once with the white one.
Clearly I am missing something fu... more >>
Problems using RPC
Posted by Tobias_Schröer at 1/10/2008 3:45:07 PM
Hi,
I am running into problems when performing an RPC call on a COM object
via Type.InvokeMember (.Net 2.0 Framework). The exception thrown is
"HRESULT: 0x800706BE", which, after some googling, leads me to this MS
Support Page:
http://support.microsoft.com/?scid=kb%3Ben-us%3B329080&x=6&y=... more >>
DataGridView DisplayIndex
Posted by Aleksey Timonin at 1/10/2008 2:50:58 PM
Hi guys,
I try to adjust columns order in DataGridView via DisplayIndex property and
it doesn't work me properly. Here is the code:
protected override void AdjustGridColumns() {
foreach (DataGridViewColumn clmn in _grdCustomizations.Columns)
clmn.Visible = false;
AdjustColum... more >>
input string was not in the correct format
Posted by Jeff at 1/10/2008 12:25:41 PM
Hey
..NET 2.0
I'm parsing an XML file and read an attribute value out of a node. This
value ( value="0.0000") am I trying to convert to a decimal:
decimal _value = Convert.ToDecimal(reader.GetAttribute("value").ToString());
The code above gives this error:
"Input string was not in the... more >>
Controlling vertical scrollbar position on DataGridView WinForm control.
Posted by JDeats at 1/10/2008 11:12:21 AM
I have a WinForm with two DataGridView controls with drag and drop
enabled between the two.
I have a scenario where a DataGridView control can have rows
dynamically inserted at random positions when a user drags an item
from DataGridView A into DataGridView B and MouseUp is performed I
perfor... more >>
Create a word document from a web server.
Posted by chris at 1/10/2008 10:12:55 AM
I'm generating a report on a web site based on user entered query
parameters.
Obviously, displaying it as a web page is dead easy.
Now, they want me to offer a "download as Word" option. (RTF would do
as well - There are no tables or other fancy things.)
I have no experience binding to Office a... more >>
Constructor Question
Posted by Greg at 1/10/2008 9:43:16 AM
Hi,
I have a class that has 3 different constructors in it. In the base
constructor I want to have it set some default data. I don't want to
have the overloaded constructors do these same operations (event to
the extent of creating a function that each constructor calls).
Is it possible t... more >>
Deserialize case sensitive
Posted by Steph at 1/10/2008 8:32:15 AM
Hello,
I have a problem for Deserialize some xml file.
Some files do not necessarily respect case of the elementname.
how Deserialize with case insensitive ?
my code :
[Serializable]
[XmlRoot(ElementName = "DATA")]
public class DossierQuery
{
private string _code = "";
[Xml... more >>
Repost: WCF CallbackContract with inherited interfaces -> bad prox
Posted by José Joye at 1/10/2008 8:20:00 AM
---------------------
This question has already been posted. I got a tip to use
[NetDataContractSerializer] and also get rid of svcutil.exe. However, I
still want to understand why it does not work the "official" way.
previous post:
http://groups.google.com/group/microsoft.public.dotnet.general... more >>
Ethernet
Posted by jemly at 1/10/2008 8:00:04 AM
I want to write a C# application that communicates with external
hardware using ethernet. Can anyone help me get started as I have done
some research and I don't know where to start!? Any useful web links /
books / examples would be fantastic.
Thanks.... more >>
serialization question
Posted by DBC User at 1/10/2008 7:50:09 AM
I have a binary serialized file on the client box. I would like to
open it with a completly different program to see what is in it. I
copied the the serialized class information from the project which
created it to a new project which will open the serialzed object. When
the program ran I got a ... more >>
Community Approach to business object using DataTable.
Posted by jehugaleahsa@gmail.com at 1/10/2008 7:04:15 AM
Hello:
I am trying to find what is the very best approach to business objects
in Windows Forms. Windows Forms presents an awesome opportunity to use
DataTables and I would like to continue doing so.
I have worked with dynamically generated DataTables with customized
DataRows. However, these... more >>
ConnectionString Builder Dialog not available at Runtime
Posted by cj_torres at 1/10/2008 7:01:00 AM
I wish to invoke the
Microsoft.VSDesigner.Data.SQL.Design.SqlConnectionStringEditor dialog in a
property at Runtime. This would be made available to clients to edit the
connection string. However this is only a design time feature. Is there a
workaround for this??
... more >>
Assembly binding - old and new version
Posted by Piotrekk at 1/10/2008 6:58:31 AM
Hi
I have designed simple assembly ( *.dll - version 1.0.0.0 ) and
registered it in GAC. I have also compiled new version of this
assembly - 1.0.0.1 and also added to GAC.
Then I've created simple console application and added reference to
assembly 1.0.0.0 by pointing the file in "Browse" t... more >>
Buy Cheap Jeans Hoodies T-shirts Jacket on (www.shoessuperstar.com)
Posted by swukong29@gmail.com at 1/10/2008 6:39:54 AM
Online Shopping
Hello
http://www.shoessuperstar.com/
Founded in 1998, Shoessuperstar Co., Ltd. has become a professional
and credible export company from china.
We can provide you DROPSHIP Service and accept PAYPAL payment whic... more >>
Why can't I ... a few newbe questions
Posted by Snaggy at 1/10/2008 6:39:14 AM
1. Why arent't default parameters accepted? Why do I have to use
polymorphism everywhere? This makes my code redundant. Example:
public string showStuff (string whatToShow, int limit = 0){...}
instead of:
public string showStuff(string whatToShow){...}
public string showStuff(string whatT... more >>
Get range (entire column) in C#
Posted by sweetpotatop@yahoo.com at 1/10/2008 6:35:27 AM
Hi,
I would like to know the syntax in C# of getting a few colums in Excel
through range
e.g, I want the 45 to 50th column, what will be the syntax?
sheet.get_Range("45:50", Missing.Value)? But I guess that just give me
row 45 to 50 instead.
I know I can do sheet.get_Range("B:K", Missing... more >>
Localization Design
Posted by Gidon at 1/10/2008 6:29:19 AM
Hi,
In my application design I'm stuck on the following problem:
I have an application that will both be web as well as WPF/WCF based.
Both are essentially the same, only the platform is different. Both
share the same database and both will be totally localized to
currently 3 languages. The loc... more >>
Linq lazy loading
Posted by fredd00 at 1/10/2008 6:21:32 AM
Hi,
i'm trying to use lazy loading with Linq to sql and related objects
seems like you can only call the child object if the context is still
open, this is not real lazy loading.
here is my actual implementation
my class product has a categories collection (using a one-to-many
relation i... more >>
MemberwiseClone() doesn't like arrays?
Posted by pinkfloydfan at 1/10/2008 5:31:29 AM
Hi all
I have a class that implements the ICloneable interface whereby the
Clone() method returns MemberwiseClone().
One of the elements of the class is an array and although the Clone
method appears to work, if I call a method that then adjusts the
members of that array on the new class, t... more >>
Tutorial for writing Controls in C#
Posted by macap.usenet@googlemail.com at 1/10/2008 4:06:11 AM
Hello,
I want to write my own controls for using the ExtJS librarry (http://
extjs.com/)
Nearly like it=B4s done on: http://www.codeplex.com/ExtJsExtenderControl/
Does anybody know a good tutorial or webcast about writing controls,
especially for writing JS-Wrapper classes?
Regards,
M... more >>
password form to perform operation from main form
Posted by ma.giorgi@gmail.com at 1/10/2008 3:23:19 AM
Hi Everybody!
I have the following problem:
from the application mainForm the user can do several operation
Some of them are password protected
(the password is a code that change everytime on the basis of a
reference code)
so when the user click on a menu in the main form, the passwordFor... more >>
MaskedTextProvider Question
Posted by Mark Collard at 1/10/2008 2:38:00 AM
I need to display a MaskedTextBox that has 2 different prompt characters. Is
this possible (maybe using the MaskedTextProvider)? If so, can you please
show me an example on how to do it.
Many thanks... more >>
how to use classes in .net
Posted by vimal.424@gmail.com at 1/10/2008 2:17:01 AM
hi all........
can any body told me,how we use Classes & stored procedure in c#.
thanks in advance... more >>
static variable lifetime in WebService
Posted by Steven Blair at 1/10/2008 2:04:07 AM
Hi,
I have webservice which holds a static variable.
I send my first message into the webservice and the static variable gets
a value. If I queried the webservice at a later time (say after 1 hour)
would the static variable still hold the same value, or would the code
be re-initialised and th... more >>
Client callback adding items to databound collection = crossthread error
Posted by Steve K. at 1/10/2008 1:54:37 AM
I understand the concepts and rules for invoking UI methods from a non-UI
thread. In the past I have always checked with the control's InvokeRequired
property and Invoked my delegate accordingly. This has worked fine, nothing
special.
BUT, I am now working on my first client/server app an... more >>
Connecting Visual source safe with c#
Posted by Vaibhav at 1/10/2008 1:51:02 AM
Hi..
i want to create an application which will connect with Visual Source safe
and return me back the latest copy of a project.
Plz help me its urgent....
Thanx in Advance... more >>
|