all groups > c# > march 2005 > threads for monday march 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
How to Convert a Chinese Character to HEX
Posted by sengkok at 3/14/2005 11:43:02 PM
Hi ,
how can iconvert the chinese character (unicode) to HEX value ? is that i
need to convert it to ASCII then convert to Hex ? ... more >>
MenuItem.Clear
Posted by Jeff Louie at 3/14/2005 10:54:59 PM
Does anyone know if MenuItems.Clear is smart enough to unregisters all
events associated with each contained MenuItem?
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Activex resizing ?
Posted by lionel letoffet at 3/14/2005 10:25:51 PM
Hello,
I wrote an ActiveX in MFC. I use it in a C# application (forms).
My computer has a screen resolution of 1280x1024 with 96PPP (Important !!)
I insert my activex in a form, I compile and run all is ok !!
But now I want to use my application in an other computer with screen
resoluti... more >>
Parsing Issues
Posted by Badri at 3/14/2005 10:07:04 PM
I have a program that runs as a windows service waking up at predefined
intervals to send out mails. Each mail is based on a template with tags to
replace with database data from that specific row (mail merge type of
operation). Every so often the parsing is only half-done; but I’ve seen the... more >>
Obfuscator
Posted by Sharon at 3/14/2005 9:24:22 PM
Hi to all.
I'm looking for a good Obfuscator, prefrebly free.
Thanks.
Sharon.
... more >>
communication between two C# forms
Posted by satender kumar via .NET 247 at 3/14/2005 9:03:17 PM
(Type your message here)
how to pass data from one form to other
when i click on the button of form1
i need to pass data to form2 with click event of the button of form1
--------------------------------
From: satender kumar
-----------------------
Posted by a user from .NET 247 (http:... more >>
Decimal Comparison
Posted by Typpo at 3/14/2005 8:36:13 PM
Hi,
I have an ArrayList of decimals, and I want to figure out which two are
the closest (least difference) from one another. I know I can loop
through the decimals, but this is very tedious and some people have told
me there are easier ways.
Here is an example -
ArrayList contains:
1.... more >>
Problem with Excel object
Posted by yaya via DotNetMonster.com at 3/14/2005 8:12:12 PM
Hi all, Im using Microsoft Excel 11.0 Object Library as my program
reference to create an Excel object, everything works fine but I notice
that a process named EXCEL.EXE will run on the backgraound once a while
after runing the program. Anyone know what's the peoblem? Thankx.
--
Message post... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Web - Multiple ImageButtons calling the came function
Posted by David P. Donahue at 3/14/2005 7:00:30 PM
This is a 2-part question:
1) I have a web form with multiple ImageButtons on it. I'd like them
all to do the same thing. Basically, in english-code, the function
would be as follows:
Set Session variable X to the ImageURL of the button that invoked me;
Forward the user to a spec... more >>
Problem in List
Posted by msnews.microsoft.com at 3/14/2005 6:58:06 PM
Hi All,
I am having problem in ListViewControl which has items with CheckBoxes.
When I use the CheckState event,
the ListViewItem whatever I checked still contains the old CheckState and
has not changed to the new CheckState.
Is this a bug?
Any suggestions please?
Thanks
Anand G... more >>
Control question
Posted by web1110 at 3/14/2005 6:38:14 PM
Hi y'all,
When I make a control visible that has several subordinate controls in it,
how can I direct the focuss to the first subcontrol.
Thanx,
Bill
... more >>
DateTime.ParseExact( ) Exception
Posted by Dave P. at 3/14/2005 6:25:19 PM
I'm trying to parse a string into a DateTime object. I
want to try using ParseExact to see if I can improve
performance of a frequently-called method (i.e., please
don't suggest using Parse()). My code looks like this:
IFormatProvider fp = new System.Globalization.CultureInfo
("en-US")... more >>
alternative to obsolete GetCurrentThreadId ?
Posted by Mochuelo at 3/14/2005 6:20:31 PM
Hi,
Is there a non-obsolete alternative to the obsolete
GetCurrentThreadID?
I just need an ID (ideally, an int) that will distinguish any two
threads.
Thanks.
... more >>
Boxing Question
Posted by Nathan Neitzke at 3/14/2005 5:44:22 PM
I am writing an app that might largely benefit from using a struct instead
of a class. However, it needs to be rich enough where there are methods
available.
My question is - every time you call a method on a struct, is it boxed?
Because that would be a huge perf hit.
I am assuming that... more >>
Know which Object Create the instance
Posted by Mike at 3/14/2005 5:41:31 PM
Hi,
There are some way to know which object (A) create an instance of object (B)
in the constructor of object (B)?
Thanks.
... more >>
Date Time Picker & Null Values
Posted by John Smith at 3/14/2005 5:15:33 PM
Hello all:
I am having some difficulty trying to bind some Date Time Picker
controls to a database that may have Null values in some of these
fields. I continue to get the following error:
"Object cannot be cast from DBNull to other types."
I have tried to manually set the values to a ... more >>
Compare a double to a float?
Posted by Andrew Murray at 3/14/2005 4:54:31 PM
Is it possible to compare a double with a float in c# without casting to
one of the types first?
It appears you cannot...
float num = 1.545f;
double dnum = 1.545;
if (dnum == num)
{
Console.WriteLine("You can");
}
else
{
Console.WriteLine("You cant");
}... more >>
Dataset with XML
Posted by Maziar Aflatoun at 3/14/2005 4:49:32 PM
Hi everyone,
I like to use the dataset object for reading the following XML.
<?xml version="1.0" encoding="utf-8"?>
<ORDERS>
<ORDER>
<GENERALCONTACT>
<FirstName>FirstName1</FirstName>
<LastName>LastName1</LastName>
<Company>Company1</Company>
</GENERALCONTACT>
... more >>
A strange happened on the way to the forum
Posted by web1110 at 3/14/2005 4:45:26 PM
I have a prototype program that has a blank main form. The form client area
is originally sized to half the screen height and width. A large control is
then displayed, centered in the form and it remains centered upon resizing.
everything worked like a champ.
Then I added a MainMenu to the f... more >>
Problem: The underlying connection was closed: Unable to connect to the remote server
Posted by Kristof Thys at 3/14/2005 4:01:14 PM
Hello,
I'm developing a C# - windows forms application. To get some information
for my application, I'm connecting to an URL, wich gives me XML
generated using php.
With 90% of the users, this code just works fine:
[code]
WebRequest request = WebRequest.Create(URL);
try
{
request... more >>
Menu how to figured out
Posted by web1110 at 3/14/2005 3:36:25 PM
I got my menu stuff figured out. I created a main menu with one menu item
(menuItem1). When selected, it fills in submenu items and links them to a
click method. On each select, the subitems are cleared out.
I have two more questions
1. When I do the RemoveAt, is the link to the clicker ... more >>
C# fixed keyword explaination
Posted by coz at 3/14/2005 3:09:02 PM
I created a wrapper class for a dll written in C. Will the following code
prevent the "ENTIRE ARRAY" from being moved, not just the first array
element? The Wrapper class will be instantiated in a VB .NET application
which doesn't have the ability to prevent the array from being moved.
Th... more >>
Unhandled exception while dragging
Posted by Ludovic SOEUR at 3/14/2005 3:01:43 PM
I do not understand why when a dragging operation is started with
DoDragDrop, no exception is handled.
The following lines illustrate what I mean. In Form2_DragDrop event, I raise
an exception at the line "int b=1/a" (so the message After Exception will
not be shown). Why this exception will be ... more >>
Active directory users and associated groups
Posted by John at 3/14/2005 2:29:18 PM
Hi, can anyone please tell me (Given a group name) how I can retrieve just
those users associated with that group using Active Directory using LDAP??
I am using the code below with not much luck
[code]
DirectoryEntry entry = new DirectoryEntry("LDAP://" +
Domain,"LoginUser","Password");
Di... more >>
Grphics: How to draw an image transparent
Posted by felix at 3/14/2005 2:26:45 PM
Hi,
I have an Image that is drawn with Graphics.DrawImage(..). What I want
to do is drawing it with a given transparency, e.g. at an alpha of only
180 instead of 255.
How am I doing that?!?!?
Regards,
Felix... more >>
error fail
Posted by Mary Michelle chelli brock via DotNetMonster.com at 3/14/2005 2:11:24 PM
I have an application in c# with oracle db, when i try to login
(autenticate the user and password) it shows me an error message :
erro_fail :(0x80004005) i don't think it is a problem with the db...
If some one knows what can be the problem ????
--
Message posted via http://www.dotnetmonste... more >>
Null value wtih Databinding
Posted by Cecilio at 3/14/2005 2:00:23 PM
Hi.
I want to know hi i can show a combo without any text value, after y make a
databinding with it.
Thanks
... more >>
System.DllNotFoundException in windows server 2003
Posted by nagarajan.palanisamy NO[at]SPAM gmail.com at 3/14/2005 1:51:10 PM
Hello,
We developed a DLL using C++ and I am calling the methods on the DLL
using p/Invoke from managed code. The application runs well both as a
console application and as a Windows Service application on Windows
2000 machine. But on windows 2003 server (Standard Edition), only
console appl... more >>
Race Condition with GDI+
Posted by anonymous at 3/14/2005 1:49:04 PM
I'm writing a program that deals extensively with the printer. For the most
part my application runs fine, but occasionally I run into some Exceptions.
The most common exceptions I run into are NullReferenceException and
InvalidOperationException : The object is currently in use elsewhere. ... more >>
Menu how to
Posted by web1110 at 3/14/2005 1:38:53 PM
I have a menu set up as follows.
Main Menu
Windows
Window List
<list of windows)
<Other window options>
When I click on "Window List", I want to pop up a list of window names from
a string array.
I haven't worked with this in a while and am drawing a bla... more >>
Determine all classes within a namespace
Posted by jw56578 NO[at]SPAM gmail.com at 3/14/2005 1:17:16 PM
Hi,
Is there a way to discover all the classes within a given namespace?
thanks
... more >>
Timer Event on Windows 98
Posted by Tolga Tanriverdi at 3/14/2005 1:04:46 PM
I wrote a program which includes a timer event in it but if my program
executes on windows 98 the timer event is not running is something like
that possible
Thanks
... more >>
Comparison to null
Posted by juanph31 NO[at]SPAM hotmail.com at 3/14/2005 12:47:10 PM
Hello there,
Why is it that I sometimes see this construct
//case 1
if ( null == myVariable)
{
//...etc
}
//case 2
if ( myVariable == null)
{
//...etc
}
Basically, what is the difference between the two?
... more >>
File Security
Posted by Jason at 3/14/2005 12:14:46 PM
Hi all
would like to know how to change file security. i.e. i have a file that i
need to give security permissions to user MYMACHINE\aspnet. how do i
programmatically do that?
instead of manually right mouse clicking on a file --> properties -->
security tab --> adding user there. i would lik... more >>
Rows.Find () Method + Windows 98??
Posted by thomaz at 3/14/2005 12:02:42 PM
Hi;
My code below doesn=B4t work well in windows 98 only.
I use them in windows XP and it=B4s OK.
thisBuilder =3D new OleDbCommandBuilder (thisAdapter);
thisDataSet =3D new DataSet=20
();
thisAdapter.Fill=20
(thisDataSet, "sigla");
DataColumn[] keys =3D new=20
DataColu... more >>
Registering Assemblies To The GAC Programatically
Posted by Ram at 3/14/2005 11:41:55 AM
Hey,
Can I register an Assembly to the GAC programatically __WITHOUT__ using
gacutil?
Thanks ahead
--Ram
... more >>
lib file
Posted by Ken at 3/14/2005 11:36:43 AM
Hi guys,
I got two files (*.lib) which is written by VC++ or ANSI C from a thrid
party. I am now starting to develop a interface to call these library
through C#. I have no idea on what to do as I dont' know the content inside
the library file(e.g. constructor, member functions) and I don't ha... more >>
FTP, HTTP file transfers
Posted by Joe_Black at 3/14/2005 11:30:54 AM
Hi all,
I am writing a windows forms app that I want to connect to our equipment
over an ADSL connection, this equipment contains data that I wish to
download. Which, in your opinions, is the best route to go to transfer
this file:
FTP, I have read that this can be unreliable, and needs ... more >>
Empty String Question
Posted by web1110 at 3/14/2005 11:24:12 AM
I have an array of of 5 string elements. I put values in 3 of them. Yet
when I loop over them, I do not catch the empty string. The code output
below does not include "Empty"
string[]x=new String[5];
x[0]="111";
x[1]="222";
x[2]="333";
string msg="";
for(int i=0;i<x.Length;i++)
{
... more >>
Reference C# object from within Excel
Posted by frankplank at 3/14/2005 10:49:23 AM
Hi *,
I'm wondering if it is possible to create a C# object, and reference it
*explicitly* in an excel document. I imagine this will be more
possible if I programmatically populate the excel sheet cells, but I
would like to avoid this. I'm thinking something like this:
object1:
DataArr... more >>
I'm having problems with cryptography and sockets, help
Posted by Alejandro Castañaza at 3/14/2005 10:48:27 AM
Hi.
I'm writing a program, and I need to send confidential data through the
network, so I decided to use encryption, using the
System.Security.Cryptography namespace.
I'm using the sockets for the network communications, and the program first
does a key exchange, with the asymetric ciphe... more >>
treeview control continous...
Posted by Hrvoje Voda at 3/14/2005 10:13:02 AM
I manage to fill treeview control with data and I would like to search
through that data.
In child I have names of films, and when I click on one of them I would like
to show it's information in grid.
How?
Hrcko
... more >>
programmatically install a https-certificate in ie
Posted by Matthias Leonhardt at 3/14/2005 9:56:09 AM
Hi,
My c#-prog shall call some https URLs at our webserver. It has a
self-signed certificate. I also use IE per COM-Control to call a website
at our server (also https).
How can I install the certificate programmatically through setup or in
the program itself in windows (or ie) to get rid ... more >>
creating and sending UDP messages
Posted by sacchi.alessandro NO[at]SPAM gmail.com at 3/14/2005 9:51:30 AM
Hi everyone!
I'm a newcomer in C#, I'm trying to send battery-life status values
via UDP packets to a remote machine.
I get these values, now i've to put them in UDP messages and send...
could you help me in any way????
Thanks in advance for any help you can provide!
Alessandro... more >>
Formless application
Posted by Wayne at 3/14/2005 9:49:39 AM
I need an application to start run it's process, and save a log as it goes,
it will be automated with a scheduled task and as such requires no
interface. I don't want to use a service as it only needs to run once or
twice a week.
How would one go about making an application with no interface a... more >>
Array in structure
Posted by Mateusz [PEYN] Adamus at 3/14/2005 9:45:26 AM
Hi.
I have a problem. I'm creating a structure - looks like this:
<c#>
[StructLayout(LayoutKind.Sequential, Pack=2)]
internal struct TwEnumeration
{
public ushort ItemType;
public uint NumItems;
public uint CurrentIndex;
public uint DefaultIndex;
[MarshalAs(UnmanagedType.ByValAr... more >>
Sharing variables across Forms
Posted by denishoctor NO[at]SPAM gmail-dot-com.no-spam.invalid at 3/14/2005 9:36:41 AM
Hi,
I have a set of Forms and wish to have a varible used by more than one
of them but can't seem to figure where to initialise it or how to
acess it if I initialise it in a different form than the one that is
accessing it!
Any help appreciated!
Denis
Posted Via Usenet.com Premium ... more >>
Help! Object must implment IConvertible during Update
Posted by sjoshi NO[at]SPAM ingr.com at 3/14/2005 8:59:09 AM
Hello All
I have schema as such:
<xs:element name="OFDateProxies">
<xs:complexType>
<xs:sequence>
<xs:element name="M_CRProxy_OID" msdata:DataType="System.Guid,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
type="xs:string" />
<xs:element name="M_CRP... more >>
Obtaining Buttons and Menu Items similarly to Delphi's Form.Compon
Posted by Roger at 3/14/2005 8:51:09 AM
Hi,
Can anyone tell me how to obtain access to controls (MenuItems and Buttons)
so that I can create a parent forms method to control the switching of
Enabled on/off for same?
I am a Delphi programmer converting to C#.
Thanks in advance,
Roger.... more >>
Encryption Error "Length of the data to decrypt is invalid"
Posted by Jimski at 3/14/2005 8:34:38 AM
Hello all,
I am having a problem where I get an error message when I call
FlushFinalBlock when decrypting my encrypted text. I am using the
Rijndael algorithm.
The error message is "Length of the data to decrypt is invalid" and
occurs on the csDecrypt.FlushFinalBlock.
Please find below... more >>
Data storeage
Posted by jez123456 at 3/14/2005 8:33:02 AM
I have a c# program that compacts upto 7 access databases (the user can
choose which ones to compact).
After the compacting has completed, I would like to show a details report or
form that displays the following
database Before After %
Master ... more >>
reflection: properties get System.ArgumentException
Posted by Dan at 3/14/2005 7:55:21 AM
hi ng,
i want to invoke a dynamically created object with reflection, like:
public static object createInstance(string classname, string assemblyName)
{
object obj=null;
Assembly assembly= Assembly.LoadFile(assemblyName);
obj=assembly.CreateInstance(classname);
return obj;
}
what ha... more >>
How to run an exe file without C# installed?
Posted by Johnny at 3/14/2005 7:47:06 AM
Hi,
I'm having problems with running an exe file created with C# on computers
which do not have VS C# installed. Is there any way to make it run on any
computers? Do I need to put my source code into an installer package? If so
where can I find it?
Sorry for many questions, thx in advanc... more >>
MainMenu on control
Posted by Brian Keating at 3/14/2005 6:59:03 AM
Hi there,
I've a custom control and I would like to place a MainMenu on it,
What is best approach for this?
Thanks in advance.
Brian... more >>
Update using datasets and Stored Procedures
Posted by may at 3/14/2005 6:03:14 AM
Hi,
I'm trying to update a SQLServer table via a call to a stored procedure
using the DataSet.Update(dataset) function.
What I'm not sure about is how does this dataset get interpreted on the
Database side. I can't pass a dataset/table as a SQLParameter so how does it
handle the dataset?
... more >>
Static Method
Posted by jez123456 at 3/14/2005 5:27:05 AM
Hi I have the following code
private string GetUser()
{
Decryption decrypt = new Decryption();
return (string) decrypt.DecodeText("agyL70eOPb=", key);
}
which calls this static method
public class Decryption
{
public static string DecodeText(string encrypted, string source)
{
strin... more >>
Short encryption
Posted by Diablo at 3/14/2005 2:14:31 AM
Hi,
I want to encrypt some short text. I've chosen Rijndael algorithm (AES)
for the encryption. The encryption process rounds the lenght of the
input string to a multiple of 16. Then I have to store the cipher
output in a database as string, with a MAXIMUM lenght of 100 chars. To
store the ci... more >>
|