all groups > c# > april 2005 > threads for thursday 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
How to move a borderless windows form in c#.NET
Posted by Nikki at 4/28/2005 11:29:12 PM
Hi,
Can anybody help me in solving this problem. I m developing an
application in which the main application form is borderless. now i m
not able to move the application form with the help of mouse.
Thanks,
... more >>
Question on uniti testing results...
Posted by Tom Olson at 4/28/2005 10:13:57 PM
I have written several tests for a unit and they run fine, but I do notice
extreme differences in performance when I only run one test versus running
every test in the unit.
The class that is being tested has several static methods. When I run all
the tests in this unit the timing (captured t... more >>
Serialize object method to soap message?
Posted by RA at 4/28/2005 9:29:31 PM
Hi
Is there a way to serialize an object method to a soap message? I need to
pass a soap message through a queue and have a .net object. I wonder if I
can serialize the proxy class method so that the soap message will be
created correctly with the web method to invoke.
Thanks
... more >>
inherited properties in userControl
Posted by Joe at 4/28/2005 8:38:04 PM
OK, so i searched this forum, and it seems like my question has come close to
being answered a dozen times, but never fully...
I have a very simple control that inherits from UserControl. It has no
child controls, just properties and custom drawing. I would like one of
these properties to ... more >>
Want to switch from J# to C# - need help
Posted by Cpierswim at 4/28/2005 8:12:04 PM
I am a Java developer who uses J#. I really like the express edition stuff
(the word completion tool alone makes J# better than any other Java
development software), but I get ticked off about how J# is the red-headed
step child of the Visual Studio environment. None of the examples are EVER... more >>
deploy software
Posted by freddy at 4/28/2005 7:40:01 PM
I would like to build a software in c# where I can deploy software to remote
computers. I do not have access to group policies or ad. Can someone help me... more >>
how to remove "Read Only" from file on remote server
Posted by John Grandy at 4/28/2005 6:28:05 PM
How to remove "Read Only" status on a file on a remote server?
My goal is to delete the file, but
System.File.Delete(\\machine1\c$\folder1\file1.txt)
is giving me an "Access is denied" error.
My log-on account is member of MACHINE1's local Administrators group.
... more >>
MDI CONTAINER
Posted by ZS at 4/28/2005 4:08:08 PM
Hi All,
In C# when I change the isMDIContainer property of a Form to true, the
background color of the Form changes to a default color set by Visual Stuidio
(a dark grey) . Is there a way I can change this color to something of my
choice. If so how? Changing the background of the Form does... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Internet Explorer BHO -- Problem writing to file
Posted by giladap at 4/28/2005 3:35:30 PM
I am trying to create a BHO using C#. I currently have it successfully
loading into IE (I've checked with "Manage Add-ons"), but nothing else
seems to be working. I get no errors that I can see.
I have the BHO trying to write to a text file. It is creating the text
file ("log.txt") when IE ... more >>
SetThreadDesktop keeps returning "Resource in Use"
Posted by Frank Perry at 4/28/2005 3:07:21 PM
I have a utility that monitors whether certain third party GU
applications are running and if not, it starts them up. I would lik
to get rid of this utility and instead just have a Windows Service tha
performs that same function. Because Windows Services don't run in th
interactive Windows St... more >>
sending an SMS to mobile phone
Posted by VMI at 4/28/2005 2:40:03 PM
I'm interested in developing an application that will send an SMS message to
a mobile phone, but I'm not sure where to start. The purpose of the
application would be to send an SMS message to a list of cell phone numbers,
regardless of what phone provider they use. Is this idea viable? People... more >>
How to get the system partition
Posted by Rainer.Faulstich NO[at]SPAM ifp-beisch.com at 4/28/2005 2:17:41 PM
Hi,
I need to get the directory i.e. the partition of the system directory
for XP .
I need to create a file - in the "?:/windows/system32" directory . But
in which partition is is located ?. I think for everyone writing
installers this is a "klacks" - i.e. "nothing to think about it" as we
... more >>
Combobox selectedvalue = null
Posted by Jac at 4/28/2005 1:34:18 PM
Hey,
How can I set the display value of a combobox empty? But all the posible
choices are available when I push the trianglebut.
Sometimes if I set the selecteditem = null it works, other times it don't
work and sometimes I receive an error 'Additional information: Value cannot
be null... more >>
inherited classes
Posted by Daniel Groh at 4/28/2005 1:33:44 PM
Wich statement should i use for my classes can not be inherited ? selead
class name_class {} ???
--
Daniel Groh
CTF Technologies do Brasil LTDA
Analista Programador
Fone: 11 3837-4203
E-mail: dgroh@ctf.com.br
... more >>
Converting from Char to ASCII
Posted by glenn at 4/28/2005 1:14:52 PM
I have a character lets say A and I want to see what the ASCII code is for
that ie: 65.
now to take 65 and make a C i would use: string str = (char)65;
What is the process to go the other way in C#?
Thanks,
glenn
... more >>
Extracting an Icon and Placing It On The Desktop (C# Language)
Posted by Dickyb at 4/28/2005 12:02:11 PM
Extracting an Icon and Placing It On The Desktop (C# Language)
I constructed a suite of programs in C++ several years ago that handle my
financial portfolio, and now I have converted them to C#. The only
significant problem that I have encountered in the conversion is this one -
extrac... more >>
Set enum variable using int
Posted by Brian Haynes at 4/28/2005 11:54:01 AM
I've read all the posts in this forum that I can find that look related to
this issue and I have only found 1 solution that I consider to be a bit of a
hack. What I want to do is assign a value to an enum variable using an int.
What I am using right now is something like this:
public enum... more >>
RegEx: Adding Case Insensitivity to Existing Expression
Posted by Guadala Harry at 4/28/2005 11:31:12 AM
How can I make the following RegEx expression case-insensitive?
Regex r = new Regex("({SomeValue:.+?}|{OtherValue:.+?})");
So that it would match, for example, on
"somevalue", "sOmEVAluE", "OTHERVALUE", "OthERvAlUE" and so on...
Thanks!
... more >>
Switch ?
Posted by John S at 4/28/2005 11:04:08 AM
In my case statements I need to evaluate a number but it doesn't like
my syntax.
Example:
x= 45
Switch (x){
case > 7 < 10:
<code>
break;
case > 11 < 50
<code>
break;
default:
break;
}
It does not like the < or > than comparison operators. I know there
has to be a wa... more >>
Calling COM interfaces at runtime
Posted by Jayme Pechan at 4/28/2005 10:51:28 AM
Does anyone know if there is a way to make a call to a COM interface from C#
that you do not know the type information until runtime? In C++ you would
just call GetIDsOfNames to get the dispatch ID and then call invoke with the
ID. Thanks.
... more >>
Functions list
Posted by Chris Jackson at 4/28/2005 10:28:58 AM
When I was developing in clasic asp I had the vbscript script56.chm file
to lookup functions, methods and properties.
Is there an equivalent web site or downloadable listing of the C# functions?
Please help.... more >>
Changing windows wallpaper
Posted by Christian Desroches at 4/28/2005 10:16:02 AM
Hi everyone!
I'm searching for an example of source code changing the windows wallpaper..
Anybody has an idea ?
thanks !
--
Christian Desroches... more >>
MS C# cert have value?
Posted by Brett at 4/28/2005 10:04:02 AM
I haven't seen any request for MS Certitified C# developers during my
current job search. Is there any value to getting the single cert (as
opposed to the four)?
I don't have quite as much C# experience and believe the cert may compensate
for some of that. Is that a valid reasoning?
Th... more >>
shopping cart question?
Posted by Leon at 4/28/2005 9:38:41 AM
I need a simple asp.net shopping. should I build it myself or just buy a
good out of the box solution.
if you thank I should buy an out of the box solution do you have any
suggestions?
Thanks
... more >>
Value can not be Null
Posted by Jac at 4/28/2005 8:46:12 AM
Hey,
public class Sessie : SessieBase
{
public Contract Contract;
public Sessie()
{
Contract Contract = new Contract ();
this.Contract = Contract;
}
}
public class ContractBase
{
private string mContractNr;
public string ContractNr
{
get
{
return mContract... more >>
Framework 2.0 differences? v2.0.40607 v2.050215
Posted by Brad at 4/28/2005 8:26:05 AM
Problem: Get an unhandled exception on the target machine (see stack trace
below) on this method related to panels
System.MissingMethodException: Method not found: 'Void
System.Windows.Forms.StatusStripPanel.set_BorderSides
Here are the frameworks in question.
On the surface it appears ... more >>
Timing?
Posted by jamie at 4/28/2005 8:02:28 AM
hey all,
I am attempting to do motion control for
a final project, but I have a concern....
For motion control, timing is everyting,
the better it is, the better it works.
Currently I am trying to use the timer
function block to do a 10ms loop, but
if I remember correctly.... that timing
... more >>
With or not with keyword
Posted by John S at 4/28/2005 7:38:33 AM
In Visual Basic, there was a keyword called "With". If you referenced
an object with the keyword With you could access all properties and
events just using the "." and not having to use the object name.
Example
With TextBox1
..text = "This"
..enabled=true
..maxLength = 11
end with
Is th... more >>
Are you paid time 1/2 overtime for hourly rate?
Posted by Brett at 4/28/2005 7:35:00 AM
For those of you working hourly, are you paid time and a half for anything
over 40 hours? Say you are making $50/hour. Once you go over 40, your rate
goes up to $75.
If so, do you find it difficult to get that rate? In other words, does
management hangle and bicker with you and in the en... more >>
other way to use C++ managed code in C sharp
Posted by tayyab.ali NO[at]SPAM gmail.com at 4/28/2005 7:13:17 AM
Hello all the genies out there i have a problem at hand and like
always I welcome any kewl idea U ppl can come up with. I am trying to
make a secure application. Working on generation of serial number
using hard drive serial number ... e.T.c. I have the code in C++
(managed) that does it all ver... more >>
How to multiply this??
Posted by trint at 4/28/2005 7:10:15 AM
Why do we have to use decimal.multiply to multiply two intgers?
I just want to multiply these two values:
int oneThousand = 1000;
int watCHTimer1 = value from a textbox;
Thanks,
Trint
... more >>
Checking for special characters
Posted by dwight at 4/28/2005 7:10:04 AM
I have a string that can't contain the following characters:
../\|}{[:;+=_)(*&^%$#@!~`
What would be easiest way to check the string?
Should I use regexp or create a array with these characters and compare each
character of string to the array?
Thanks
... more >>
Random number - normally distributed
Posted by David Veeneman at 4/28/2005 7:00:27 AM
Hi-- I'm looking for a simple function to generate a normally distributed
series of random numbers using the .NET Random class. The Random class
generates uniformly distributed random numbers, and I need numbers that are
normally distributed (that fall under a bell-shaped curve). Plus, I need ... more >>
Help on Accessing C# from
Posted by vemulakiran NO[at]SPAM gmail.com at 4/28/2005 6:26:23 AM
Hi all,
I need some help on Accessing USB ports from C#. I have written a c#
program to communicatee with COM (serial communication) ports using P/Invoke
method. Just like I could't find a way to communicate USB ports. How can do
it from C#..?
Thanking for your kindly help.
Regrads... more >>
Newbie to printing
Posted by bernardpace NO[at]SPAM yahoo.com at 4/28/2005 6:23:22 AM
Hi,
I am trying to learn how to use how to print in a windows form. I am
using the components PrintDialog and the PrintDocument. I am
succeding to show the dialog box, and to pass paper from the printer.
Obviously no data is being printed. How do I pass data to the
PrintDocument object and... more >>
Outlook
Posted by Newbie at 4/28/2005 6:10:02 AM
I have a C# ASP.NET webform that has a linkbutton control wherein if the user
clicks it, it should open up Microsoft Outlook as a separate window with the
To: edit box filled in with an email address. The user should be able to send
an email. How do I go about doing this?... more >>
Implementing Memcpy in C#
Posted by vidya.bhagwath NO[at]SPAM gmail.com at 4/28/2005 6:04:57 AM
Hello Experts,
I am porting a c++ code into c#.There are 3 structures, as explained
below.
typedef struct
{
unsigned char ByteCount;
unsigned short RegVals[10];
} WRITE_INFO;
typedef struct
{
unsigned short VarAddress;
unsigned short data[256];
}USER_PASSED_... more >>
Jess Liberty's C# book on C#
Posted by egodet NO[at]SPAM equisys.com at 4/28/2005 6:02:00 AM
Hi,
can someone explain the following extract from Jess Liberty's C# book
(very end of chapter on structs)?
"Be careful about using properties. Although these allow you to
support encapsulation by making the actual values private, the
properties themselves are actually member methods and you ca... more >>
Selection of multiple controls on a panel
Posted by TT (Tom Tempelaere) at 4/28/2005 2:02:02 AM
Hi there,
In my application I have a panel that contains a matrix of user controls.
The user control is fairly simple. It merely draws a circle that represents
an object in my code. The object has certain properties that can be
configured, so each control has a context menu that allows suc... more >>
Anybody know any sample graphics applications built in c#?
Posted by James dean at 4/28/2005 1:13:14 AM
I want to see what the perfomance is like with an application that uses
C#/Gdi+ is like as i am worried about performance of certain fatures
like drawing text and GraphicsPaths
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Need a clear explanation of CLR,MSIL and JIT?
Posted by James dean at 4/28/2005 12:55:14 AM
My understanding is the MSIL runs on the CLR and the CLR is basically
the JIT compiler plus Garbage collection. This part "MSIL runs on the
CLR" is a bit vague to me can anyone give me a clearer definition and
explain how these 3 work together.
*** Sent via Developersdex http://www.develop... more >>
Is it possible to handle the events for MSWord ?
Posted by lkr at 4/28/2005 12:38:01 AM
hi
is there is anyway to capture the document events of a MSWord?eg:I have to
handle the event awhen WM_KEYUP or anyother events will occur.
give me a solution............
thanks in advance
lkr
... more >>
DataTable and DataView
Posted by Jarod at 4/28/2005 12:03:01 AM
Hey
I have dataTable let's call it dtMessages, and I have dvUserMessages. I am
doing st like this:
dvUserMessages = dtMessages.defaultView;
dvUserMessages.rowFilter = "User = 'John'";
than, I would like to delete messages over 20, so that user John after
sending 21 message would have his arc... more >>
Need help on looping throug a xml file to find a specific innerxml
Posted by janhm at 4/28/2005 12:00:00 AM
Hello.
I need to loop through a xml file finding a specific innerxml text and then
ad the content to a treeview.
For example. If the innerxml im searching for is "item001" then I want the
content in <items></items>
added to my treeview.
<items>
<item>item001</item>
<more_it... more >>
Dispose and freeing memory
Posted by Fernando Cacciola at 4/28/2005 12:00:00 AM
Help me out here please:
While watching Brad Abraham's MSDN TV talk about the Dispose pattern,
refering to:
public virtual void Dispose ( bool disposing )
{
if ( disposing )
{
<-- WHAT GOES HERE -->
}
}
He says: ..."here's were I'll free all my dependent objects, these are... more >>
Exception Handling Code
Posted by C# Learner at 4/28/2005 12:00:00 AM
In the following two code blocks, DoSomethingUseful throws AnException,
while neither of the other called methods throw any exceptions. Which of
the code blocks is better (in terms of readability, maintainability, etc.),
in your opinions?
A
{
Start();
try
{... more >>
why is this illegal
Posted by Andy Fish at 4/28/2005 12:00:00 AM
this fragment of c# does not compile:
{
{
string s = "a";
}
string s = "a";
}
It says that the 2 declarations conflict. AFAIK the scope of a variable
declaration is from the point in the source file it is declared until the
end of the enclosing block. By this defin... more >>
All Class names
Posted by Erkan KURTULUÞ at 4/28/2005 12:00:00 AM
Hi,
How can i found all class names in a namespace?. My aim is reach all
attributes of classes.
Best Regards
Erkan
... more >>
VC++ directories with environment variables
Posted by Lidström at 4/28/2005 12:00:00 AM
Where do the variables that are in VC++ Directories come from? For example,
there is a path $(FrameworkSDKDir) in the Executable files directories.
Where can I find out what this variable points to? It is not an environment
variable of my system.
--
Daniel
A: Because it messes up the order ... more >>
[ASP.NET] Problem with DataList - onItemDataBound Method
Posted by Martin Høst Normark at 4/28/2005 12:00:00 AM
Hi everyone
I get a System.NullReferenceException performing this code:
public void Item_Bound(object sender, DataListItemEventArgs e)
{
if((int)(e.Item.DataItem as DataRowView).Row[11] != 0)
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.Alter... more >>
Tabs of the toolbox!
Posted by Atmapuri at 4/28/2005 12:00:00 AM
Hi!
Is there an attribute to specify on which tab of the Toolbox in VS.NET
will my components icon (control) be placed, after I added the assembly
with the "Tools->Add/Remove toolbox items"?
Thanks!
Atmapuri
... more >>
Object reference not set to an instance of an object
Posted by Daniel Groh at 4/28/2005 12:00:00 AM
I have a user control with this code:
ASCX:
public string strTituloHTML
{
get{return objRmTituloPagina.GetString("CadastroUsuario.aspx");
}
---
I take this value in my ASPX
ASPX:
Cabecalho objTitulo =3D new Cabecalho(); <--user control instance
_titulo.InnerHtml =3D objTitulo.st... more >>
PLS HELP!!! UserControl "Name" property returns class name (!!!)
Posted by MuZZy at 4/28/2005 12:00:00 AM
Hi,
I'm having a problem here:
If i want to get a UserControl's name on run-time, UserControl.Name
returns class name instead of instance name, eg if i have a UserControl
inherited class MyUserControl and in code i do:
MyUserControl myUctl;
....
string strName = myUCtl.Name
the strin... more >>
interops and dll objects
Posted by Fabrizio at 4/28/2005 12:00:00 AM
I want use an onbject exported from a C++ DLL in C# does it exist an
attribute like DllImport to do this.
... more >>
Add data using Textbox
Posted by Jason Huang at 4/28/2005 12:00:00 AM
Hi,
New to C#, I'm trying using a Textbox and a commond button for adding a
record to a table, but don't know how. Please give me some suggestions.
Thanks.
Jason
... more >>
question about MessageQueue
Posted by Charles Shao at 4/28/2005 12:00:00 AM
question about MessageQueue
Hi, friends:
I try to send a message into MSMQ and then read it out.
But I find the message is not be removed after being accessed.
How can I read and remove it ?
Thanks
Charles Shao
================================================================
myNe... more >>
How to use recompiled DLL?
Posted by Brett at 4/28/2005 12:00:00 AM
I have an app that uses properties and function return values from certain
DLLs. Each DLL returns the same thing but gets it in a different way. An
abstract class is used to access DLLs.
If I need to change code in one of the DLL methods, then recompile it, is
there a way to have the app ... more >>
UTF8 encoding - Problem
Posted by Frank Esser at 4/28/2005 12:00:00 AM
Hello!
On a PC with German Codepage settings I want to get UTF8 out of string in my
application.
I use this function:
Byte[] array = Encoding.UTF8.GetBytes("à");
When I look at the Unicode tables then this character is in the Latin table
and has a hex value of 0x00E0.
But when I l... more >>
Help on Accessing USB ports from C#
Posted by kiran at 4/28/2005 12:00:00 AM
Hi all,
I need some help on Accessing USB ports from C#. I have written a c#
program to communicatee with COM (serial communication) ports using P/Invoke
method. Just like I could't find a way to communicate USB ports. How can do
it from C#..?
Thanking for your kindly help.
Regra... more >>
VS2005 B2 - CollectionEditor + EditorAttribute problem
Posted by Daniel Mihaita at 4/28/2005 12:00:00 AM
Hello,
I have a simple issue : a collection class MyItems , derived from
CollectionBase, an editor class MyItemsEditor derived from
CollectionEditor, and a property DataItems of type MyItems, declared as :
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Edi... more >>
How to get icon associated with a document.
Posted by Visual Systems AB (Martin Arvidsson) at 4/28/2005 12:00:00 AM
Hi!
Is there an API call to get the Icon associated with a document, example a
word document.
What i want i simply to get the icon that is displayed when you create a
document on the desktop...
Regards
Martin
... more >>
|