all groups > c# > april 2006 > threads for friday april 28
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
Question regarding exception....
Posted by Wallace at 4/28/2006 10:11:20 PM
Hai All,
I have one doubt, here is the code sample....
try
{
for loop
{
// doing some operations.....
}
}
catch(Exception e)
{
string str = e.Message;
}
If an exception occurs within the for loop and it will come ... more >>
Plugins
Posted by Alberto at 4/28/2006 9:55:21 PM
Does anybody knows where can I find information about building an
application using plugins in c#?
Thank you very much
... more >>
why float
Posted by Martijn Mulder at 4/28/2006 8:41:49 PM
Why is there a type float in C#?
Working with integers is best, of course. It is like carrying pebbles around
in your pocket. But if you need decimal floating point values, in graphics
transforms or in scientific programs, you take the highest precision,
double.
I can understand that lan... more >>
Memory leak in C#
Posted by Raja Gregory at 4/28/2006 5:49:39 PM
Hi All,
I have developed a server application in C#. While running this
application, it is not running more than 30 minutes due to memory leak.
Could you tell me what will be the problem?
Thanks & Regards,
Raja.GS
... more >>
Raw XML/SOAP communication.
Posted by Kalpesh Modha at 4/28/2006 4:34:58 PM
Hello.
I have written a web service consumer. The web service itself lives else on
any machine at our supplier.
How to I capture the XML/SOAP communcation between my consumer and the web
service.
the consumer is written in C#.
thanks for your help
Kalpesh Modha.
... more >>
Number type conversion
Posted by Pavils Jurjans at 4/28/2006 4:05:32 PM
Hello,
I am somewhat lost in the implicit/expicit possible/impossible type casting
in C#...
I need to write a class, which among other things, must have wat to read a
numeric value type, and internally convert it so that it could be saved in
database as real number (float). I plan to pro... more >>
uint64
Posted by Bob Allen at 4/28/2006 3:44:36 PM
I have no idea what group to ask this in so i will start here. Does anyone
have a good way of compressing a 19 digit number down to the smallest
possible number? I have a delima of having a uint64 19 digit number that i
need to fit into a 10 digit space. I have tried using byte comparisons and... more >>
Is it possible to center the text of a groupbox?
Posted by Marcel Brekelmans at 4/28/2006 3:10:50 PM
Hi,
Is this possible? Normally, you get a groupbox with the text at the left
side. I would like to have it centered. Is this possible?
Thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Installing a Plugin into an application
Posted by JGAllen23 at 4/28/2006 2:16:11 PM
I have an application that has an interface for people to create
plugins and use them. Right now I just search for dlls that use my
interface in a specific folder. I want to create a filetype so the
user can download the plugin and then it gets added to my application.
I'm wondering what is ty... more >>
Exception .net activex loaded with axhost
Posted by Martijn Boven at 4/28/2006 1:15:15 PM
I created a activex control in c# (vs 2005)
--------------------------------------------
[Guid("41D7A3C7-B891-4379-BE33-5195A2CFF913"), ComVisible(true)]
public partial class ActiveTest : UserControl
{
public ActiveTest()
{
InitializeComponent();
}
}
---------------------... more >>
XMLNode --> Adding an Attribute
Posted by Andy at 4/28/2006 1:00:01 PM
Hello Guys:
What am I doing wrong with this code? I can't seem to get it to simply add
an attribute to my node. The node already exists. I am simply opening the
XMLDocument and creating one attribute to the document. I am not creating
the document new
XmlNamespaceManager xnsm = new X... more >>
how to write to UI after each row has been processed?
Posted by cooltech77 at 4/28/2006 11:50:02 AM
Hi,
I have a windows form with a button and a richtext box
On click of a button ,I am looping through a datatable which has 3600 rows
and i am checking some code for each column in the row.There are 300
columns.
So total iteraations are 3600*300=960000
eg
for(i=0;i<rows.count;i++){... more >>
Datagrid
Posted by Shahid at 4/28/2006 11:30:32 AM
I am trying to copy a report that was created in Crystal Reports and
attempting to do it in ASP.NET using datagrids, tables, etc.
I know I can integrate crystal with ASP.NET but we want to add more
customization to it.
I have had luck using tables but it is only because it is mostly
hardcod... more >>
Control Generic Type Parameter
Posted by Jinsong Liu at 4/28/2006 11:07:03 AM
Hello Group:
I am playing with .NET 2.0 Generic. I have a CarsList<T> Generic
class, Is it possible that I can control what T could be? I want to
ensure the T can only be classes derived from a specific class (lets
say Car).
I understand that I can create a CarList without using Generic, but... more >>
Disabling certain routines/properties when inheriting.....
Posted by UJ at 4/28/2006 10:28:59 AM
I am going to write a class that will inherit from SqlCommand and I want to
disable certain routines in the SqlCommand and add a couple of new routines.
How would I go about doing that? I understand (I think) the inheritance
process but I'm worried more about the disabling of the routines. I w... more >>
using ArrayList Collection class
Posted by diatom NO[at]SPAM newsgroup.nospam at 4/28/2006 10:00:01 AM
(Sorry if this is a re-post, don't think it worked the first time)
Hello,
I am trying to add an ArrayList as a field in my web form class.
Here is a sample:
using System;
using System.Collections;
....
ArrayList myArrayList = new ArrayList();
myArrayList.Add("Belleck Colleen Vase")... more >>
using ArrayList Collection Class
Posted by diatom NO[at]SPAM newsgroup.nospam at 4/28/2006 9:58:02 AM
Hello,
I am trying to add an ArrayList as a field in my web form class.
Here is a sample:
using System;
using System.Collections;
....
ArrayList myArrayList = new ArrayList();
myArrayList.Add("Belleck Colleen Vase");
myArrayList.Add("Belinda Bradshaw Cat Bowl");
myArrayList.Add("Nic... more >>
Bug in C# Compiler? (generics)
Posted by AnotherMike at 4/28/2006 9:17:01 AM
Hello,
Can anyone tell me why this won't compile. I'm getting the error:
"The type 'GenericsTest.GenericType3' must be convertible to
'GenericsTest.GenericType2<GenericsTest.IInterface2>' in order to use it as
parameter 'T' in the generic type or method 'GenericsTest.BaseCollection<T>"
... more >>
Namespace
Posted by John at 4/28/2006 8:47:02 AM
The following is defined in VB .NET 2003
' VB .NET 2003
Namespace MyNamespace
Public Class MyClass
End Class
End Namespace
In my C# project, 'using MySpace' causes error that says the type of
namespace cannot be found.
I added reference to the C# project. Please help. Than... more >>
How a control can detect when a form is being moved
Posted by timnels NO[at]SPAM gmail.com at 4/28/2006 8:31:25 AM
I have a control that paints a borderless form below it to act as a
grid combo box. When the parent for is moved I need the control to
detect that the parent form is moving/moved and move the child form
along with it. Can someone shed some light on my options here?
... more >>
Is there a file size limitation for System.IO.Compression?
Posted by leo NO[at]SPAM junquera.com at 4/28/2006 8:30:53 AM
I know there was a limit of 4gb on for some compression tools. Does
this limit exist for System.IO.Compression?
... more >>
Length of a struct
Posted by Stephan at 4/28/2006 6:27:02 AM
Hello NG,
I have two structs.
The only differnce is the order of the members:
public struct DataStruct
{
public UInt16 Sekunde;
public UInt32 BehälterId;
public UInt32 WannenNr;
public UInt16 Station;
};
public struct DataStruct
{
public UInt32 BehälterId... more >>
xpath Expression - Select SiingleNode
Posted by Andy at 4/28/2006 6:20:03 AM
Hello Guys:
I am having a little difficulty picking up how to perform an XPATH to get a
single value for an XML file.
<ICSMXML xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header>
<MsgDelivery>
<To>
<Credential>
<Domain>ICSMID</Domain>
<Identity>105</Identity>
</Credential>
</To>
... more >>
Is a cast to string always possible without exception?
Posted by geronimi at 4/28/2006 4:59:20 AM
I wonder when an exception raises when I do this:
string str= (string)ds.Tables[0].Rows[0]["CODE"]
The row is always filled with data
If there is a dbnull.value in it, does it raises an error?
And for other data?
thx
... more >>
How to pre-allocation Harddisk space?
Posted by Chi at 4/28/2006 1:02:48 AM
According this
http://research.microsoft.com/research/pubs/view.aspx?tr_id=841
said, if you pre-allocation space for writing , it will be much faster,
but how can i do this?
Thank... more >>
C# Client browser, cookies enabled?
Posted by dawson at 4/28/2006 12:17:45 AM
I started off by trying to use the HttpCapabilitiesBase.Cookies
Property (Note: This property is new in the .NET Framework version 2.0)
however it kept on returning true even when I disabled cookies in both
FireFox and Internet Explorer.
After a bit of googling I found that a lot of people wer... more >>
What is C# equivalent of Delphi's ClientDataSet ?
Posted by Oleg Subachev at 4/28/2006 12:00:00 AM
Is there C# equivalent of Delphi's ClientDataSet ?
ClientDataSet is an in-memory DataSet, that has no
external data storage.
Oleg Subachev
... more >>
from generic type to closed type
Posted by Tommaso Caldarola at 4/28/2006 12:00:00 AM
In my method
Method<T>()
{
//... some stuff
}
How can I know the real type of T?
Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php... more >>
How can I increase the size of the Scroll bar
Posted by msnews.microsoft.com at 4/28/2006 12:00:00 AM
Hi all
I am working on an application for a touch screen terminal. I have placed a
datagrid on the form and the user will select a row on the datagrid. I have
increased the font size on the datagrid to make it easier for the user to
choose one using the touchscreen. How can I increase the ... more >>
polish character.dbf VFP6.0 -CSharp VS2003
Posted by krzysiek at 4/28/2006 12:00:00 AM
File ".dbf" with codepage mazovia (620) from VFP6.0. In field nazw_mat
value:±æê³ñó¶¿¼¡ÆÊ£ÑÓ¦¯¬1 .
Program C# VS2003
Read first and ±æê³ñó¶¿¼¡ÆÊ£ÑÓ¦¯¬1 - ok.
read secend and acelnószzACELNÓSZZ1 - not ok.
I'm sure, that secend open bloking acces to file codepage .dbf and copy to
an... more >>
Iterating through a enum
Posted by Simon Hart at 4/28/2006 12:00:00 AM
Is this possible?
I have a load of items defined in a enum. I simply want to check if a string
variable if defined in anyone of those enum items. Don't want to have to use
if statement.
Regards
Simon.
... more >>
generic type and cast
Posted by Tommaso Caldarola at 4/28/2006 12:00:00 AM
delegate void SomeDelegate<T>() where T : BaseClass;
my_event(object sender, myEventArgs e)
{
//e.Tag object is SomeDelegate<DerivedClass>
SomeDelegate<BaseClass> del = (SomeDelegate<BaseClass>)e.Tag; // *** unable
to cast DerivedClass in BaseClass
}
How I cast (if possible) ... more >>
ANN: ModelMaker Tools gives away free licenses !
Posted by Gerrit Beuze at 4/28/2006 12:00:00 AM
Hi all,
What?
Yes: ModelMaker Tools are giving away three single user licenses for a
ModelMaker Tools product of your choice!
To participate in this one off prize draw, all you have to do is send an email before May 31st 2006.
Check the details on http://www.modelmakertools.com/free-license... more >>
|