all groups > c# > may 2006 > threads for monday may 22
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
Deleting directories!
Posted by Lee at 5/22/2006 9:57:04 PM
Hi,
when deleting a directory using;-
string dir = "whatever";
Directory.Delete(dir);
it fails if files/directories exist within the directory being deleted. is
there an easy way of deleting the directory and all contents without having
to recurse through the entire directory deletin... more >>
Can't convert VB.NET code to C#
Posted by Ronald S. Cook at 5/22/2006 9:18:21 PM
I have the following few lines of code that run just fine in my VB.NET Web
app. But I can't seem to write equivalent code that will run in a C# Win
app. I even tried a couple of those "code converter" websites out there and
they didn't seem to help. Can anyone offer any assistance?
D... more >>
Write COM Object in C#
Posted by MR at 5/22/2006 8:39:27 PM
i am developing a client C# application that utilized a legacy COM object.
For development, I cannot use the object because it has specific hardware
requirements. Therefore i would like to write a stub or "emulator" for this
COM object, preferably i C# but C++ or VB.NET would work too.
The i... more >>
try...catch in constructor
Posted by Martijn Mulder at 5/22/2006 8:19:36 PM
Is it good style to use a try...catch clause in the constructor or is it
something that is frowned upon?
... more >>
Query
Posted by Vishal Gupta at 5/22/2006 6:47:46 PM
Hi
Does anyone has an idea or know about control which could produce this?
Actually my requirement is that I need to create a dynamic web page (eg say
new vendor registration form) in which all the fields are configurable which
can be picked up from a Database or an XML file.
Vishal
... more >>
Exit Sub in C#
Posted by Tina at 5/22/2006 6:07:22 PM
In vb.net to get out of a sub or a function we can say Exit Sub. How can I
get out of a void method in C#. I can't find that documented anywhere.
Thanks,
T
... more >>
Rowfilter Greater Than and Less Than
Posted by RR at 5/22/2006 5:07:01 PM
Is it possbile to use > and < in rowfilter string?
I have a rowfilter on a dataview and I'm able to filter on values with equal
( = ) but when I try to use a comparison using > and < it does not work.
I'm reading an XML file into a DataTable and then create dataviews from that
dataTable. ... more >>
make Internal access more logical and less physical
Posted by Mountain at 5/22/2006 5:02:39 PM
If a large framework (or library, application, etc.) has optional parts
and some users may not want all parts, it would make sense to break the
framework into separate physical assemblies. However, if internal
access is specified in the monolithic framework, a problem arises
because changing int... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
passing generics in a function?
Posted by A. Burch at 5/22/2006 4:56:10 PM
Is it legal to pass a generic object as a parameter, like the following
function is trying to do Queue<int>q. Please see the URL with the entire
example and can someone tell me why this doesn't compile and how to fix it:
private static void ShowQueueContents(Queue<int> q)
{
lock (((ICol... more >>
Multiple form designs with same code
Posted by emaileric NO[at]SPAM gmail.com at 5/22/2006 4:07:21 PM
Hi all, I am looking for a way to create two different forms, with
different look and feel. However, they would both have the same set of
controls, and reference the same code behind page. I would also like
to be able to switch between which form is displayed to the user
through the C# code. ... more >>
evaluating rules, resolving conflicts.
Posted by ian at 5/22/2006 4:02:13 PM
Imagine a system where you could say:
"blue cars have white seats"
"Cars with white seats have black stitching"
"Red cars have white seats"
"Red cars cannot have black stitching"
"Red cars with four seats can have black stitching"
I've a solution which will cope with the above, but I can't h... more >>
Using "net use" in Console application
Posted by SF at 5/22/2006 3:58:58 PM
How can I call a "net use" command from within my application? I need
to dynamically connect to some remote shares.
Thanks,
Matt... more >>
Check wheather other apps have opened a certain file
Posted by Benjamin.von.Ardenne NO[at]SPAM googlemail.com at 5/22/2006 3:21:21 PM
Hi guys,
just to keep it short and simple - I'd like to "monitor" a file that is
opend in Word e.g. and wait for it to be closed but I didn't find a way
to check the current access state of a file and maybe a list of thread
which are accessing that file. The best way would be to have an event
r... more >>
Connection Timeout
Posted by Kevin at 5/22/2006 2:49:34 PM
Hi
How can i decrease the timeout on Socket.Connect??
Thanks =)
... more >>
RTF Textbox
Posted by Patrick F at 5/22/2006 2:20:03 PM
Hi,
I got a Richtextbox in my program, is there a easy way to create a new
line with a font size that i want and a spicific color?
like:
rtfbox.AddTextToNewLine("test1", Color.Red, Size.12, Font.Bold, other
options here);
rtfbox.AddTextToNewLine("test2", Color.Blue, Size.10, Font.Italic,... more >>
Noob question
Posted by Dan McCollick at 5/22/2006 1:54:11 PM
Hi All,
Noob question that I can not seem to figure out:
I am trying to implement a screenscraper to pull data from two seperate
websites, here is some test code so far:
public static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatible... more >>
How do I delete multiple files?
Posted by Mateusz Rajca at 5/22/2006 1:46:02 PM
Hi!
How do I delete multiple files in C#? I would like the specific code.
Thanks!
Matt... more >>
query DataSet
Posted by DG at 5/22/2006 1:25:17 PM
I have a copy of DB in my dataset (just rows that i need ofcourse).
I'd like to create a view. (connectiong tables via Foreign Keys, and getting
columns that i want)
Is there a way to query dataset, or should i go to database for that.
(i was hoping to save myself trip to DB, cause all datata ne... more >>
Reboot the computer.
Posted by UJ at 5/22/2006 12:42:06 PM
How can I programmatically reboot the machine? I don't want to just shut it
down, I want to actually reboot it.
TIA - Jeff.
... more >>
Application to download?
Posted by Scirious at 5/22/2006 12:33:17 PM
People, is there a place to download applications written in C# so I can
feel how a software written in it works?
Thanks
Scirious.... more >>
Access to EventLog on remote computer
Posted by bartlomiej.szafraniec NO[at]SPAM gmail.com at 5/22/2006 12:08:14 PM
Hello!
How I can gain access to event log on remote machine?
Computers are in the same network but they are not in domain, they are
only in the same workgroup.
I've tried MachineName property in EventLog class but I get
exception.
I know administrator password on remote computer but how can I ... more >>
Adding MessageBox to my aspx page
Posted by VMI at 5/22/2006 11:46:02 AM
I know this isn't the best group to post aspnet question, but the MS asp.net
NG hasn't been very helpful lately.
I've been trying to add a messagebox following the examples I've seen on the
web, but with no luck.
I have an aspx page where the user enters a bunch of data and clicks
'Submit'. ... more >>
Print in text mode
Posted by osmarjunior at 5/22/2006 11:29:19 AM
I read some messages in the group about printing in text mode.
The PrintDocument class didn't solve my problem, because it prints in
graphic mode.
I have a matrix printer, and printing in text mode is too much
faster...
What options I have to print in text mode in C# ???
Thanks.
Junior.... more >>
SortCompare of DataGridView - how to?
Posted by Chris Botha at 5/22/2006 10:40:39 AM
VS2005 and I have a DataTable displayed in a DataGridView that needs custom
sorting, with the DataSource of the grid set to the DataTable and the
SortCompare event just won't fire.
Then I found this in the docs "This event occurs only when the DataSource
property is not set and the Virtual... more >>
Size of the connection pool?
Posted by Frank Rizzo at 5/22/2006 10:07:51 AM
What is the default size of the ADO.NET connection pool? I can't seem
to google the answer.
Thanks.... more >>
Exec Stored Proc (C#) - the Size property has an invalid size of 0
Posted by daz_oldham at 5/22/2006 9:57:30 AM
Hi All
I am trying to execute a stored procedure that does a very simple
lookup and returns a text field. However, when I try to execute it, I
am getting a rather strange error that I can't seem to fix!
There is defiantely information coming back as I have tested this in
Query Analyzer. Th... more >>
Winforms threads UI not responding
Posted by vdahiya NO[at]SPAM gmail.com at 5/22/2006 8:49:09 AM
Hi All,
I am using winform threads and I have craeted a new thread to perform
soem lengthy operations asynchronously.
My problem is that while this operation is being performed i am
updating the window status bar to display the status of the operation.
But as soon as the window loses the focu... more >>
Dropshadow effect on controls not form
Posted by Vahid Dadashzadeh at 5/22/2006 7:38:11 AM
hi,
can anyone tell me, how i can create Dropshadow effect for certain
control that i've written in c# ?
note ,control that i've written myself not c# controls or even windows
forms.
... more >>
thread ? elapsed time
Posted by Audrey at 5/22/2006 7:09:48 AM
Please why when I write :
while(1){
Console.writeln("date= {0:HH:mm:ss.ffff}", DateTime.Now);
System.Threadind.Thread.Sleep(40);
}
I obtain
date= 16:04:35.6250
date= 16:04:35.6718
date= 16:04:35.7187
date= 16:04:35.7656
....
Instead of :
date= 16:04:35.0040
date= 16:04:35.0080
date= ... more >>
Regex
Posted by lavu at 5/22/2006 6:27:11 AM
I am trying to form a regex to search my string and give me substrings
follwing the pattern that it
split the string at every occurence of hyphen - character but not if a
\ precedes it.
ie. if a string is like this:
-xyz -rer\-er -fgg12\-33
I want to get foll. substrings using the regex.... more >>
Application executed at given time
Posted by mamin at 5/22/2006 6:21:02 AM
I need to write application, which checks the time and executes some
method when the current time is 11pm.Moreover, I need to keep the time
parameter in App.config file. My question is, how to do it ellegant?
Now, my sourcecode looks as follows:
App.Config file:
<add key="ProcessKillingTime" ... more >>
ListView Scrollbars
Posted by ohadasor NO[at]SPAM netvision.net.il at 5/22/2006 6:20:32 AM
Hi All,
I have a ListView control, and I need it to have only vertical
scrollbar, not horizontal. How can I do that? The only way I found to
control its scrollbars is using ListView.Scrollable, but this applies
only to both scrollbars.
Thanks!
... more >>
sndPlaySound function problem
Posted by Ansh at 5/22/2006 5:50:27 AM
i want to play a .wav file using sndPlaySound and PlaySound function
but both function doesn't works in the expected way... i just hear a
click sound after execution of these functions.... not the original
recorded sound of .wav file.... on the other hand when i make use of
wave functions to pla... more >>
redirect Console.WriteLine to a textbox
Posted by alex at 5/22/2006 5:39:27 AM
Hi,
I have several classes, which i use in my windows application.
The classes uses console.writeline to print status information.
Now i have a log-textbox in my windows application and i want
that the console text appears in this textbox automatically when
the other classes writes to console.
... more >>
Writing a service and GUI
Posted by songstre at 5/22/2006 5:22:35 AM
I would like to write a service that handles certain tasks fro a third
party back end. There is an API for the back end that I can use to
accomplish this, but there are certain calls I have to make to the API
that put up a UI. There is no way to aviod the UI, but if write the
service will it cra... more >>
Why main() inside form class?
Posted by Boki at 5/22/2006 3:30:25 AM
Hi All,
When we delacre a main, why we dlacre it inside form?
Why not outside of form?
If form contains main(), why not every form contains a main()...
Best regards,
Boki.
... more >>
Copy Word files between web locations.
Posted by JohnSouth at 5/22/2006 1:48:27 AM
Hi
I've a C# application that needs to copy files between remote web
locations (http:// or https://)
I can copy XML files using WebRequest/WebResponse OK, but Word
documents do not arrive as valid documents. The problem seems to be in
ascii encoding.
My question is can I use WebRequest/W... more >>
grid view and datagrid
Posted by Mike P at 5/22/2006 1:44:19 AM
I want to be able to replicate this datagrid code for a gridview.
Basically I need to set the colour of my link buttons and set the text
depending upon the value of a text box :
public void dgUserList_ItemDataBound(object sender,
DataGridItemEventArgs e)
{
//First, make sure we're NOT d... more >>
Overriding Methods
Posted by arlef at 5/22/2006 12:00:00 AM
Hi,
Is there a wizard or something that helps with overriding methods? For
Instance, I want to override the paint method of a Windows.Forms.Panel. do
I have to manually type the override paint method?
Regards
Jame
... more >>
Databinding checkbox <-> MyClass.Bool
Posted by Rainer Queck at 5/22/2006 12:00:00 AM
Hi NG,
in a dynamically created tabpage I have a checkbox, which with its "Checked"
is bound (DataBindings.Add) to a bool property of one of my classes.
I realized, that the bool property of my class only gets updated if the
checkbox looses the focus.
Is there a way to forward the "Checke... more >>
Change object's name
Posted by George Varelas at 5/22/2006 12:00:00 AM
Hi.
How can I change an object's name after I have created. For example I create
an array as following
"int[] mArray = new int[4]"
How can I change the name "mArray" and derive it from a combination of
strings?
Thanks
George
... more >>
development tools
Posted by Peter Kirk at 5/22/2006 12:00:00 AM
Hi there
I am looking for various .net/c# "productivity tools" (or whatever the
generic term might be). Things which help in program development - if it is
a refactoring system, or "code checker", or things like Spring framework,
NUnit, NHibernate for example.
If anyone has any ideas or... more >>
IIS error
Posted by Jessica Weiner at 5/22/2006 12:00:00 AM
I get the following error when I try to load a website that I created using
Visual Web Developer Express:
You are not authorized to view this page.
You do not have permission to view this directory or page using the
credentials you supplied.
---
I am using .NET 2.0 and its not working ... more >>
pls create a sample for me on how to use System.Reflection.PropertyInfo
Posted by NO[at]SPAM NO[at]SPAM Worker at 5/22/2006 12:00:00 AM
can someone write a sample here?
thanks
"Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> дÈëÏûÏ¢ÐÂÎÅ:%23VUjBemeGHA.1204@TK2MSFTNGP02.phx.gbl...
> Use the system.Reflection namespce, specifically, the PropertyInfo class.
> For details, see:
>
> http://msdn2.microsoft.com/en-us/library/sy... more >>
User control and RadioButtons
Posted by alberto at 5/22/2006 12:00:00 AM
If you place a RadioButton in a user control, it won't be exclusive with
others radio buttons in a form because its parent is the user control, not
the form.
How can you solve this?
Thank you
... more >>
|