all groups > c# > march 2006 > threads for thursday march 9
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
Effective strategy for using VSS in a development team?
Posted by Rick at 3/9/2006 11:33:19 PM
I'm sorry for posting this here, but other more relevant groups are a little
too quiet.
Has anyone out there come up with an effective strategy for using VSS with a
development team? IME it is a nightmare trying to manage releases of code.
We need one release to share among developers, one ... more >>
newbie: GetType or typeof?
Posted by deko at 3/9/2006 11:27:27 PM
I have a method I need to pass an object reference to like this:
private void updateSchedule(object obj)
{
if (obj is ThisObj)
{
myVar1 = obj.PropertyA
myVar2 = objPropertytB
}
else if (obj is ThatObj)
{
myVar3 = obj.Property1
myVar4 = obj.Prop... more >>
file uploading in windows application in .net
Posted by archana at 3/9/2006 11:26:49 PM
Hi all,
Can any one tell me how to upload file in windows application developed
in C#.net.
Or can i use method webclient.uploadfile in windows application.
Please help me asap.
thanks in advance.
... more >>
Browser integration with c# application
Posted by plmanikandan NO[at]SPAM gmail.com at 3/9/2006 10:58:30 PM
Hi,
I need to integrate the browser with my C# windows application.
When I search thru the websites for this,I found SHDocVw.dll is needed
for integrating Web browser into c# application.I did'nt found
SHDocVw.dll in my system.I am using Visual studio .net 2003 and
windows Xp(service pac... more >>
How select from 2 ADO.NET DataTables?
Posted by Ronald S. Cook at 3/9/2006 10:31:20 PM
Let's say I have 2 ADO.NET DataTables (tblAuthor and tblBook) within an
ADO.NET DataSet (dstPublish).
tblAuthor has DataColumns AuthorID and AuthorName, tblBook has DataColumns
BookID, BookTitle, AuthorID (assume a book can be written by only one
author).
tblAuthor
---------
... more >>
by reference and by value
Posted by Andrew Bullock at 3/9/2006 10:27:03 PM
Hi,
Why do i get the following error? In other projects I have done (what i
thought was) the same thing, without compiler complaint :-/
1: List<MyClass> myClasses = new List<MyClass>();
2: myClasses.Add(new MyClass(20));
3: myClasses[0].value = 0;
Line 3: Cannot modify the return va... more >>
How to determine if a string in an array
Posted by ad at 3/9/2006 10:11:49 PM
I have a string array.
How can I determine if a string in it?
... more >>
Blogging sites
Posted by Paul Aspinall at 3/9/2006 10:00:26 PM
Hi
I'm just about to build my own personal website, and am wondering whether to
build my own blogging functionality, or whether to use some existing one.
Which are the best blogging sites for developers??
Thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Current Program's Process ID
Posted by Steven Nagy at 3/9/2006 9:39:32 PM
Hi all,
How would I go about detecting the current applications Process ID?
I know I could do this by checking the EXE against the process list and
getting the ID, however I can't guarantee that there won't be another
process that isn't running with the exact same name. So I need another
way ... more >>
C++ class in DLL to be imported to C#
Posted by Tony Siu at 3/9/2006 9:30:15 PM
Dear all,
I am trying to write a class in C++, exported it in DLL.
Does anyone know how I can import them in C#?
For example:
in C++
class DllExport Abc
{
public:
int foo1;
FILETIME anytime;
};
in C# I would like to access the member variables like this.
....
Abc abc;
ab... more >>
Why won't you give me your scrollbars?! I hate you, TreeView!
Posted by sklett at 3/9/2006 8:54:43 PM
A little dramatic maybe, but I've just finished my pass on the "UI Polish"
and only one things remains (well, I guess I haven't finished then!)
Vertical Scrollbar position. Doh!
Part of my code clears a Node's nodes, then rebuilds them all. When this
happens, the scrollbar position is not ... more >>
PP: Orphan Assemblies List
Posted by prabhupr NO[at]SPAM hotmail.com at 3/9/2006 8:44:27 PM
Hi Folks
In CS project, we use "Add Reference" option to make reference to other
assemblies.
At times, there a is a chance that few of them get added by mistake or
must have got added for some need and developers must have forgotten to
remove them back when not required :)
Question:
... more >>
PP: Identifying list of unwanted USINGs
Posted by prabhupr NO[at]SPAM hotmail.com at 3/9/2006 8:40:53 PM
Hi Folks
In CS project, we use "using" statement to make reference to other
namespaces. For example:
using System;
using System.Data;
using System.Configuration;
At times, there a is a chance that few of them get added by mistake or
must have got added for some need and developers must ... more >>
Visual C# FileIO and Environment Permission
Posted by Marquis at 3/9/2006 8:18:24 PM
I am writing a ActiveX dll using Visual C#
However , i am facing fileio and environment permission problem.
Is there any way to solve this problem? just as signing the dll or
other method to grant the permission?
Thanks,
Marquis
... more >>
trivial question about building exe
Posted by Dariusz Tomon at 3/9/2006 6:38:58 PM
Hello
I have got windows application project (C# Visual Studio 2003) with
references to external dlls. All I want is to compile everything into one
exe file, so that I can send it to another machine and it works.
I would also ask about creating installation package so that others could
ins... more >>
Getting text box value on key press?
Posted by Brett Romero at 3/9/2006 6:27:24 PM
I have three text boxes on a form with one button. The button is the
form's AcceptButton. After some one puts a value into any text box, I
assign the value to an object via textbox.Leave() event. This doesn't
work if some one types or pastes in a value then hits <enter>. None of
the key even... more >>
Application Idle - Good or bad practice?
Posted by Udi at 3/9/2006 5:48:30 PM
Hi All,
What do you know about the Application.Idle event?
When is it a good practice to use it and when should I not use it?
I know it fires when the app message queue is empty, and that this
happens a lot.
But if I register many handlers on this event, what impact will it have
on my applicat... more >>
How to: Access the Managed HTML Document Object Model
Posted by Filippo Bettinaglio at 3/9/2006 5:46:26 PM
Hi,
I use, VS2005 C#
I have a Windows Forms UserControl hosted within Internet Explorer
According to MIcrosoft documentation:
http://msdn2.microsoft.com/en-us/library(d=robot)/ms171712.aspx
or
the local MSN (Installed with) VS2005.
....
You can access the HTML DOM representing ... more >>
VS 2005: how to use the same class.cs in two projects
Posted by Serdge Kooleman at 3/9/2006 4:46:55 PM
c# how to use the same class in two projects?
i have solution that consists of website, winapp and web service.
i need to use the same class MyClass.cs in all three applications.
i cannot figure out how to do in the VS 2005?
... more >>
File browser
Posted by FireStarter at 3/9/2006 2:46:25 PM
Is there a control that I can use in Windows Forms to show the file
system? I need something like the "file list box" in VB, that I can add
to a form and have it automatically populated with the files (and
folders) at a certain location on disk.
Thanks.... more >>
Finding if a column is unique in a dataset
Posted by spdude at 3/9/2006 2:44:33 PM
I have a dataset that has megs of data. I want to know if there is a
way to find out if data in a particular column is unique or not. Does
the dataset or a datatable have a built in function that i can use?
Thanks
... more >>
How to set build order?
Posted by Brett Romero at 3/9/2006 2:34:18 PM
I have an EXE project with four project dependencies (DLLs). I need to
set the order of these builds. However they are automatically ordered
by alpha. There aren't any settings to change this. Is the build
order actually done by alpha?
Thanks,
Brett
... more >>
Enterprise Library Application Blocks question...
Posted by craig at 3/9/2006 2:29:26 PM
I was just wondering if anyone else may have incorporated the original
Microsoft Exception Management Application Block (EMAB) or Data Access
Application Block (DAAB) into one of their applications when the blocks were
frist released several years ago?
In the process of trying to upgrage an... more >>
reading userAccountControl flags
Posted by Morten at 3/9/2006 2:20:43 PM
Hi!
I'm trying to determine if an AD user has the "Password never expires" flag
set. I've only been able to find some vb script examples that show how to do
this but I haven't been able to translate this to C#.
I've tried this:
if ((dirEntry.Properties["userAccountControl"].Value &&
U... more >>
Editable DataGrid with DropDownList Question
Posted by Frank at 3/9/2006 2:19:23 PM
Hello,
I am developing with VS.Net 2003 on the asp 1.1 platform.
I am a few days new to using a datagrid. I found a nice tutorial and had no
problems using an editable datagrid with textboxes and an additional
buttoncolumn where I used a delete button to delete a specific row.
Once I ha... more >>
Chinese characters
Posted by lyudmilal NO[at]SPAM ungerboeck.com at 3/9/2006 2:05:56 PM
I have a list of last names that can be in different languages:
chinese, english, russian, german, etc. Different format need to be
applied only for last names in chinese. For this purpose, I need to
check if last name contains chinese characters. Any ideas how to do it
(it should be data rel... more >>
Keyboard Macros
Posted by Padu at 3/9/2006 1:12:54 PM
I realize this is more of an IDE question than C#, but is there any "macro
recording" capability for keystrokes in visual studio 2005?
In Delphi for example, your press ctrl+shft+R and it starts recording all
keystrokes you press. ctrl+shft+R again and it stops recording. ctrl+shft+P
"plays... more >>
Size
Posted by Roy at 3/9/2006 12:47:27 PM
I have an object with array of some data types. How do I get the number of
bytes for it in managed code? The underlying data types could be primitive
types or userdefined structures.
For example I have an integer array boxed in object.... more >>
Edit Table
Posted by gjtired at 3/9/2006 12:36:39 PM
Hi
I am using a table to fill a dropdown box. The contents of the dropdown
box are ordered by a seq_no. I edit the seq_no and want to refresh the
dropdown box and show the new order. I can edit the table but the
changes to the seq_no is not changing the order of the dropdown box
when it is re... more >>
Weird issues with DataGrid
Posted by Flack at 3/9/2006 12:18:28 PM
I have a DataGrid and a DataTable. When my form loads I create the DataTable
with the appropriate columns and use it for the DataGrids.DataSource.
Later on in my app, I alter the DataTable:
dt.BeginLoadData();
for(int i = 0; i < _movesArrayList.Count; i++)
{
string[] columnValues = ... more >>
32-bit signed int to 16-bit unsigned int
Posted by dantheman at 3/9/2006 12:08:02 PM
anybody can tel me y
Int32 supervar = 1151;
but when i do
supervar = supervar & 0xFFFD;
supervar becomes = to 1149
same for
Int32 supervar = 21319;
but when i do
supervar = supervar & 0xFFFD;
supervar becomes = to 21317;
thank for any tips
... more >>
Process File in Chunks - StreamReader
Posted by das at 3/9/2006 12:00:23 PM
I posted this on ado.net, which seems like the wrong group - so here it
goes!
Hi All,
I want to process a file in chunks, meaning I have a big file of
50K rows. I want to process 5K rows at a time.
I am using StreamReader object and looping through each row and process
it, and as I... more >>
Help Passing TreeView to another form and then back
Posted by dixiecanterbury NO[at]SPAM alltel.net at 3/9/2006 11:39:09 AM
I have a tree view on a form and I need to pass that treeview to
another form keeping the state of the treeview (expanded nodes, etc).
After the treeview has been manipulated (added nodes, deleted nodes,
etc) I need to pass the treeview BACK to the original form.
Is there an easy way to do t... more >>
picture compare
Posted by Dave at 3/9/2006 11:38:02 AM
Does any one know how to compare pixels in a picture, or a dll that will
allow me to do so. I need to be able to find objects in a picture. Like a
table, chair, car etc. Compare a given picture say of a car, and scan another
picture for same type of car?... more >>
Reads XML node from App.Config and populates a Class
Posted by PH at 3/9/2006 11:36:38 AM
Hi guys;
I got the following problem to solve, hope you can help me.
I got a XML node in App.Conf;
<CUSTOMERS>
<CUSTOMER>
<NAME =”Frank” />
<LASTNAME =”Smith”/>
<AGE= 34 />
</CUSTOMER>
<CUSTOMER>
<NAME =”Lisa” />
<LASTNAME =”Tucker”/>
<AGE= 42 ... more >>
Assembly Dll's, Interfaces and Swapping
Posted by Lee at 3/9/2006 11:19:24 AM
Hello,
Assume that I have two dll assemblies that implement a common
interface. If the dll's are named the same, is it possible to swap the
dlls in the field? Say, shut down the software, swap the dll's and run
the software again?
--
Warm Regards,
Lee
"Upon further investigation ... more >>
How do you change a date for use in different countries
Posted by Wolf W. Wolf at 3/9/2006 11:01:28 AM
Example. In the U.S. 03-09-06 (Month-Day-Year). I would like for the date
to change with use in whatever country the software is in, such as Finland,
U.K. or even China. I keep playing with System.DateTime and can not find a
way to do this. I would appreciate any help.... more >>
How can I tell where a dataset was generated from?
Posted by Doru Roman at 3/9/2006 11:01:21 AM
Hi,
Having created a data adaptor and then a dataset with the wizard, the
dataset does not bear any information about the data adaptor that generated
it. A good practice is to have both with similar Name, but if there are no
hints, how can I tell?
Thanks,
Doru
... more >>
How the devil do I get screen resolutions??!!?
Posted by ManwSloHand at 3/9/2006 10:38:43 AM
ARGH! I have a c#.net web application. I need to retrieve screen height
and width into a variable. I know this is incredibly stupid but HOW THE
HECK DO I DO IT??!?!?!
A copy to rick1ryan@gmail.com would be much appreciate also.
Thanks in advance.
... more >>
Accessing COM Object without Interop Assembly Wrapper
Posted by Marlon R at 3/9/2006 9:47:15 AM
Is there a way to access COM object like VB.NET when Option Strict is set to
Off.
I am write an application that will interop with Excel. But the target
machines all have different version (9,10,11) .
Option Strict Off
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.O... more >>
are all subclasses virtual (use vtables?)
Posted by ZenRhapsody at 3/9/2006 8:44:19 AM
Are ALL methods in subclasses implemented in C# with vtables and virtual
functions?
I know I could test this myself, but I'm still using Express edition of 2.0,
so I cannot view the optimized disassembly.
I know that you must use vtables for all virtual functions (and interfaces),
but if... more >>
Having trouble with multiple threads and a shared resource
Posted by Flack at 3/9/2006 8:40:29 AM
Hey guys,
In my app I have a bitmap where drawing is done and in the form's paint
method I show the bitmap:
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
if(MyBitmap != null)
{
Graphics g = e.Graphics;
g.ResetClip();
Rectangle ... more >>
Another form question
Posted by AMP at 3/9/2006 8:39:07 AM
Hello,
Form1 has a button that creates Form2 that has a button that changes a
lable on Form1.
How do I give(send) Form2 a reference to Form1?
Thanks
Mike
... more >>
storing data securely
Posted by ek1 at 3/9/2006 8:34:49 AM
Hi,
I need a method in which to store data securely on windows XP/2003
using C#.
By secure I want to a) prevent user reading and changing the data and
b) prevent user copying over data
I can solve the first problem easily by using encryption, however I do
not know of any storage method w... more >>
Debugging a command line c# windows Application
Posted by lavu at 3/9/2006 8:18:00 AM
How can I debug a C# GUI app which is invoked from the command line ?
Thanks in advance.
... more >>
Using properties from a nested class
Posted by Marc Hoeijmans at 3/9/2006 7:45:28 AM
How is it possible to us a property from a nested class.
Example:
namespace MyApp
{
public class MaxLength
{
public class Project
{
private const int _projectNumber = 3;
private const int _projectName = 20;
public int ProjectNumber
{
get { return _projectNumbe... more >>
Type Question
Posted by Demetri at 3/9/2006 7:10:30 AM
I have a method that has a parameter that accepts a System.Type. How can I
test to see if the type passed is one of the numeric types?
I want to avoid a big if/else or switch statement if possible.
--
-Demetri... more >>
Forevery() writable iterator mechanism in C# 3
Posted by shawnk at 3/9/2006 7:09:27 AM
I searched the net to see if other developers have been looking for a
writable iterator in C#. I found much discussion and thus this post.
Currently (C# 2) you can not pass ref and out arguments to an iterator
method (one returning IEnumerable). I WOULD like to do this for
transformative op... more >>
Automatically starting the C# GUI
Posted by lavu at 3/9/2006 7:05:37 AM
I have a C# app that I can use in Test mode by clicking a button which
reads data from a file for my test.
I would like to start the App from the command line and run the test
automatically without
the form waiting for the button click. So I tried to call the button
click event from
frmMain() ... more >>
Trace debug for every method in code
Posted by kplkumar NO[at]SPAM gmail.com at 3/9/2006 6:40:14 AM
This is what my supervisor is looking for.
We want runtime debugging/trace logging. In other words, we want to log
every method that was executed, perhaps the variables in it as well -
everytime the method is executed. This should be such that it can be
turned on/off in a configuration file.
... more >>
Programatically finding SMTP Server on local network
Posted by Gancy at 3/9/2006 5:19:47 AM
Is there a way to programatically find a SMTP server available on the
network? I am writing a C#.Net program, which should first find a SMTP
server on LAN and use that SMTP server to send an email.
Thanks
Ganesh
... more >>
How to prevent DataGrid cell editing ?
Posted by Sharon at 3/9/2006 4:18:26 AM
I have a DataGrid on my Form, and I wish to disable any cell editing.
For example; when the user clicks on a cell, the cell become editable by
changing its color to gray and context menu is shown on muse right mouse
click.
I do not want the enable this cell context menu (I have my own context ... more >>
connection from c# to sql server 2005
Posted by roshan at 3/9/2006 2:18:58 AM
hi all,
I am new to this group and also new to c#.I am trying to learn c# right
now.
I am doing a small asssignment in which i have to create a small
file with .sql extension in windows.then write a code in c# to access
that file and then connect to sql server 2005 and execute the query
p... more >>
Shared memory for .NET ?
Posted by Bart Simpson at 3/9/2006 1:40:59 AM
I want to create a data repository in memory so that different processes
can share the same data, rather than loading the data multiple times for
each process and then having to contend with synchronisation issues.
Is there any library out there that will allow shared memory for
inter-proce... more >>
Assign Operating system shortcut key to event in program
Posted by Jesper at 3/9/2006 1:37:27 AM
Hi,
I've made an application that is running in the background - i.e. its not
visible on the screen.
I would like an eventhandler in the program to subscribe to the event that
occurs when, say the windowskey+(some free key) is pressed. A little like the
way you can start the file Explor... more >>
System.Security.SecurityException
Posted by Carl at 3/9/2006 1:37:26 AM
Hi.
I have my program written as a console application in C# .NET 2005.
I run it from a server on the local intranet and I got this message:
An unhandled exception of type 'System.Security.SecurityException' occurred
in System.Data.dll
Additional information: Request for the permission of ty... more >>
comparing byte arrays
Posted by eoghan.kenny NO[at]SPAM gmail.com at 3/9/2006 1:29:27 AM
Hi,
I need to compare two timestamp columns in sql server and see which one
is greater. (i can tell if they are not equal buts not enough for this
requirement).
A timestamp value is unique in a database and always increments. A
non-null timestamp is type Binary(8) in sql server and I pass i... more >>
delegates
Posted by ichor at 3/9/2006 12:00:00 AM
hi i cant seem to understand the difference. can anyone explain or point me
to some tutorial that can.
thanks
... more >>
Date format pattern for "03rd of April 2006" type date
Posted by zsolt at 3/9/2006 12:00:00 AM
Hi,
I'm trying to convert a string to date by specifying the format. The value
is like this: "03rd of April 2006". Now this is converted fine by using the
following format: "dd\r\d \o\f MMMM yyyy". The problem is of course that the
string can be 01st of..., 04th of etc., meaning that I can't u... more >>
PInvoke - Pinning byte arrays
Posted by _iycrd at 3/9/2006 12:00:00 AM
After numerous problems, I'm having second thoughts about using
C++/CLI to wrap a native DLL. On the other hand, PInvoke seems like
it will take a huge amount of work, if it will work at all.
The native DLL uses raw data buffers that are normally handed to it
(via pointer) from another native... more >>
DataAdapter
Posted by Dragon at 3/9/2006 12:00:00 AM
What is the actual use of DataAdapter ?
is it Only for sync for Dataset(Disconnected Data) and Table in Database for
only Single Table only ???
... more >>
How to Create an Evaluation version of the application
Posted by vighnesh at 3/9/2006 12:00:00 AM
Hello Everyone
I developed a .NET application and now I need to create a setup of that for
distribution. But here I would like to
distribute my application as a trial version for certain period of time and
then promt the user for registration. If it is
not registered after that period the a... more >>
how can I change IP address and DNS address from my program?
Posted by Eric Zhao at 3/9/2006 12:00:00 AM
how can I change IP address and DNS address from my program?
thanks in advance.
... more >>
|