all groups > c# > march 2007 > threads for tuesday march 13
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
listbox problem
Posted by bla at 3/13/2007 11:23:43 PM
how can i change background color of a specific row in a listbox... more >>
Running Commands through Process class
Posted by Shilpa at 3/13/2007 11:19:27 PM
Hi,
I am trying to run a command line using the Process class.
The command has to be run from a particular directory (say C:\XYZ),
ie., if I open the command prompt, I should be in C:\XYZ to run my
command as it has many dependencies.
How do I achieve this using the Process class? Is there an... more >>
Assembly reference issue
Posted by Shilpa at 3/13/2007 11:04:06 PM
Hi,
I am writing a C# plugin for a third party tool. Multiple versions of
the same tool can be installed on the client machine at any given
time.
Version 6 of this tool is managed code while version 5 is not.
The plugin is built on version 6 of the tool.
So, when the plugin is installed on a... more >>
Running a batch file c# throwing error
Posted by shantanu at 3/13/2007 9:20:44 PM
Hi all
i am trying to imolement a code to run a batch file. But its throwing
error
"No application is associated with the specified file for this
operation"
The code which i am implementing is
private void InstallDefectService()
{
try
{
string strFilePath = @"C:\Program... more >>
Refresh a control in the IDE Designer when changing properties.
Posted by Sagaert Johan at 3/13/2007 7:50:54 PM
Hi
I have a custom control that displays an image.
I have the invalidate method fired when a new picture is selected in the
designer, but the designer does not show this change.
It only does this if the UI window is closed and opened again.
Is there some attribute i have to use to get an... more >>
Problem with "Outlook-Contacts"
Posted by Corey66 at 3/13/2007 7:49:48 PM
Hello!
I think, I have one simple question for you guys, but I don't get the answer
by myself!
I would like to import all "Outlook - Contacts" into my application and when
I use "foreach" it works! But with "Outlook 2002" I must use a "for - Loop"
and that is my problem! I have three conta... more >>
Reading a users RDP Session ID from C#
Posted by Mike McAllister at 3/13/2007 6:52:05 PM
If a user is logged onto a remote Terminal Server is there some way to read a
unique identifier on both the client side and TS machine which uniquely
identifies the RDP client and Server connection?
On the client side I need to write a C# Winform application that can
communicate the user's ... more >>
If An Exception During using "(StreamWriter..."
Posted by Gary Brown at 3/13/2007 6:41:40 PM
Hi,
If there is an exception during writing a file with StreamWriter how
do you abort the creation of the new file? Due to introducing a bug
an existing file was lost (backed-up, fortunately) when the "Write"
hit the bug. The incomplete file closed and overwrote its
predecessor. How do I p... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Hide Balloon Tip
Posted by Paul Cheetham at 3/13/2007 6:29:13 PM
Hi,
I have a Windows application (VS2005) where I am using a notifyIcon in
the tray, and showing a balloon tip when certain events occur.
No matter what I set the timeout to, the balloon tip will not disappear
unless it is interacted with.
I am trying to get it to pop up for a few seconds... more >>
Preventing Icon From Displaying In Task Switcher Menu
Posted by Gary Brown at 3/13/2007 6:19:56 PM
Hi,
How do you keep an application from displaying its icon in the
Task Switcher menu? Winamp, among others, do it and I have
some applications should work similarly.
Thanks,
Gary
... more >>
Calculating Miles per Degree Longitude - Check my Math Please
Posted by Joseph Geretz at 3/13/2007 6:19:03 PM
I need to calculate miles per degree longitude, which obviously depends on
latitude since lines of longitude converge at the poles. Via Google, I've
come up with the following calculation:
private const double MilesPerDegLat = 69.04;
private const double EarthRadiusMiles = 3963.1676;
privat... more >>
Significant digits in double with Format strings?
Posted by Michael Howes at 3/13/2007 3:00:22 PM
MSDN documentation for format strings seems ambiguous. It's says
things like "significant digits or number of decimal places" all over
the place. Well those two things are different.
How do I show a specific number of significant digits to the right of
the decimal place with a format... more >>
Whats the equal to the VB Now function
Posted by moondaddy at 3/13/2007 2:30:17 PM
I'm writing and app in c#2.0 (converting from vb) and would like to know
what I should replace the vb Now function with.
Thanks.
--
moondaddy@noemail.noemail
... more >>
how to spin the date (a new control in C#)
Posted by Chris at 3/13/2007 1:36:10 PM
I have VS 2005 (C#)
There is a control numericUpDown so you can spin numeric values. What I need
to do is to spin date (+- one day). How to do that? Moreover, I want a user
to type the date as well. So the control should validate the typed values on
the fly. Is it possible?... more >>
Dictionary Object name/value pair
Posted by Dave Young at 3/13/2007 1:16:09 PM
I'm trying to replicate the behaviour of the Commerce.Dictionary object that
was found in Commerce Server 3.0
By using a hashtable or creating a custom class that implements IDictionary,
you have to add elements by using the following syntax.
DictionaryObject.Add("key","value");
However... more >>
DataGrid Configuration - Property Builder "missing"
Posted by Steve Harclerode at 3/13/2007 1:12:18 PM
Hi,
When I used Visual Studio 2002, I was able to add / delete colums from a
DataGrid at design time using a "property builder". Now I'm using Visual
Studio 2005, the "property builder" option seems to be missing. How can I
get to it?
Thanks,
Steve
--
My BizTalk blog:
http://steve... more >>
Breaking up a Dataset to send over Remoting
Posted by brian.twardzik NO[at]SPAM usask.ca at 3/13/2007 12:35:22 PM
Hey there,
I've been working on a project which requires me to broadcast a large
volume of information to various subscriber applications. I've been
using an event based architecture combined with using remote-
asynchronous-delegate invocation. This works fine for keeping the GUI
events all i... more >>
User Controls with Delegates and Listeners
Posted by sippyuconn at 3/13/2007 12:21:18 PM
Hi
I am creating a UserControl that is a Grid containing a DataTable
The user will have the ability to create 1-n of these controls that display
different dataTables but they are all related with a key
T1 = Customer Name
T2= Customer Address
T3 = Customer Phone number
As These UserCont... more >>
C# / XML / WebSvc problem
Posted by VJ at 3/13/2007 11:55:33 AM
Here is a problem that happened about a few times, on non-development
Windows XP Tablet PC with SP2, running NET Framework 2.0 and 1.1. The
windows application invoking the web service was written/complied for .NET
2.0 and loads all 2.0 dll's from GAC, even when the below error occurs. In
ca... more >>
Desktop Screen Shot
Posted by Jawad Rehman at 3/13/2007 11:42:37 AM
Hi..
I want to develp a window service in c# .the purpose of the service is
to take a screen shot of a desktop after several specified time span.
My problem is that how i take screen shot of desktop.
... more >>
C# Investment manager
Posted by C Asset at 3/13/2007 11:01:53 AM
Hi All,
I have a Microsoft workbook, that contain daily worksheets of stock
prices.
Please how can I create a C# manager for this workbook?
Regards,
C Asset.
... more >>
System.Net.Mail.SmtpClient - not sending emails with attachments sized less than 200kb
Posted by Robson Siqueira at 3/13/2007 10:56:43 AM
Folks,
I've been experiencing a weird problem. I have a web service which sends an
email after its processing. The email always has an PDF attachment on it.
The PDF size vary overtime.
The problem is that everytime the PDF size is equal to or less than 200 KB,
the email is just not being... more >>
LPT detection on Win XP using C#
Posted by luco at 3/13/2007 10:09:14 AM
Hello!
In my application I need to detect how many parallel ports there are
in a machine I'm using and what their state is. Is it possible in C#?
Any ideas how to do it?
thanks in advance,
Lukasz
... more >>
Using NamedPipes in C#
Posted by ahmed.maryam NO[at]SPAM gmail.com at 3/13/2007 10:00:34 AM
Hi All,
I want to set up a named pipe connection between two C# application
using visual studio 2005, does anyone know if there are any specific
namespaces or system calls that I need to make to access named pipes.
Even more important, does the .NET architecture even have support for
named pi... more >>
Exporting Datagridview to Excel
Posted by bungle at 3/13/2007 9:36:40 AM
Hi
Does anyone have any suggestions for exporting a datagridview which
includes graphics to excel?
I know it is relatively simple to do a normal export, but the fact
that I have images in the grid seems to be the sticking point.
Thanks in advance
Dave
... more >>
Needing some type of GridView to drill down 3 times...
Posted by trint at 3/13/2007 9:36:09 AM
Please look at this .jpg that looks like what I need, that will
require 3 separate SQL Server queries.
I am using c#.net in the in VS.Net 2005 Pro.
Here is the drawing I made that is an illustration of exactly what it
must do:
http://www.windintrees.com/example1.jpg
I've been on this for days ... more >>
Re-creating a MFC application
Posted by fasterwego NO[at]SPAM yahoo.com at 3/13/2007 8:58:03 AM
I have a MFC application that I'm trying to recreate in C#, but I've
run into something of a problem.
In the MFC app, I have a window that captures the change of any
control in that window. It then sets itself to "edit mode", disabling
certain buttons, etc.
In C#, I don't really see a way ... more >>
using satellite assemblies, loading resource files
Posted by Nader at 3/13/2007 8:18:16 AM
I'm trying to use satellite assemblies in my web application.
I got a problem with loading resource files. I have the falowing code:
protected ResourceManager GetStrings = new
ResourceManager("StringsFallback", typeof(Satellite).Assembly);
This should load the resources stored in the StringsFa... more >>
logging in to outlook programatically
Posted by Mike P at 3/13/2007 7:09:15 AM
I am using the code below to logon to the local Outlook account. But
what I need to do is be able to login without explicitly stating the
userlogin and password. Is it possible to pass the windows
authentication details to the logon method and it will automatically
logon to Outlook, without ex... more >>
extending a click once application with plugins(deployment issue)
Posted by krach.aran NO[at]SPAM gmail.com at 3/13/2007 7:08:48 AM
I'm creating a winforms click-once application that is plugin
enabled.
The application is working, and so are the plugins. but now i have
got the following problem:
after deployment i do not want to touch _ANY_ file of my deployment,
but i have got one directory that contains all the plugins... more >>
destructor
Posted by Christian Havel at 3/13/2007 7:06:13 AM
Hi,
sometimes I see code like the following:
~MyObject(){..}
Is a destructor in C# available? Should not be the cleanup logic be a part
of Dispose()?
Thanks
Christian... more >>
Passing data between C# applications
Posted by ahmed.maryam NO[at]SPAM gmail.com at 3/13/2007 6:56:52 AM
Hi all,
I have 2 C# applications that I need to pass data between.
Specifically XML information such as a document or node name. How can
I do that? Thanks in advance!
~ Maryam
... more >>
getting windows login details
Posted by Mike P at 3/13/2007 5:51:15 AM
How do you get the Windows login and password of the person who is
logged in? Is it possible?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Abstract Class Property Availability in Parent Class
Posted by Galahad at 3/13/2007 5:32:34 AM
I have an ascx file that inherits an abstract class. Within this abstract
class are protected properties. I can access these properties within the
page_load event of the parent class, however when I try to access the
properties in the page_init of the parent class, I get an "Object reference
... more >>
ToolStripPanel Layout problem
Posted by Michael Haberichter at 3/13/2007 4:36:11 AM
Hi,
I'm adding 5 ToolStrips to a ToolStripPanel (ToolStripContainer,
TopContainer) and see them ordered in three rows, starting on the left side.
I want to have it in one row all. Trying to join them using a new location
(toolstrip.Location = new Point(x,y) does not work. Is there any prope... more >>
@"Login failed for user '\'."
Posted by cashdeskmac at 3/13/2007 4:24:03 AM
I have a .NET 1.1 component trying to connect to a database but I keep
getting the following message when the exception is thrown:
@"Login failed for user '\'."
It appears that no user and role are being passed to the connection object,
otherwise it would surely give the name of the user w... more >>
Could not load type ***
Posted by AB NO[at]SPAM at 3/13/2007 2:38:55 AM
Hi,
I have this error "could not load type *****", and I don't know why.
I have tryed the microsoft solution of rebuilding (http://
support.microsoft.com/kb/306155) but it doesn't work.
If I try to remove the first row of the file, it's make some and some
errors yet of the some type.
You kno... more >>
Client receives messages even after discoonected?
Posted by ShaunO at 3/13/2007 2:32:00 AM
Hi,
I set up an client to asynchronously receive data from it's connection.
When i'm finished, i close the client using
try
{
theClient.SetSocketOptionSocketOptionLevel.Socket,SocketOptionName.NoDelay,1);
theClient.Shutdown(SocketShutdown.Both);
theClient.Close();
theClient=null;
}
Ho... more >>
TabControl Page with Scrollbar
Posted by bg_ie NO[at]SPAM yahoo.com at 3/13/2007 2:04:25 AM
Hi,
Is it possible to have a TabControl with a scroll bar on one of its
pages, and if so how do I add it?
Thanks for your help,
Barry.
... more >>
ComboBox DateTimePicker Binding Focus Bug / Mess
Posted by Simon Tamman at 3/13/2007 1:52:24 AM
I've come across an interesting bug.
I have workarounds but i'd like to know the root of the problem. I've
stripped it down into a short file and hope someone might have an idea about
what's going on.
It's a simple program that loads a control onto a form and binds "Foo"
against a combobox ("... more >>
Arranging objects in a canvas like SQL Server
Posted by Heron at 3/13/2007 1:32:37 AM
Hi,
I'm developing an mapping tool where the shapes are drawn in a canvas with
their related connections, Something like MS SQL server diagramming tool.
Now, I wish to provide an option (like sql server does: "Arrange tables") to
arrange all shapes so their connections so they can be shown... more >>
visual studio installer
Posted by LexyK NO[at]SPAM freenet.de at 3/13/2007 12:21:21 AM
Hi,
i'm trying to work with the visual studio 2005 installer with c#.
do you know how to start automatical the application at the end of the
installation?
Thanks
LexyK
... more >>
linked list endless loop
Posted by finer at 3/13/2007 12:11:04 AM
i'm new to C#, but i'm trying to write a circular doubly linked list.
theres a bug in my code somewhere (i think in my find() method or
ToGo() method) that causes an endless loop after i insert a node in
the middle of the list.
anyone care to take a look? i'm stumped. i appreciate any help.
... more >>
How Do you Create and Option Group C#?
Posted by iKiLL at 3/13/2007 12:00:00 AM
Hi all.
I need to create an Option Group For the Compact Framwork 2 in C# with code.
Does any one know how to do this?
Thanks,
ink
... more >>
Batched update using strongly typed table adapter
Posted by Simon at 3/13/2007 12:00:00 AM
Hi all,
Is it somehow possible to do do batched updates with table adapters in
the same way you can with data adapters?
I expected the methods to be much the same but apparently not. If it
isn't possible can anyone tell me how to do batched updates on a
strongly typed datatable?
Thank... more >>
windows registry editor similar application in C#???
Posted by chandu at 3/13/2007 12:00:00 AM
Hai ,
I have to develop application which is similar to windows registry editor.
can any body help me regarding that .please send links to any sample
applications.
My applicaiton is a plugin which controls settings and works as same as
Registry Editor.
Thanks in advance.
chandu
... more >>
checkbox in a toolstrip
Posted by halex2000 at 3/13/2007 12:00:00 AM
Hi, I've used a toolstrip up until now for my program, but I've just
discovered that it doesn't support checkboxes. Is there a way to put one in
a toolstrip? I could also use a state button instead: a button, that is,
that keeps a 'pressed' state when clicked, and a 'released' state when
cli... more >>
Help,"Orcas" - March 2007 VPC cann't login the win2003
Posted by english at 3/13/2007 12:00:00 AM
i download the vpc image in this link,
http://www.microsoft.com/downloads/details.aspx?FamilyId=281FCB3D-5E79-4126-B4C0-8DB6332DE26E&displaylang=en
user vpc2007 luach the base01.vmc then i cann't login user the user and
password
Username: Administrator
Password: P2ssw0rd
thanks for any ... more >>
|