all groups > c# > february 2005 > threads for tuesday february 1
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
recursive console search that lists all .doc files
Posted by RML at 2/1/2005 10:46:20 PM
hi guys
i have searched all day and cannot find the code i am looking for. i am new
to c# so please bear with me ;)
i want to write a console app that simly lists in the console window, all
files on c: that end with .doc
i had a look at some recursive search code for mp3 files, but it d... more >>
chr(13)
Posted by Alberto at 2/1/2005 10:34:37 PM
In a application in visual basic 6 I had chr$(13). How can I get the same
value in C#?
Thank you
... more >>
readonly behavior for structs
Posted by sadhu at 2/1/2005 10:34:36 PM
Hi All,
I was surprised to see the readonly behavior differ with respect to
properties and methods.
struct Foo
{
int state;
public int State
{
get { return state; }
set { state = value; }
}
public void SetState(int x)
{
state = x;
}
}
Now if I do something like
class Temp
... more >>
Question about user controls and DataGrids
Posted by Jason at 2/1/2005 9:52:17 PM
I am pretty new to C# so bare with me...
The design of my website utilizes tables on every page that look almost
identical, save the data they are displaying. I have written the code
to create the body of these tables using a DataGrid, so I can
dynamically add rows to the table without modify... more >>
Insert sql string
Posted by Ricardo at 2/1/2005 9:17:57 PM
How can I make a insert sql string to insert direct in a table(not a
dataset) using the textbox.text propert??
... more >>
Manually crating JPG file from array of bytes
Posted by David at 2/1/2005 9:11:58 PM
Hello.
I need to create JPG file base on data from some array of bytes without
using any graphical functions.
So I need the function which will get array of bytes as parameter and write
it byte by byte into file, of course there must be inserted all necessary
data appropriate of JPG format... more >>
Problem in defining web service method which returns Hashtable
Posted by Kalyani at 2/1/2005 8:31:02 PM
Hi,
I have a web service method which needs to return a hashtable.But it
gives errror as,
The type System.Collections.Hashtable is not supported because it implements
IDictionary.
Is there any way to return hashtable through a web method other than
implementing the IDictionary?
Ple... more >>
Extending a File Dialog
Posted by Stuart at 2/1/2005 8:08:54 PM
I'm looking to implement a Standard File Open Dialog, and put a little File
Preview segment onto the dialog. Unfortunately it's not as straightforward
as just inheriting a regular file open dialog and adding the bits I need.
Does anyone know of any easy way to achieve what I'm looking for? Or w... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Optional out parameters?
Posted by Paul E Collins at 2/1/2005 7:47:44 PM
This is just a suggestion.
When a method has an out parameter, the calling code has to supply a
target variable. I would like to be able to pass null instead,
indicating that I have no use for the out parameter.
For example, if I have a method ...
bool IsValidWeight(float weight, out stri... more >>
automatic file upload
Posted by David Perez Essenwanger at 2/1/2005 7:19:27 PM
Hi,
is there a way to create a windows application that runs in a scheduled
task to upload files from one server to another automatically?
Any suggestion would be really appreciated
Thanks
David
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in US... more >>
Conditional compilation?
Posted by David Veeneman at 2/1/2005 6:55:51 PM
I'm creating several public properties in a class that I will use
exclusively for testing purposes. In a Debug compile, I want these
properties to be included in the compile, but I want them omitted from a
Release compile. What is the easiest way to accomplish this goal in VS.Net,
using C#? ... more >>
Photoshop: how to open a document ?
Posted by Lionel at 2/1/2005 6:36:16 PM
Hi,
I am trying to open a Photoshop document with the Photoshop (COM) reference.
Photoshop.Application appRef = new Photoshop.Application();
Photoshop.Document docRef;
docRef=appRef.Open("c:\test.jpg");
C# is waiting for an Object argument after the "c:\test.jpg" in the Open
fonction... more >>
Hmmm
Posted by GTi at 2/1/2005 4:28:47 PM
This looks like a silent or brand new newsgroup.
Is there any other news groups for C# available ?
... more >>
BeginUpdate not working for 2nd TreeView
Posted by Etienne at 2/1/2005 4:22:59 PM
Hi, I have a form containing 2 TreeViews. When I click on a button, items
are transfered from the left tree to the right tree, which causes
flickering. In order to remove such flickering, I surrounded code with
BeginUpdate/EndUpdate for both trees. The left tree doesn't flicker anymore,
but ... more >>
replace
Posted by Etu at 2/1/2005 3:57:10 PM
Hi,
I have a string:
string c = "'abc' \"cde\", 'mno' \"xyz\",";
how can I use the c.Replace(???, ???) method to have this string:
"'abc' "cde", 'mno' "xyz","
that is, all the backslashes are removed.
Thanks,
Etu
... more >>
SOAP Envolop
Posted by Champika Nirosh at 2/1/2005 3:54:09 PM
Hi all,
I am just comparing webservice performance..
What really have in SOAP envelop??
Is it taking lots of space..
get me some data regarding this soap envelop
Regards,
Nirosh.
... more >>
No end of problems trying to use a C++ function....
Posted by Paul Tomlinson at 2/1/2005 3:52:01 PM
All, i'm at my wits-end. I have this third party C++ function which I am
trying to call from C#, no matter what I try to do I just can't get it to
work.
This is the function prototype in C++:
long IsValidCompressedFile (
const char *pcszSrcFileName,
BOOL *bValid,
char *origFileName,
... more >>
change "page setup" printer C#
Posted by Sean McKaharay at 2/1/2005 3:48:43 PM
I want to find out how I can change the page orientation of a printer.
... more >>
C# can't find "Microsoft.Web.Services"
Posted by Michael Rodriguez at 2/1/2005 3:25:05 PM
I've installed WSE, both 1.0 and 2.0. The namespace Microsoft.Web.Services
is visible from my VB.NET projects, but not in C#. In C#, it tells me there
is no "Web" under "Microsoft".
Any ideas?
--
To understand recursion, we must first understand recursion.... more >>
pass values between classes
Posted by liyang3 NO[at]SPAM deloitte.com at 2/1/2005 3:16:43 PM
Hi,
I have Class A, B and C.
Class A has an instance of B. Class B has an instance of C. In the
instance of C, it generates some data that need to be passed back to
Class A. But Class C doesnot know anything about Class A.
I'm dealing with legacy code. What is the best way to implement it... more >>
Java to C#....
Posted by genc_ ymeri at hotmail dot com at 2/1/2005 3:12:33 PM
Hi,
How can I translate this method in C# ?
public void actionPerformed (ActionEvent event)
{
if even.getSource() == mybtn
{
sayHello();
}
}
Thanks in advance.
... more >>
First Control in Tab Order
Posted by Rachel Suddeth at 2/1/2005 3:11:42 PM
I can't believe I am finding this so hard to figure out...
I see there is a Controls.GetNextControl() (in Windows Forms controls) to
get the next control in the tab order. But I don't see how to get the first
one? Typically, I want to set focus to the first control on a certain tab
page or o... more >>
WebClient error
Posted by maxvizel NO[at]SPAM bezeqint-dot-net.no-spam.invalid at 2/1/2005 2:55:50 PM
This problem bothers me for a long time:
I use WebClient.DownloadData in order to read text from an HTML
document this way:
WebClient c = new WebClient();
string html=
ASCIIEncoding.Default.GetString(c.DownloadData("http://www.test.com"));
When I run the code, I get this error message afte... more >>
MySql Data Read Problem?
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/1/2005 2:54:28 PM
I write a program for connecting to mysql database and read the values
that i want from the database so i wrote my code like this
RegistryKey uo =
Registry.LocalMachine.OpenSubKey("SOFTWARE\\Origin Worlds
Online\\Ultima Online\\1.0");
String folder =
uo.GetValue("ExePath").ToString... more >>
Page.IsPostBack
Posted by Tim at 2/1/2005 2:53:04 PM
To make !Page.IsPostBack to work, do I need to set any properties at page
level or in the config files(Web, machine) or aspx files. Because code in
under the !IsPostBack is executing twice and adding data twice to dropdown
list control.
any help please..Tim... more >>
ConfigurationSettings.AppSettings["mySetting"] returning null
Posted by Derrick at 2/1/2005 2:21:28 PM
I have a C# console app, MyApp, and am placing an application config file in
the same debug dir as MyApp.exe. I have named the file MyApp.config, and
MyApp.exe.config. I cannot read the <appSettings> entries in the file
though, I get null back for properties.
config file
<configuration>
... more >>
User Control Design
Posted by Dan at 2/1/2005 2:21:09 PM
All,
I have a windows form application. The form will host various user controls
that will implement an interface so that was new controls can be added later
without recompiling the hosting program.
The various controls will be displaying data that is stored in a SQL database.
My questi... more >>
what does this error means??
Posted by jam at 2/1/2005 2:11:01 PM
when I use admin account to run it, it is okay, but when I ause other
account, it gives this error....
please help~~~
thx
... more >>
MDI - disposing of child windows after a period of inavtivity
Posted by Paul Aspinall at 2/1/2005 1:59:38 PM
Hi
I have an MDI app....
All child MDI windows are non-updateable... however, the users may leave the
windows open... and there can be several of them.
I want to implement a system to dispose of MDI child windows after a period
of inactivity, in order to release resources and fire a garbage... more >>
Can DefaultPageSettings.PaperSource contain 3 seperate values?
Posted by trint at 2/1/2005 1:56:59 PM
When PrinterSettings.Copies fires, I need to somehow get it to select
three separate papersources...one for each of 3
defaultpagesettings.copies.
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.MaximumPage = m_numberOfPages;
printerSettings.MinimumPage = 1;
printerSe... more >>
GetValueONLoadEvent
Posted by rj at 2/1/2005 1:42:37 PM
I pass a bool to a form when it is created
public TFrmPurchaseOrders(bool ISNew)
{
InitializeComponent();
}
How can I access the value of ISNew, in the onload event of this form?
TIA
... more >>
Page Orientation HTML
Posted by Sean McKaharay at 2/1/2005 1:03:12 PM
Since no one can answer the following question:
I have a issue. I need to create a command line application/or windows
application that will take 2
parameters and will print to the default printer without any popups. the
first parameter is the html file name(location) second is a switch that w... more >>
Show data in from DataSet in TextBox
Posted by PawelR at 2/1/2005 12:58:25 PM
Hello Group,
Sorry my english is very little.
I have problem with show data from Table from DataSet in textBox.
In my apps I have "typed DataSet" myDS with table TabPerson [idPerson,
LastName, FirstName, Adres, telefon]
On Form I have dataGrid with one column form TabPerson - with LastName and... more >>
Records passed to unmanaged code!
Posted by Atmapuri at 2/1/2005 12:58:08 PM
Hi!
When records are passed by reference to unmanaged code
do they need to be pinned down explicitely or not?
I must have gone over this a dozen of times, but I am still
not sure about it. I know that records are also just
objects, but maybe CLR treats them differently.
Thanks!
Atmapuri... more >>
Column Expression helppppppppppppppppp???
Posted by perspolis at 2/1/2005 12:22:02 PM
hi everyone
I used a column expression like "UnitPrice*Quantity" for a cloumn named
Total.
but when I want to update my dataset by SqlDataAdopter, it gives me error.
The column Total is just for showing "UnitPrice*Quantity" not for
inserting in database,but I don't know why it gives me Syste... more >>
How does a class function without creating it.
Posted by Davinci_Jeremie at 2/1/2005 11:19:05 AM
Hi Newbee here to C# I have a simple questions...
In a Hello world example how does the class object Hello exist with out
creating it? I come from object pascal where everything object is created
then used. In object pascal you can call a method a "class" and it means you
can call it by t... more >>
Data is adding twice to the dropdown list under page load event
Posted by Tim at 2/1/2005 11:17:02 AM
I have block of code adding values to dropdown list under
if (!Page.IsPostBack)
{
adding items
}
else
{
refreshing data
}
return
even I am checking !Page.IsPostBack, once its reaches to return, again it is
going to top of Page_Load event and executing true part of If block. S... more >>
null
Posted by mp at 2/1/2005 11:16:17 AM
is this statement correct? if(nFld==null)
nFld = xmlDoc.SelectSingleNode(XPathFld);
if(nFld==null)
Thanks
... more >>
Link in listbox??
Posted by perspolis at 2/1/2005 11:09:08 AM
hi everyone
how can i show links in a list view or list box??
or show items in list box that be tender to Click event?
... more >>
C# class forward declaration, possible?
Posted by François Côté at 2/1/2005 10:39:02 AM
I'm generating a TLB from one of my assemblies that contains an interface
declaration. The class that implements this interface is in another assembly.
I import this tlb in my C++ code to create instances of my C# classes. The
problem I have is that I need to specify the class in my CoCreate c... more >>
Unspecified Error
Posted by Hin at 2/1/2005 10:38:29 AM
I often encounter the following when i try to view the form in VS.NET 2003:
An error occurred while loading the document. Fix the error, and then try
loading the document again. The error message follows:
Unspecified error
Anyone know the possible causes or how to fix this?
Thanks!
--
... more >>
Local Group that will allow a windows service to start?
Posted by Next at 2/1/2005 10:36:38 AM
I have a new domain account to use with my Windows Services.
The account name is WinServ.
I am trying to test my Windows Service on my XP Pro machine.
However the service won't start unless WinServ is a member of the Local
Admin group of my computer.
The only error message I get is "Acces... more >>
Migrating VB.net to c#: Private m_State(,) As Integer - What is it?
Posted by Juan at 2/1/2005 10:36:30 AM
I'm migrating a VB.Net app to c# and found the following:
Private m_State(,) As Integer
If anyone knows what is the analogous in c#... is it an array?
Thanks,
Juan.
... more >>
Silent Printing HTML
Posted by Sean McKaharay at 2/1/2005 10:33:57 AM
I have a issue. I need to create a command line application/or windows
application that will take 2
parameters and will print to the default printer without any popups. the
first parameter is the html file name(location) second is a switch that will
tell the app to print in landscape or protrai... more >>
Force Windows Service to stop running after exception is handled
Posted by David Hunt at 2/1/2005 10:28:27 AM
I'm developing a Windows Service and just added a standard try... catch
exception handler to its OnStart() routine. I would like to know how to
force the service to abort its startup when an exception is encountered. In
my current version, the exception handler logs the exception, but then the... more >>
ImageConverter
Posted by Falk Winkler at 2/1/2005 10:03:46 AM
Hi all,
how can i using the ImageConverter-class to convert a tiff Image to a jpeg?... more >>
Is this possible to do?
Posted by Sahil Malik at 2/1/2005 9:13:26 AM
Lets say .. I get a string ..
"System.Windows.Forms.TextBox"
Can I instantiate an instance of that .. given that the ONLY information I
have is that string above i.e. classname?
To make things easy, such a classname is in GAC.
- Sahil Malik
http://codebetter.com/blogs/sahil.malik/
... more >>
switch statement: Is it possible to include something like "Case var > 5" in a case statement?
Posted by Juan at 2/1/2005 9:00:18 AM
Launching Hidded .exe
Posted by Mike Gurba at 2/1/2005 8:45:02 AM
I would like to launch an application from a C# program, but I don't want
users to be able to launch the app themselves. The only way to run the
program should be to launch it from my C# application.I have looked at
embedding the exe in my program, but I don't think that's going to work.
... more >>
newbie question on events and methods...
Posted by Mark Reed at 2/1/2005 8:35:04 AM
I am self studying C# and the book I am using states:
Controls have properties that determine appearance, and they also have
events, actions that trigger a response.
It then goes into the next chapter saying controls also have something
called methods, which is something the control "DOES".... more >>
guaranteee automation kills_handle events
Posted by Devhead at 2/1/2005 7:39:45 AM
1) want to kill my automation server processes when i'm done with them.
i.e., want to make sure that my word and outlook processes that are
displayed in task manager are disposed of when i'm done. i set to null in
code but that doesn't kill process.
2) how do handle events in outlook and po... more >>
Question On Reference Types
Posted by thomson at 2/1/2005 4:16:50 AM
Hi All,
Probably it may be a dump question, But as iam in a learning
Phase, you have the right to ask these questions
Why we need Reference Types?
What is the advantage of that when compared to value types.
For eg: Class can be implemented using structures which is a value
type.
Thanks ... more >>
Null in DataGrid
Posted by tota at 2/1/2005 4:15:03 AM
i'm having a dataGrid & some values in it with value null
how i to be able to not display [Null] & make it empty in the dataview in
the dataGrid
regarding that the user may edit this data , how could i enable the user to
do so ?
... more >>
Delegates to proerty
Posted by Brian Keating EI9FXB at 2/1/2005 3:23:03 AM
hello there,
is it possible to have a delegate for a property?
... more >>
Stop menu popup when a Window's icon is clicked?
Posted by redneon at 2/1/2005 3:23:02 AM
Is it possible to stop the menu from appearing when you click the icon on a
Window's title bar? I'm wanting to use it as a button for a different
purpose. I've tried capturing all the messages that run through wndproc but
none of them relate to this menu.
Please help,
Darrell
... more >>
Can i use special characters in alert() JavaScript ?
Posted by Renato Vieira at 2/1/2005 2:45:03 AM
When i use special characters in a javascript alert() like 'ç' or 'ã', the
message is displayed white a blank square.
How can i avoid this?
thanks in advance.
--
Renato /*Portugal*/ Vieira... more >>
group box
Posted by jima80 NO[at]SPAM gmail.com at 2/1/2005 2:27:44 AM
Hello,
1)I wanted to know if there is a way to determine the size of a group
box according to the number of radio buttons being added to it?
2)Is there a way to access to the radio buttons (in code) via the
group box control?
Thank U veru much!... more >>
Class little dude...
Posted by Josema at 2/1/2005 2:19:03 AM
Hi to all...
I have a class with this properties:
private int id
private byte[] file
public int ID
{
get{return id;}
set{id=value;}
}
public byte[] File
{
get{return file;}
set{file=value;}
}
When i instance the object i can obtain the Id from database but i would
lik... more >>
Process Hanging
Posted by Samantha at 2/1/2005 1:33:03 AM
Hello ,
I am developping a program for Win98 plateform, and I am stucking with a
problem, hope you can help me.
I have a program running 2 process :
- One process running the Xcopy.exe
- When the first process is finished, it runs another Exe process (HHC.exe)
The code is below:
... more >>
Process Hanging
Posted by Samantha at 2/1/2005 1:17:03 AM
Hello ,
I am developping a program for Win98 plateform, and I am stucking with a
problem, hope you can help me.
I have a program running 2 process :
- One process running the Xcopy.exe
- When the first process is finished, it runs another Exe process (HHC.exe)
The code is below:
... more >>
Application blocks after Alt tab
Posted by m.verheye NO[at]SPAM televic.com at 2/1/2005 1:14:17 AM
My application runs correctly and gives no errors, but when i swap to
another program by "Alt-Tab" or taskmanager my application blocks. I
have no more click events in my application.
If anyone can help, thanks, Marino... more >>
Exception problem
Posted by gh at 2/1/2005 12:47:46 AM
Hi,
Is it true that the CLR sometimes can't throw the run time
exception? Cause I have just encountered a problem that my program has some
unexpected behaviours. After adding try-catch block to many pieces of code.
It catches an array index out of bound exception. I am using VS.Net ... more >>
Serialization will not deserialize delegates to non-public methods error
Posted by Rene at 2/1/2005 12:34:40 AM
I created a class (SomeClass), on that class, I declared a delegate (OnXyz)
and then declared an event based on that delegate (Xyz). All this in the
same class. After that, I created another class where I instantiate my
previous class (SomeClass) and attach to its event like this:
someObjec... more >>
System.Management
Posted by DAMAR at 2/1/2005 12:29:01 AM
I need help to System.Mangement namespace. MSDN documentation is not
exhaustive:(. f.e hwere is written how to correctly put
WqlEventQuery.EventClassName? How should I bbuild that string? I just looked
on MSDN, but nothing's there....... more >>
constructor / destructur
Posted by Thomas at 2/1/2005 12:10:33 AM
I'm new in csharp.
I create a SortedList with new objects.
I don't use this SortedList and their objects any more.
Have I to set all objects in the destructor to null?
Or do it the .Net framework for me?
Thanks Thomas
... more >>
|