all groups > c# > january 2007
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
Default encoding as UTF-8 in VS.NET 2005
Posted by Sin Jeong-hun at 1/31/2007 11:53:42 PM
Even though I don't use Korean in my codes and comments, I often need
to insert Korean literals, because the target users are Koreans.
Because I have no plan to globalize those programs, I use hard-coded
literals.
Anyways, can't I set VS.NET 2005 always create and save C# files in
UTF-8 encod... more >>
vb.net vs c#
Posted by Mark at 1/31/2007 10:42:46 PM
hi i would like you all to let me now some pro's and con's
between vb.net and c#
I want my company to get away from vb6 and move into c#
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages
tia
ma... more >>
How to send/recieve Emotion Icons in IM application
Posted by Jay at 1/31/2007 10:40:50 PM
Hello,
I am developing a chat application in C# where I want to send/recieve
emotion icons.
Is there a way to implement this feature?
Regards
Jayshri
... more >>
USB Barcode Scanner
Posted by Jay at 1/31/2007 10:03:52 PM
I have a barcode scanner with a USB interface. It acts as a keyboard (ie if I scan a barcode, it is
placed at the text cursor as if I'd typed it on the keyboard).
I'd like to bypass this behaviour so barcodes don't go to the text cursor, but instead go into my C#
programme, even if it doesn't... more >>
align a label in center hor and vertical
Posted by Wilfried Mestdagh at 1/31/2007 9:44:50 PM
Hi,
I want to add a Label on a panel programatically. No problem. But I
can't seems to manage that the label is centered horizontal and vertical
in the panel. I experimented with TextAlign and Dock but no real
success. I probably forget something. Some hints really welcome :)
--
rgds, ... more >>
Controls add/remove and Dispose
Posted by Wilfried Mestdagh at 1/31/2007 9:13:41 PM
Hi,
If I add programatically a Panel to a control, and a Label add to that
Panel. Then when I Dispose the Panel do I have to Dispose the Label
also, or does the Panel take care of that ? And if it is do I gain time
doing it myself or not ?
I ask this because if I for example put panels o... more >>
try catch with return value
Posted by Doug at 1/31/2007 7:03:29 PM
Hi
i have a method that returns a value
public bool readxml (string xmlFilename, out string value)
but I would like to catch an exception if it occurs in the method .
How do i catch the following error if the xmlField 'location' doesn't exist
in the xmlfile or if the xmlfile is blank?
... more >>
How does the AddIn Project register itself?
Posted by Christof Nordiek at 1/31/2007 6:01:29 PM
Hi,
I created an Addin Project with the Addin-Project-Wizzard in VS2005. I added
some code from a Knowledge Base How To und built the project.
It worked, and the Addin got registered with Outlook.
Now my questions are:
How an when did the registering took place?
Whre is the informations s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dynamic settings entries with Application Settings.
Posted by Sin Jeong-hun at 1/31/2007 4:56:31 PM
I've read the "How to: Create Application Settings" article (http://
msdn2.microsoft.com/en-us/library/ms171565.aspx) on the MSDN. It
looked fine. But this code is only good when all the settings entries
are defined at the compile time. And I have to modify the class itself
each and everytime I ... more >>
Problems logging to AOL and Live Email by using HttpWebRequest
Posted by Kenneth Wong at 1/31/2007 4:39:01 PM
Anyone did it before. Please advise.
Yahoo mail, Gmail, Regular Hotmail work...
... more >>
Embed in word
Posted by MRe at 1/31/2007 2:58:02 PM
Hi,
Is there any way to write a graphical program in CSharp that could be
embedded into Word2000. I've read .NET doesn't support creation of ActiveX
controls (unless done using C++) but is there any other option, like an
existing ActiveX that can embed some CSharp program.
What I'd l... more >>
Dock ordering messed up when using my custom controls
Posted by Lee Grissom at 1/31/2007 2:51:24 PM
LeesWizard : BaseWizard : UserControl
LeesWizardPage1 : WizardPage : UserControl
LeesWizard contains a collection of WizardPages. Each WizardPage already
contains a docked panel at the top. At design-time, when I add other panels
and dock them, things look fine. But when I close the for... more >>
C# Label encapsulate to Image
Posted by Jason Huang at 1/31/2007 2:50:24 PM
Hi,
In my C# windows form, is it possible to encapsulate a Label to an Image?
If possible, how to do that?
Thanks for help.
Jason
... more >>
Connect to Excel then format within a cell
Posted by Brian Parker at 1/31/2007 2:42:56 PM
I need to format text in cell in an Excel worksheet and I need to do this using C#.
I've seen code that will set the format for the whole cell, but I just need to format one character
in that cell.
Example:
The cell has this text in it: H20
I need to use C# to change the "2" to be a subs... more >>
Is there method to sort my dataset table with one or mulitple colu
Posted by Pucca at 1/31/2007 2:11:01 PM
Are there any good built-in or availble functions that I can call to sort my
dataset datatalbe based on 1 or more of the table's columns?
--
Thanks.... more >>
merging assembly dll's into one dll
Posted by Sagaert Johan at 1/31/2007 2:09:16 PM
Hi
Is there a tool to merge several assembly dll's into one ?
Johan
... more >>
Handle the joystick with events (DirectInput and C#)
Posted by Vicente Nicolau at 1/31/2007 1:03:25 PM
Hello,
I'm implementig a C# app in which I need to access to a Joystick. Nowadays
I'm using the DirectInput class for getting the actual joystick position,
but trhough polling.
I would like to do it through event, i.e., when you move the joystick, it
send to the app an event or message w... more >>
Vista, C#, and Regsvr32
Posted by RobKinney1 at 1/31/2007 12:50:00 PM
Hello,
We are testing and tweaking some of our software to run on Vista, but it
turns out that we are having problems with one of our programs.
Here is our code:
// attempt an experiment to register an OCX object in silient mode
try
{
System.Diagnostics.Process.Start("regsv... more >>
How to delete all function calls
Posted by Anand Ganesh at 1/31/2007 12:25:06 PM
Hi All,
I want to remove a function from my solution.
But there are more than 100 calls made to that function.
I just want to remove (delete) all such calling statements from my code.
Is there a easy to do this is visual studio IDE?
Thanks for your help.
Regards
Anand Ganesh
... more >>
release and debug mix during testing
Posted by Jim Cutler at 1/31/2007 12:20:01 PM
Does C# have problems when running a mix of release and debug builds of
projects? I'm talking about something similar to the DLL hell you could get
into with VC6 and the MFC shared library. If not, why do the debug and
release projects write to \Debug and \Release subdirectories by default? ... more >>
Type casting from one namespace to the other.
Posted by John Smith at 1/31/2007 11:58:39 AM
Hi All,
(I first posted this question on the csharp.general but got no response, and
since this NG is more active, so I repost it here)
I have two enum definitions from two different namespaces:
namespace ns1
{
public enum e1{
e1a, e1b ......
}
}
namespace ns2
{
public... more >>
Debugging a DLL
Posted by Gaurav at 1/31/2007 11:26:02 AM
Hi... I had a VC++ 6.0 application that created a DLL to be used with another
C# app. I have convered that app to VS .NET 2003 and I can build the DLL
without making any changes to the existing code. However, when this DLL is
used by my C# application I get some memory errors.
I am not too ... more >>
Weired: Event only working when performing a MessageBox (focus-problem?)
Posted by Werner Schmidt at 1/31/2007 10:57:34 AM
Dear group,
I have a very strange behaviour:
In a loop there are several TextBoxes initialized:
[Pseudo-Code]
TextBox objTextBox = null; // one declaration
for-loop // multiple initialisations
objTextBox = new TextBox();
objTextBox.ReadOnly = true;
objTextBox.Name = "TxtBox" + i... more >>
DataGridView AND Combobox
Posted by Chris at 1/31/2007 10:27:00 AM
Boy am I having trouble with this.
Does anyone know here I can get a good example of using a combobox within a
dataviewgrid? No matter what I do i get all kinds of errors.
My grid is bound to a table and I want one field to be a combobox which gets
its list form another table. When I r... more >>
Need to Create a Specific format with XmlTextWriter
Posted by c# NO[at]SPAM willasrari.com at 1/31/2007 10:24:47 AM
I have a typed-dataset of items that need to be written to an xml file
in a specific format. Writing the Xml file is the easy part. How
difficult is it to write an output with the following format:
<root>
<productGroup productGroupId="1">
<product productId="1" price="2.00" />
... more >>
web page menu design
Posted by newcomer2k NO[at]SPAM yahoo.com at 1/31/2007 10:07:22 AM
Hi,
I am interested hearing your expert opinions on what is the best way
to create menu.
My menu has only ONE level (i.e. no sub menu item).
I could use the ASP.NET Menu control or just use the good old "href"
with some CSS.
I would like to know which one is better and why?
And what is th... more >>
Threadpool LateBinding
Posted by Angelo at 1/31/2007 9:41:36 AM
Ok,
I am utilizing the threadpool class to manage a number of threads.
Priority is not important to me and neither is if the threads are
background or foreground threads so I opted for the threadpool class.
The issue is that I am latebinding on several libraries that I have.
(They're actual... more >>
.NET property names and translation
Posted by John Allen at 1/31/2007 9:30:51 AM
Hi there,
Does anyone know if the standard "PropertyGrid" control is (foreign)
language sensitive. If I display an object in the control, and my object has
the native .NET "Size" struct as a property (which also contains its own
""Width" and "Height" members), will someone running my app o... more >>
Can't delete Registry.LocalMachine subkey
Posted by Peri at 1/31/2007 8:45:51 AM
I can delete RCan't delete Registry.LocalMachine =
subkeyegistry.LocalMachine subkey using regedit. But not using
code:
RegistryKey eurotaxKey =3D
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Firm\Application\Eurotax");
eurotaxKey.DeleteSubKey("pathDat");
I am administrator and regedit sho... more >>
Stop message about unknown publisher.
Posted by UJ at 1/31/2007 8:15:11 AM
I have a set of programs that automatically get updated from our server. On
some machines, when I download a new version it says 'Unknown publisher.
Continue?'. My program is supposed to run unattended so this isn't
acceptable.
How can I get windows to not put up this message?
TIA - Jeff... more >>
Problem with DataGridView and BindingSource
Posted by shibeta NO[at]SPAM wp.pl at 1/31/2007 8:02:40 AM
Hello,
I have problem with DataGridView and BindingSource. I have created
DataSet and added TableData to it with manualy created columns
(without DataAdapter - I'm not using MSSQL). On the Form I put
DataGridView and BindingSource, and connected them (BindingSource of
course is also connected w... more >>
Question on arrays (newbie)
Posted by alexseys at 1/31/2007 7:42:20 AM
I am trying to rewrite a vbs script in c# that collects data from a pc =
and writes it into an xml file
I have figured out how to write the file with data in an array. Smple of =
code below.
But that seems quite inefficient considering I have to collect many many =
properties for different item... more >>
Router state
Posted by VMAM at 1/31/2007 7:39:01 AM
Hi,
I have a home network with a DSL router. I want to check the router state
(connected, disconnected...) from an XP computer on the network by showing an
icon (green / red) in the system tray.
I am new in C# and I am checking for some hints on how to do it. Thanks!
VMAM... more >>
Menus and Toolbars [C# newbie]
Posted by Mark F. at 1/31/2007 7:09:22 AM
If an app has several toolbars and menus the event handler methods can
create a lot of code in the form's cs file. What is the best approach to
breaking it all up so that it is more organized?
Thanks,
Mark
... more >>
IPAddress and XmlSerializer
Posted by Joachim at 1/31/2007 6:07:36 AM
How might I serialize an IPAddress?
I read it needs to have a default constructor so I made a wrapper class:
[Serializable]
public class IPAddressEx : IPAddress
{
public IPAddressEx()
: base( IPAddress.None.GetAddressBytes() )
{
}
... more >>
Dataset Now showing updated Rows.
Posted by archana at 1/31/2007 4:33:52 AM
Hi all,
I am having one dataset in which i am taking data from database.
Then in my application i am creating one new column into datatable of
that dataset and assigned one default value for all rows.
so when i call getchages method its not returing me all rows as i set
default value for ... more >>
VS2K5 doesn't compile/execute latest code
Posted by Adil Akram at 1/31/2007 3:36:00 AM
I posted this question in vsnet.ide newsgroup about more than a week back but
didn't get any single response yet therefore, reposting again same to several
newsgroups.
When I run my C# WinForms project either by pressing F5 or clicking Start
button on toolbar, it sometimes doesn't execu... more >>
Get Culture Info from Language Name
Posted by lucky at 1/31/2007 3:29:07 AM
hi guys,
right now i'm going through System.Globalization Namespace. and i
found very intersting class there called CultureInfo.
i was trying to get cultureInfo on the basis of name but i didnt find
the way to do it. for example, if i pass the language name
"Danish","German",Russian", i'm sup... more >>
Unique Identifier
Posted by ba.hons at 1/31/2007 2:33:19 AM
Hello all,
Was wondering if anyone could provide some info on what could be a
possible solution to a problem am having.
I have to generate a Unique Identifier in C# which I will use to
assign to a user, i dont really need the Unique Identifier's to be
sequential so i was considering using s... more >>
ValidateChildren on a tab control
Posted by Caroline M at 1/31/2007 1:50:50 AM
Hi,
I'm very new to windows forms and C# so this is my first post in this
group :-) I have a very simple forms app with a tab control containing
two tabs. Its related to football and one tab relates to players and
the other tab to teams. I'm using the ErrorProvider component to
display error ... more >>
Adding reference of Excel COM won't work
Posted by Eran.Yasso NO[at]SPAM gmail.com at 1/31/2007 1:23:27 AM
Hi,
I have project that automate excel(using Excel COM) which works fine
in my home.
I took the project from my home to work and tried to build the project
but it won't built.
I get error "The type or namespace name 'Excel' could not be found".
the error points to line in my code: "public Ex... more >>
Clipboard events in windows service
Posted by yevron2 NO[at]SPAM gmail.com at 1/31/2007 12:56:24 AM
Hello,
I am trying to get clipboard events using SetClipboardViewer api.
It works in a windows form when i override the function:
protected override void WndProc(ref System.Windows.Forms.Message m)
that belongs to the base class System.Windows.Forms.
The problem is that i want to do it ... more >>
Process Fails while calling Start
Posted by Anbu at 1/31/2007 12:54:14 AM
Hi all,
I'm creating processes of a console based application. After
proc.Start() the process is not getting terminated and the thread
keeps waiting for some reponse from the process. Now I need to kill
the process if it takes more time.
Process proc = new Process();
proc.StartInfo.FileN... more >>
events that fire events that fire events....a bad thing?
Posted by Daniel at 1/31/2007 12:10:12 AM
Hi,
I have a scenario where a class is wrapped inside another but the inner
class triggers an event. I want that event to be accessed outside of the
wrapper. As a result i do code such as:
public Table()
{
_Logic = LogicFactory.Instance.GetLogic();
... more >>
Instance with Inheritance
Posted by mask.sd NO[at]SPAM gmail.com at 1/30/2007 11:50:25 PM
Can We create the instance of class with Inheritance like following :
Derivedclassname var = new Baseclassname
... more >>
Application Version
Posted by Egil at 1/30/2007 11:31:14 PM
Hi,
Is there a managed method for getfileversion ?
Egil... more >>
filesystemwatcher and determining when it is safe to work on the directory
Posted by topher at 1/30/2007 11:07:31 PM
When using filesystemwatcher to keep an eye on a directory to see if
there are any files, how will I know when it is safe to work on the
files in a directory? In other words, how will I know that no more
files are being written and that the directory is static?
-topher
... more >>
Pass DateTime parameter to LocalReport?
Posted by cpnet at 1/30/2007 10:05:25 PM
I'm able to pass string parameters with no problems to a LocalReport being
displayed by the ASP.NET ReportViewer control. However, my report also has
a DateTime parameter. LocalReport.SetParameters(..) only seems to allow me
to set string parameters. Is there a way to pass DateTime (or othe... more >>
Need to create a .NET object that will be serialized into a specific XML format
Posted by Gasnic at 1/30/2007 5:52:33 PM
Hi=20
I need to create a .NET object that will be serialized into the =
following xml structure ( I can't change the XML schema)=20
<Root>
<Record>
<Field1>data1</Field1>
<Field2>data2</Field2>
<Record>
<Record>
<Field1>data3</Field1>
<Field2>data4</Field2>
<Re... more >>
Q: ServiceController and ExecuteCommand
Posted by Martin Arvidsson, Visual Systems AB at 1/30/2007 5:38:01 PM
Hi!
I issue a ExecuteCommand, is there a way to get a response from the service
when the command has been executed?
What i want to do is to change an icon on the servicecontroller app,
depending on the command is being executed or is ready.
Regards
Martin
... more >>
|