all groups > c# > february 2004 > threads for saturday february 21
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
System.DateTime without range check
Posted by vakilzadeh NO[at]SPAM kzlabs.com at 2/21/2004 11:07:04 PM
Is there any way to construct a System.DateTime which doesn't check
year, month and day to be in correct range== no validation?
Thanks
A.V.Ebrahimi... more >>
C# business objects
Posted by Michael C at 2/21/2004 10:14:27 PM
Hi everyone
I learnt VB OOP from Rockford Lhotkas book VB6 Business Objects
at the time I believe he was very well advanced in OOP.
His new book C# Business Objects does not come out until July, and by then
I fear I may have gotten way into C# class structures and business objects
Does an... more >>
Internal classes
Posted by Michael C at 2/21/2004 10:09:50 PM
Hi all
I can access an internal class by this method if I do it within the
namespace
{
namespace ClassTest
public class1
{
internal class class2
{
}
}
public class Tester
{
class1.class2 myclass2 = new class1.class2
}
... more >>
Prototyping
Posted by Tilted at 2/21/2004 9:53:00 PM
Does anyone here use prototyping tools? I'm building one myself as I feel
like I'm doing the same thing over and over again with the majority of my
projects, how do people generally feel about them? Do people ever use the
generated code in production?
Thoughts appreciated.
Chris.
... more >>
Another GDI+ question
Posted by Karthik Seetharaman at 2/21/2004 9:26:01 PM
Given a string, the font, fontstyle and fontsize how do i calculate the
rectangle that will hold it ?
thanks.... more >>
Classes and Namespaces
Posted by Michael C at 2/21/2004 7:57:18 PM
In Vb a class was a file, but in C# you have multiple classes in one file
which
has a namespace.
I am trying to get some common code libraries written but this is stuffing
my head up.
Is it normal in C# to have a namespace for each class file or isn't it a
class
I now need to call like ... more >>
MSComm32.ocx licenses error
Posted by eray at 2/21/2004 5:18:52 PM
hi ;
at the C# compiler using a MSCOMM32.ocx project, when i want to
install this project on the pc which is not installed visual basic says
"there is no licence". for solving this problem do i need to register
MSComm32.dll into the C#? i read in .NET documents doing this with Ic.exe
but... more >>
C# and Pocket PC
Posted by Peter Seaman at 2/21/2004 4:43:11 PM
I have purchased C# Standard and it includes Visual Studio 2003. But it
does not seem to include Smart Device (Pocket PC) as a project template. Is
it possible to I upgrade my C# product so I can develop C# applications for
Pocket PC?
Peter Seaman
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Arrow Up
Posted by Patrick De Ridder at 2/21/2004 2:57:00 PM
How should I check for the arrow up (or down) key
having been pressed (in order to initiate something)?
If I use keypressed and check for (char)72
I don't get the desired results.
Many thanks,
Patrick.
... more >>
Icons
Posted by Bonj at 2/21/2004 2:16:10 PM
Is there any good pointers to creating icons in resources and using them in
C# projects out there?
All I can seem to find in the help is localization of languages and culture
settings,none of which I want.
... more >>
Extract portion of a bitmap to display, not entire bitmap.
Posted by grayaii NO[at]SPAM netscape.net at 2/21/2004 1:05:35 PM
Hi,
I have an app with a whole bunch of buttons, and each of these buttons
have their own bitmap file.
I would like to just have one giant bitmap, which contains all the
images i'll ever want to use.
ie:
this.ALL_BITMAPS = new Bitmap(GetType(),"Bitmaps.AllBitmaps.bmp");
and then hav... more >>
How can i develop office2003 with c#
Posted by Àä×ÔȪ at 2/21/2004 11:11:40 AM
I heared that the vba is not the major develop language in office2003.The
best way to develop office2003 is using vs.net and c#.
where could i find document about devloping office2003 with c#
thanks!!!
... more >>
Automatic Refersh the Datagrid with the timer class in System.Threading
Posted by Montaque at 2/21/2004 10:51:58 AM
//Refersh the datagrid automatically.however,the callback function =
test() is not been invoked. any suggestions?=20
the following lists the code=20
private void AutoRefreshData()
{
System.Threading.Timer c=3Dnew System.Threading.Timer(new =
TimerCallback(this.refreshdata),this,... more >>
Control, UDP and IE
Posted by Thierry Lefevre at 2/21/2004 10:42:14 AM
Hi all,
I have written a control in c# which heard an UDP port on a network
broadcast address.
In the other hand, a server send periodically (every 500ms) some messages to
this broadcast address/port.
(1) if the control runs on a winform, there is no problem. It displays the
messages immedia... more >>
how to change mouse cursor to busy state
Posted by alik at 2/21/2004 10:31:09 AM
hi i am using c sharp and not able to change the cursor sharp to busy state when i am performing some porcessing.please tell me thanks... more >>
C# USB Application
Posted by eggie5 NO[at]SPAM verizon.net at 2/21/2004 8:49:34 AM
Ok, i'm about to start a C# program to interface a board a friend
made. In order to do this; I need the DDK, to make a driver in C++ for
the custom board, then PInvoke it, inside of my C# app. Correct?
PInvoking the driver dosn't sound right... Does anybody have some
incite?... more >>
HOWTO: Convert a string in scientific format to a decimal
Posted by Krish at 2/21/2004 8:48:53 AM
Hi,
How to convert "1283912839E-5" string (in scientific format) to a decimal.
Convert.ToDecimal("1283912839E-5") is throwing "Input string is not in
correct format" exception. Is the exponential format not supported during
conversion?
I think we need to use NumberFormatInfo, but dont kno... more >>
Redemption + SenderID of a mail item
Posted by v_anushya NO[at]SPAM hotmail.com at 2/21/2004 8:18:21 AM
Hi
I ma trying to get mailid of the 'from' address in .NET. When i try to
access mailitem i could only see 'senderName' available both in
Outlook mailitem and Redemption. No senderid.
Tried accessing contacts but how to get the id of SenderName who is
not in contact?
How to get SenderId e... more >>
Sending a POST request in C#
Posted by ededington NO[at]SPAM yahoo.com at 2/21/2004 7:42:57 AM
I am looking to send the same request that is being in the form, but I
would like to reproduce it in C# and get the response back. With
everything I have tried, it looks like I am getting back the invalid
password response page. Here is the HTML:
<HTML>
<HEAD>
<style>
</style>
<SCRIPT la... more >>
server variables
Posted by Philip Townsend at 2/21/2004 6:59:25 AM
When using the ServerVariables collection, is there any way to detect
more than just browser version? I would like to be able to detect
certain plugins from the server side. Any suggestions? Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENE... more >>
Generate Image and map area
Posted by Karthik Seetharaman at 2/21/2004 5:14:47 AM
I have to aspx pages default.aspx and imagegen.aspx
default.aspx has an image webcontrol whose imageurl property is set to
imagegen.aspx. imagegen.aspx generates a bitmap image and writes it to
outputstream and this image is then displayed in default.aspx
Now i would like to generate a map... more >>
Please help me
Posted by lagoon75 at 2/21/2004 4:51:05 AM
Hi
I would like to ask 3 questions. I want to display a usercontrol in a form so I create an instance of the control with new(), and then set the location with the Location property and then use add(). No problems so far. Now I would like this picture moving from left to right so I put set the loca... more >>
Converting object to byte array
Posted by Svetoslav Vasilev at 2/21/2004 4:06:05 AM
Hi, I experience some troubles trying to convert an object,returned by a DataTable for a field value to its actual representation of Byte[]. The field values in a DataTable as we all know are returned as instance of the Object class and it is up to the developer to cast it to its actual type.
In my... more >>
Transactions Not working ??????????
Posted by indexnode NO[at]SPAM yahoo.com at 2/21/2004 2:38:44 AM
I have MSSQL SERVER
I have the following C# function
But the database entries are not being created why
Do i need to change any database settings?????
If i remove the transaction it is working
public static bool CreateNewStudent(string userid,string passwd,string
emailid,string roll,str... more >>
RichTextBox PrintWindow -- let's get real
Posted by WoodBeeProgrammer at 2/21/2004 12:49:06 AM
How come everybody on this newsgroup answers easy questions but not hard
questions?
Does PrintWindow work with RichTextBox? If not, WHY NOT? And if not,
what's the workaround?
TIA
[DllImport ("User32.dll")]
public extern static bool PrintWindow (System.IntPtr hWnd, System.IntPtr dc,
... more >>
C# and Scriptlet
Posted by eddie at 2/21/2004 12:44:32 AM
Hi, my colleague wrote a scriptlet to get server wide environment variables
from ASP. However, my web application is written by C#, and I try to write a
program to access that COM but I always get a error. How can I solve this
problem? Any solution? Thanks!
An unhandled exception of type 'Sy... more >>
int to byte []
Posted by steve at 2/21/2004 12:03:09 AM
I'd like to take the value of an int and put the value into a byte array.
Basically the hexidecimal representation of an integer, with out having to
convert the integer to a string and then to a byte.
for example:
int myInt = 800;
// I realize this function doesn't exist but this is what I wa... more >>
|