all groups > c# > july 2005 > threads for friday july 8
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
Converting String to Byte array
Posted by crater at 7/8/2005 11:21:01 PM
I need to convert a String to a Byte array and vice versa. Can someone nudge
me in the right direction please?... more >>
Address in C#
Posted by javaid iqbal at 7/8/2005 10:40:02 PM
Please answer my following questions.
(1). How to print address of any variable in C#. for example
int x; int [] y=new int[4];
how to printf address of x and address of first element of array y.
(2)In C we could print values of any decimal number in Hex or Octal by
simply wri... more >>
Class Templates
Posted by Mike Labosh at 7/8/2005 7:38:06 PM
This really bugs me, and I can't for the life of me seem to be able to find
where the IDE gets this stuff from...
I add a new class to my project and get this:
using System;
namespace Foo
{
/// <summary>
/// Summary description for Bar.
/// </summary>
public class Bar
{
publ... more >>
C SHARP - Parsing URL for Variable
Posted by Jozef Jarosciak at 7/8/2005 6:48:45 PM
Hi everyone,
I am building a web crawler and one of the features which I need to
include is exclusion of specified 'variable + value' from the url.
Example, user wanted to extract variable "s":
So when you look at this url:
"http://www.goldenretrieverforum.com/search.php?s=5817617a59fb630... more >>
VGA e CompactFramework
Posted by Andrea J at 7/8/2005 6:09:59 PM
Se sono OT vi prego semplicemente di ignorare il messaggio...e di non
insultarmi :-) !
Il mio problema è questo: come faccio con C# e CompactFramework a fare
un'applicazione che sfrutti tutta la superficie di 640 per 480 punti di un
moderno pda?
Mi spiego meglio:
Se disegno un form su V... more >>
Using reflection to access array elements
Posted by trevorelbourne NO[at]SPAM gmail.com at 7/8/2005 5:55:17 PM
Hi,
I am having trouble accessing the elements of an array using
reflection. This is the code I am having trouble with:
FieldInfo[] Fields = Obj.GetType().GetFields();
foreach (FieldInfo fi in Fields)
{
Object Temp = fi.GetValue(Obj);
if (Temp.GetType().IsArray)
... more >>
need ideas on approach
Posted by RC at 7/8/2005 5:39:20 PM
--------------------------------------------------------------------------------
All,
Need ideas on how to approach this:
Have to compare account numbers in one table to account numbers in
another table and if they exist in the second table
The problem is the tables are in two separat... more >>
Redirect the output of Debug.WriteLine()
Posted by Frank Rizzo at 7/8/2005 3:58:55 PM
Is there anyway to transparently redirect the output of the
Debug.WriteLine statement from the Debug window to something else such
as a console or a file?
Thanks... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Deploying Strong-named Configuration Block project causing errors
Posted by Robert N at 7/8/2005 3:02:01 PM
I was able to compile (Debug) and reference an Configuration Block project
for my primary application "AppPrimary.exe". When I add a strong name file
to the Configuration Block project and recompile the projects my
"AppPrimary.exe" no longer works correctly.
I've noticed that when AppPrima... more >>
Displaying images in a repeater from database
Posted by marvin NO[at]SPAM thos.ca at 7/8/2005 2:52:47 PM
Hi,
I am trying to display images in a repeater from a SQL database and do
some transformations on the image prior to displaying them (such as
thumbnail with a shadow). The problem is I can't seem to get the data
passed to the handler.
The following is the code that I have so far.
In the... more >>
Application and Console???
Posted by ttan at 7/8/2005 2:33:01 PM
Is there anyway we can write an Application project and also have an option
for console where it take the command line for input?
Thanks... more >>
Problem with Textbox and File-Save
Posted by Robert W. at 7/8/2005 2:31:01 PM
I'm developing a WinForms app and have a slight problem that I hope someone
can help me with. There are a series of textboxes that the user can enter
information into. The text in these boxes is only copied into the data model
when the textbox's LostFocus event is fired. This has worked wel... more >>
A property or indexer may not be passed as an out or ref parameter
Posted by rwoo_98 NO[at]SPAM yahoo.com at 7/8/2005 2:30:10 PM
I am trying to pass a reference to a method --SomeMethod. This table
resides in a dataset and I refer to the datatable in the dataset using
an indexer. However when I attempt to do this I get the error message,
"A property or indexer may not be passed as an out or ref parameter?"
Here is the... more >>
Are there no .NET grid components that emulate Excel?!?
Posted by Nathan at 7/8/2005 2:12:29 PM
A couple of months ago, I went looking for a .NET grid component with
what I thought was pretty simple criteria - I wanted an interface that
provided my users with Excel-like data entry capability. My users
(mostly scientists) use Excel for just about everything and like how
quick and easy it i... more >>
getting multiple values returned from a method
Posted by Homer Simpson at 7/8/2005 2:10:48 PM
Hi All,
I'm trying to write a method where I pass three arguments and the method
returns six values. All the values will be doubles. First, is it possible to
get multiple values returned by a method? Second, how do I do it? I know how
to write the method, pass arguments to it and get a sing... more >>
C# - parsing an XML string
Posted by Don Tucker at 7/8/2005 2:09:01 PM
Hello,
I am developing in Visual Studio .NET 2005. I am attempting to parse
an XML string by using the example given in the help files:
ms-help://MS.VSCC.v80/MS.MSDNQÂTR.v80.en/MS.MSDN.v80/MS.NETDEÂVFX.v20.en/cpref/html/M_SystemÂ_Xml_XmlReader_Create_1_6b7628Â9f.htm
namely,
str... more >>
Databound Combobox on TabControl hangs application
Posted by Prem S at 7/8/2005 1:53:31 PM
Hi All
I have a databound ComboBox control which is put into the second page
of a tab control. When the form loads up, I databind the combo control
and populate the control.
When I go to change the tab page to the second page, the application
hangs...becoming completely non-responsive.
I... more >>
Any easy way to convert DateTime to Xml Date format
Posted by Q. John Chen at 7/8/2005 1:35:32 PM
I'd like to convert a DateTime value into XML date format.
1999-02-03T00:00.0000000-05:00
What is the easy way?
... more >>
Checking file type
Posted by Flack at 7/8/2005 12:58:03 PM
Hello,
I 'm using drag-n-drop and if the user drops a file, I want to make sure
that it is either an Excel file or a plain text file.
Is the right way to do this to check that the last three chars of the file
name are either xls or txt, or is there another way?
Thanks,
-Flack... more >>
Can i Box values in arrays
Posted by Matt at 7/8/2005 12:34:22 PM
Is there a way to put my class vals to arrays !
RecordSet Track1 = new RecordSet("It aint fear",1);
RecordSet Track2 = new RecordSet("Gotta go",2);
RecordSet Track3 = new RecordSet("My life",3);
RecordSet Track4 = new RecordSet("Amazing",4);
Data d = new Data();
d.RecordAdd(Track1);
d.R... more >>
Is Dispose called on parent classes?
Posted by steve bull at 7/8/2005 12:24:00 PM
If I have two classes both of which have unmanaged resources that need to be cleaned up. For example class B is a child of class A
and I create an instance of class B. Then, if I call B.Dispose - Does A.Dispose get called automatically or do I have to clean up
the unmanaged resource in class A a... more >>
Reading text of a Word doc or rtf file
Posted by Flack at 7/8/2005 12:07:02 PM
Hello,
What I need to do is read each line from a doc/rtf file. I tried using a
stream reader with the file but I get a lot of formatting/headers or whatever
else is in the doc along with the actual text.
Is there a way for me to just retrieve the lines of text? Is it possible to
do wit... more >>
please help exporting function!
Posted by gs at 7/8/2005 12:01:03 PM
I have searched Google, MSDN,... for a week. I am still unable to make
available functions in my csharp dll as native windows functions for some
legacy non dotnet application
I just want to expose the regex function to my old legacy application built
with some tools that runs a VM with ... more >>
UserName of a process
Posted by Prisy at 7/8/2005 11:51:02 AM
In asp.net(C#) we can get the Process Name of a process using the following
code:
System.Diagnostics.Process item;
item.ProcessName.ToString();
Is there a way to get the User Name of a process?
--
Thanks
Prisy... more >>
Software License Agreement Forms
Posted by Rene at 7/8/2005 11:23:18 AM
Hi, I am getting ready to release some software to the public and I am
searching for a good "Software License Agreement Form". You know, the
license agreements that are already created and are customizable for your
needs.
I searched the web and found a couple of them but I would like to kno... more >>
Parsing HTML
Posted by Yosh at 7/8/2005 11:17:13 AM
I have a web page that I call and I need to get the body text out of the =
HTML.
<html>
<body>
Hi.
How are you?
</body>
</html>
What is the best way to do this in CO# and .NET?
Thanks,
Yosh... more >>
best way to connect to a database?
Posted by Jassim Rahma at 7/8/2005 11:09:21 AM
I would like to know what is the best way to onnect to connect to a
database in general which provides you with full functionality & fast
access?
Best Regards,
Jassim Rahma
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Refer to Form on page from user control
Posted by Simon at 7/8/2005 10:53:03 AM
I have a form, "Form1" that I would normally step through using
Control frm = FindControl("Form1");
foreach(Control ctrl in frm.Controls)
But now I have this page as a user control loaded by a handler that has menu
bars etc on. Form1 now resides on this handler page.
How do I now use the... more >>
Array question
Posted by Michael Rodriguez at 7/8/2005 9:51:49 AM
What is the proper way to declare and initialize an array of datasets?
Would it go like this:
private DataSet[] myDataSets;
DataSet ds1 = new DataSet(); // initialize the dataset
DataSet ds2 = new DataSet(); // initialize the dataset
myDataSets = new DataSet[2]; // does this... more >>
is this possible
Posted by JustCoding at 7/8/2005 9:35:03 AM
here is what i would like to do if possible, we have about 10 or so batch
programs (console apps) that load data from text files into a sql server
database then writes log files, The only difference in these apps is the
business logic (data validation) is there a way to create a GUI interface ... more >>
Restricting instantiation of a nested class to its container
Posted by ex-neo-con NO[at]SPAM bonbon.net at 7/8/2005 9:29:44 AM
I'd like to write code to make a nested class publicly available, but I
want to restrict its instantiation to instances of the containing
class. I know I could do such a thing using reflection, but that seems
a rather roundabout way of doing such a thing (not to mention the
processing overhead ... more >>
XML Documentation for intellisense
Posted by Q. John Chen at 7/8/2005 8:43:35 AM
I want add comment/description to a class member so it will show up in
the intellisense in addition to the member's signiture.
I tried couple of tags but still no comment. What am I missing?
Thanks
John
... more >>
Data Access Layer DAL
Posted by ehx ehx at 7/8/2005 8:08:22 AM
In designing a web application, what is the significant in creating a
single DAL vs multiple DAL in a single project .
Thanks
ehx
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Dialogresult scope problem
Posted by Ant at 7/8/2005 7:44:04 AM
Hi,
I'm new to C# & just experimenting with how to use it. I can't figure out
why I can't do this.
The dialog result object is not 'seen' in the while statement of the do
loop, yet the integer is. why is this so?
The
do
{
// declare the int
int iCount = 0;
iCount++;
// declare... more >>
Display and get Windows User
Posted by BuddyWork at 7/8/2005 6:23:25 AM
Hello,
I want to be able to display the windows user dialog that you see
through the O/S, and want to be able to get the selected users, how do
I go about doing this?
Thanks
... more >>
Dependent files for ADODB in Class Library?
Posted by jason at 7/8/2005 5:57:46 AM
hello,
i have a C# class library that i recently had to add ADODB
functionality to, in order to support consumer applications that can
only work with recordsets.
i added the ADODB library reference, and implemented recordsets without
a problem, however now my class library dll won't registe... more >>
Possible Buy/Issue with AppDomain.UnLoad
Posted by BuddyWork at 7/8/2005 5:34:17 AM
I think I've found a possible issue with .Net AppDomain.Unload when
using attribute LoaderOptimization.MultiDomain.
Here you will need ProcessExplorer from SysInternals to see what
assemblies are loaded for a given process.
You will need to add the following code into HelloWorld1.cs and comp... more >>
Knowing when DataBinding is completed?
Posted by Niklas Ringdahl at 7/8/2005 4:14:03 AM
Hello.
I am using databindings to bind my dataset to comboboxes, textboxes and
labels. Some of my UI depends on knowing when the user changes the values,
but I have some problems knowing when my dataset value is set in the
controls.
- SelectedIndexChanged event fires during the bind pr... more >>
Late Binding an Interface
Posted by CodeRazor at 7/8/2005 4:01:02 AM
How can i load an interface from a dll using System.Reflection?
I can see how its possible to do this on methods, properties in a class. You
create an instance of the class and use the invoke method.
Type t = Type.GetType("MyAssembly.MyClass");
Object obj1 = Activator.CreateInstance(t);
o... more >>
move text box to other part of application
Posted by ronenk NO[at]SPAM tauex.tau.ac.il at 7/8/2005 3:35:55 AM
I have a good authentication form, which I use to login to my app. Now
I want to be able to know which user is logged in now, in order to fill
his answers in DB. In other words: I need to save & move username
(stored in text box of the authentication form) to other parts of
application. How woul... more >>
Singleton pattern vs Class with purely static members
Posted by Atul Malaviya at 7/8/2005 12:48:07 AM
>From a design/usability perspective.
When will one use a singleton pattern and when a class with purely
static members?
What are the pros and cons? I have inherited a code base which is full
of both these and I am a bit confused on this count.
Singleton insures one object of a class in t... more >>
Accessing USB drives using C#
Posted by Shreeram Natarajan at 7/8/2005 12:46:14 AM
Hi,
Can anyone tell me how to get the list of USB flash drives attached to the
system programmatically
using C#?
Thanks
Shreeram Natarajan
... more >>
VS 2005 MaskedTextBox
Posted by wschlichtman at 7/8/2005 12:02:02 AM
Anyone figure out a way to display currency in this control? I have a bound
control to an SQL database. The field will contain values from 0 to any
permissible positive number and I need to display the number ask currency.... more >>
Cannot parent controls to a custom(derived) control
Posted by CroDude at 7/8/2005 12:00:14 AM
Hi all!
I've made a custom group-box control derived from a GroupBox. Additionally
I've made a ControlDesigner derived class associated with my group box to
remove some unneeded properties.
But after utilizing this ControlDesigner, I can't parent any control to my
group box in a design view(Whe... more >>
WebService compress data
Posted by Wencheng Magiya at 7/8/2005 12:00:00 AM
Hi all,
My WebService connects to a database server, client application connects to
the WebService. There is a backup method in WebService backups database and
sends compressed data back to the client app. The client app then generates
a zip file using the compressed data. I tried Xceed's Z... more >>
Having trouble with step 1
Posted by wASP at 7/8/2005 12:00:00 AM
Hi,
I'm a newbie starting up with ASP.NET,
and I'm getting off to a wonderful start
- and when I tell you "wonderful" I'm being sarcastic.
My OS is Win 2000 SP4.
I've gotten IIS installed, along with the .NET framework.
I have the .NET Framework 1.1 configuration tool in Administrat... more >>
Designing a Soap Proxy
Posted by Søren Reinke at 7/8/2005 12:00:00 AM
Hi there
For at project i need to build a Soap proxy with build in caching
functionality.
The reason is our backend system that we communicate with by Soap, does not
always answer (break down, update and more) and some of the queries takes a
LONG time (minutes) because the data is needed... more >>
Problems compiling app with winsock. Can someone help me please.
Posted by Erik at 7/8/2005 12:00:00 AM
Hi Everyone,
I'm having real problems compiling some source for eVC4++. The errors
I am getting are below:
It all seems to be centred around winsock. If I move the afsock.h
reference to before my other includes then I get lots of errors like
C2011: 'fd_set' : 'struct' type redefinition
warni... more >>
how to add new row in excel?
Posted by Zero at 7/8/2005 12:00:00 AM
how to use
oSheet.rows.Insert( object shift, object copyorigin)?
... more >>
C# -> MessageBox On Top
Posted by Hareth at 7/8/2005 12:00:00 AM
Can someone give me a simple example using
MessageBox.Show, if DialogResult.Yes
a way to keep it always ontop
and center from parent form
... more >>
|