all groups > c# > may 2006 > threads for wednesday may 10
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
blocked form
Posted by Stefano at 5/10/2006 10:35:52 PM
Hi All,
I have a Form1 that includes a menu.
When I open a Form2, using the menu, the use of Form1 must be blocked. As
can I do that?
Thank you
... more >>
Abstract Class Design
Posted by thomson at 5/10/2006 10:29:55 PM
Hi
Some design queries on Abstract Class
abstract Class thomson
{
abstract void MyMethod();
virtual void NewMethod()
{
}
}
When in the base class i extend the above Abstract class , you have to
implement the MyMethod , and may be you can override the... more >>
sample program to connect mysql server by using odbc
Posted by shun at 5/10/2006 10:24:58 PM
Hello,
I need an sample program to connect mysql server by using odbc.
thanks in advance
... more >>
Question about namespaces.
Posted by Peter Kirk at 5/10/2006 10:20:15 PM
Hi,
there is a logging service called "log4net". It uses namespaces such as
"log4net" and "log4net.Appender".
If I am writing my own software, would it be considered bad style to use
namespaces like log4net and log4net.Appender in my own code (given that
log4net is well-known product)?
... more >>
Process continues to run after Application.Exit()
Posted by cweeks at 5/10/2006 9:04:05 PM
When the user clicks on my Exit menu command I call Close() followed by
Application.Exit(). The GUI goes away as expected but the process is
still listed in Task Manager. What do I need to do to really terminate
the process?
... more >>
Version Checking
Posted by Sachi at 5/10/2006 6:32:02 PM
Hi,
I got a client and Server.
Whenever Client click the button "Check for Updates" it will be querying
Server for updates.
Since Server support many versions, it have a list of versions it supports.
Now my question is what is the best way to compare client version with
server ... more >>
C# Intellisence different that VB?
Posted by Tina at 5/10/2006 6:11:21 PM
I'm a VB.Net developer trying to learn C# but there are some strange
differences that none of the books or articles I have cover. For
instance....
SqlConnection connCP = new SqlConnection();
connCP.
When I type that last period in VB, Intellsense shows me all of the
properties, metho... more >>
Create EMF with rotated text that is editable in office
Posted by Tilo Pätzold at 5/10/2006 6:00:38 PM
Hi Everybody (especially Microsoft),
we build EMF files with rotated text for export to office (powerpoint,
word). It is planned that the text can be edited in the office document.
Without the rotate transformation the text stays as a block and can be
edited in the office document after ungr... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
BeginInvoke and Callback
Posted by Joe at 5/10/2006 5:53:55 PM
In the callback I need to call an event letting the calling form know that
the operation completed. If the operation fails, the main form needs to show
another form. The problem I get is when the Callback returns it hangs the
app.
Here's the callback:
private void Callback(IAsyncResult ar)... more >>
Using out parameter in Dll method calls from C# appl. to C# dll
Posted by Gunnar Frenzel at 5/10/2006 5:21:35 PM
Hello,
I have an application and dll both written in C#. The application uses methods and properties in the dll which works
fine so far, but I wasn't able use out parameters in methods call. I use the following structure to call the methods:
Assembly asmblyDll = Assembly.LoadFrom("theDll.dll")... more >>
UI-less user control
Posted by Michael Debus at 5/10/2006 5:09:46 PM
Hi
I want to create a ui-less user control which appears in the designers tray
area (like timer-control) using VS2005.
I figured out how to bulid user-controls with ui, but dont know the best
practice for buliding ui-less controlls.
Somebody con help ?
Thanks
Michael
... more >>
Hooking into the Window DUN API from C#
Posted by Chris Crowther at 5/10/2006 4:44:26 PM
Hi All,
Does anyone know if it's possible to hook into the DUN API from C#?
Any pointers in the direction of info would be appreciated as well :)
--
Chris Crowther
Developer
J&M Crowther Ltd... more >>
Windows form as an abstract class?
Posted by diatom NO[at]SPAM newsgroup.nospam at 5/10/2006 4:29:03 PM
Is it possible to create a windows form as an abstract class?
Let me explain ...
I am writing a windows applciation where I will need around 100 dialogs -
each with a similar look, feel, and functionality (or controls) - but all a
little different.
Thus, if I create a windows form as an... more >>
File - New - Web Project
Posted by inpuarg at 5/10/2006 3:56:57 PM
File - New - Web Project (or web site item ) disappeared suddenly :)
I am using vs 2005 professional edition , IIS etc. services are working fine.
Other items lest on this menu are :
Project
File
Project From Existing code.
3 daysa ago there was another item. how can i get it back ?
... more >>
Debug console window?
Posted by Daniel at 5/10/2006 3:27:19 PM
Hi
I would like to view certain variables during run time and find the
Console.WriteLine which write to the visual studio command window not very
useful, either i cant see what is displayed until after my app finishes or i
cant see it a all.
I therefore want to make a command window (you... more >>
VS2005 IDE question adding overrides
Posted by Sagaert Johan at 5/10/2006 2:29:26 PM
Hi
In VS2003 when browsing te class view window it was easy to add an override
to the sourcecode .
I do not see this functionality in VS2005 ?
Cant find it in the help either.
... more >>
Membership Class Error VS2005
Posted by Vishal Gupta at 5/10/2006 2:27:35 PM
Hi
This is Vishal this side.I have been trying to create a new sample website
using the new Membership Provider Class.
Now when I try to a create a new website and then hit on the Website
Administrator Tool and then hit on Security I get this error
"There is a problem with your selecte... more >>
Customization In Web Application
Posted by Andrew Hayes at 5/10/2006 2:13:22 PM
All,
Using VS 2005, C#.NET, SQL Server 2005, W2K3.
We are developing a web application that would be shared by numerous
customers for information management. Some of those customers want
variations on the usual form layout.
For example, we have a form where the user can enter their depe... more >>
Problem moving/deleting file after SaveAs()
Posted by Dylan Parry at 5/10/2006 12:53:10 PM
Hi,
I'm trying to upload some files via a form, and I have managed so far to
save the files on the server in a temporary directory using:
HttpPostedFile.SaveAs(string filename);
This is a necessary stage as I need to perform some tests on the file
before allowing it to be saved to its... more >>
Use Ghostscript from C#
Posted by Sjaakie at 5/10/2006 12:30:02 PM
Hello,
Can someone tell me if it is possible to use Ghostscript from C#?
I would like to create thumbnails from several PDFs.
TIA... more >>
Problem with RAS
Posted by CalvinRodo at 5/10/2006 12:25:41 PM
for some reason I continually get an invalid structure size when I call
RasDial. here is a little code snippet I would really appreciate it if
someone could give me a hand with this, I'm stumped.
Here is the structure that keeps giving me the error:
[StructLayoutAttribute(LayoutKind.Sequential... more >>
Edit and Continue not working?
Posted by Brett Romero at 5/10/2006 12:06:38 PM
Are there special conditions under which Edit and Continue works? I
always get this message:
Changes are not allowed while code is running or if the option 'Break
all processes when one process breaks' is disabled.
I have the above option checked. Any suggestions?
Thanks,
Brett
... more >>
Programmatically initiate a drag and drop operation
Posted by benkial NO[at]SPAM hotmail.com at 5/10/2006 12:04:33 PM
I am writing a small GUI tool in C#, and I want to experiment some
fancy trick as follows: when the user click on a "OK" button, the code
will initiate a "Drag and Drop" operation in the GUI itself to itself
(i.e. drag some fake object and drop to the tool itself).
I am new to .Net programming... more >>
Bitmap.Clone
Posted by John J. Hughes II at 5/10/2006 12:02:04 PM
The following code throws a out of memory exception, I have another function
that does the same thing using the bitmap lock but its way slow. Anyone
know how to fix this one?
public static Bitmap GetClonedBitmap(int width, int height, string str, Font
font, StringAlignment Alignment)
{
... more >>
Get the time of a remote computer. How?
Posted by A.Neves at 5/10/2006 12:01:33 PM
Hi,
I'd like to have a function returning the current time of a remote computer.
How could I do this?
Thanks.
... more >>
Thread-safe call to a webbrowser control
Posted by RobKinney1 at 5/10/2006 11:53:02 AM
Please, can someone please tell us how to call a webbrowser control
(navigate2 or navigate) from a worker thread safely?
I have stepped through tutorials on the web about delegated calls and invoke
methods but they don't make much sense to me... and all of them seemed overly
done just to ... more >>
Remoting TcpChannel Timeout ? ?
Posted by Sagaert Johan at 5/10/2006 11:30:54 AM
Hi
When the remoting server starts and the client immediate begins calling the
remote object on the server no problems.
But when the client does not need to access the remote object for some time
the connection seems to be broken on the next attempt to do a call to the
remote object on the s... more >>
C# constructors annoy me!
Posted by Peter Morris [Droopy eyes software] at 5/10/2006 11:20:15 AM
Look at these two classes
public class Test
{
public readonly string Name;
public Test(string name)
{
this.Name = name;
}
}
public class Test2 : Test
{
}
What annoys me is that trying to execute the following code gives me an
error that Test2 doesn't have a ... more >>
assemblies
Posted by Vikas Kumar at 5/10/2006 11:07:39 AM
what are static and dynamic assemblies
with differences between them
... more >>
C# VBA DLL issues
Posted by temporalis NO[at]SPAM gmail.com at 5/10/2006 11:01:03 AM
[I've also asked this question in
microsoft.public.dotnet.languages.csharp, and
microsoft.public.excel.programming. If there is somewhere else that
may be able to help, please point me in the right direction!]
I've created a DLL in C# (VS2005, using .NET framework 2.0) for use
with Excel XP ... more >>
loading a treeeview from Database
Posted by Medes at 5/10/2006 10:52:01 AM
Hi,
I am trying to load my items from Database to a Treeview but i have faild
My table contains id, parentId, nodeName like following:
(1 , 1 RootNode)
(2 , 2 , ParentNode)
(3, 2 , Child_for_2)
(4, 4 , AnotherParent)
(5 , 2 , anotherChild_for_2)
(6 , 4 , Child_for_4)
M... more >>
FileSystemWatcher and FTP
Posted by Red2 at 5/10/2006 10:37:21 AM
Hi all,
I have a little problem. I'm watching a directory on a server for
a FTP file to come in. I'm using FileSystemWatcher to catch the file
create event. Most cases this work fine. However sometimes when the
FTP is slow I get a error because another process is using the file.
This is ... more >>
Control for Sql Connection?
Posted by someone at 5/10/2006 10:24:41 AM
Hi all,
I need to let the users of my windows app select the Sql Server and
database they want to connect to and enter their Sql userid and password. Is
there a control available either in Visual Studio 2005 or by any third party
vendors to do this?
Thanks in advance.
... more >>
Locating A Control's Variables In v2005 Debugger
Posted by Gary Brown at 5/10/2006 10:22:22 AM
Hi,
Is there a resource that lists where a control's variables are put?
VC puts data such as a ListView's Items in fields that bear no
resemblance to the programmer's view. After documenting
them for V2003 I am in the same boat with V2005. MS has
done an even better job of hiding them in V2... more >>
Visual Studio and on-access scanning
Posted by Mantorok at 5/10/2006 10:20:38 AM
Hi all
Does anyone here have to use VS on a machine that has "on-access" virus
scanning?
We have Read/Write scanning turned on on our desktops and we're pretty sure
that it is killing VS and pretty much any other app. We use VS at home and
it's blistering, and our machines at home are a... more >>
OT: vstudio 2003 cannot open/create C# projects [REPOST from vstudio.general]
Posted by Helge Jensen at 5/10/2006 10:14:13 AM
[After having no replies in vstudio.general trying a repost in
languages.csharp]
I'm looking for som help on what is wrong with my installation of
VS2003, which cannot open/create C# projects.
After a HD-crash I have re-installed visual-studio 2003. I have used The
visual studio-installer,... more >>
Integrating CR from other versions into VS2003 ASP.NET application
Posted by Carlos Lozano at 5/10/2006 10:08:02 AM
My customer has many CR created using other CR versions than the one in VS2003.
I have been trying to do it, but keep getting errors. It seems I can't
override the report settings like reportsource, and others.
Is there a way to integrate those reports in a ASP.NET application without
recr... more >>
Commercial Apps Using C#
Posted by mad NAT'er at 5/10/2006 9:41:54 AM
Can any one give me a few examples of commercially available apps written in
C#?
... more >>
forms error
Posted by RobcPettit NO[at]SPAM yahoo.co.uk at 5/10/2006 9:14:44 AM
hi I get an error saying namespace Form1 not found and Error 4 Argument
'1': cannot convert from 'Form1' to 'System.Windows.Forms.Form' I:\My
Documents\Visual Studio 2005\Projects\Betting Monitor\Betting
Monitor\Program.cs 18 29 Betting Monitor in the code
using System;
using System.Collections... more >>
Question about interfaces
Posted by mortb at 5/10/2006 9:11:01 AM
Why can't you place static methods in an interface?
For example, if I want an uniform manner to create instances of classes that
implement my interface I'd like to put a static factory mehtod in the
interface. However, this is not possible as the interface does not allow
static memebers.
I... more >>
Need some help on Cross-Platform Cryptography
Posted by Manivannan.P at 5/10/2006 9:00:02 AM
Hi,
Am trying to implement a encryption-decryption system beween, Windows and
Linux. and am planning to implement it in .NET.
Please guide me and suggest some references.
Thanks.... more >>
Naming structs with a variable
Posted by Marty at 5/10/2006 8:27:50 AM
I am new to C# and to structs so this could be easy or just not
possible.
I have a struct defined called Branch
If I use Branch myBranch = new Branch(i); // everything works
If I use Branch (myBranch + x) = new Branch(i); // it doesn't
x is a loop iterator, i is an int for the constructor to ... more >>
accessing member variables directly vs property accessor
Posted by TS at 5/10/2006 7:51:47 AM
is it preferred to access member variables directly in code, on the page
that declared them, versus going thru a property accessor? I would think
that since theres no security concerns or anything it would be more
efficient to access directly. I also don't think that you would need to do
any... more >>
Byte arry to text for textbox
Posted by tawright915 at 5/10/2006 7:34:56 AM
I want to convert a byte array to a string or text to write it out in a
multiline textbox. I've tried encoding, and converting but end up with
nothing in the textbox.
The strange thing is that it writes out fine to a text document using
StreamWriter.
So I have this tcp/ip app that receives... more >>
create a shared folder does not work in inetpub
Posted by jzdeng NO[at]SPAM gmail.com at 5/10/2006 7:29:10 AM
Hi, All
I use VS 2005 to create a web service. The web service is used to
create a sheared folder. It works fine we I run it from VS 2005. But,
when I move it to inetpub, it does not work (folder is created but is
not shared).
Does anyone know how to solve this problem?
Thanks.
... more >>
C++ DLLs in C#
Posted by Rob at 5/10/2006 7:03:03 AM
Hi, what I'm working on right now is putting my old C++ code into a DLL, and
accessing it from a C# application... but I'm running into some problems.
I need to pass and receive strings from the DLL, but the data isn't comign
through right. Here's a little test I made:
In the DLL:
bool __... more >>
MemoryStream() method show Exception
Posted by Neeraj at 5/10/2006 6:28:13 AM
hi
i am working on dicom image.this is code which gives exception on
"System.Drawing.Image imgInFile = System.Drawing.Image.FromStream(new
System.IO.MemoryStream(destPixels ) "
..The exception is "System.ArgumentException: Parameter is not valid."
could any body help me
i am waiting for help
... more >>
How to set language for Exception.Message?
Posted by martin at 5/10/2006 5:36:03 AM
Hi,
All my exceptions keep showing up in Swedish which makes them more or less
impossible to understand because (1) googling for the swedish error message
typically gives you zero hits, and (2) translations of exceptions in package
X seem to be made by someone that does not fully understand... more >>
Design Question Interface
Posted by thomson at 5/10/2006 4:12:25 AM
Hi
I do have an Interface, which is implemented in lot of places, My
question is i observed that After quite some time if i need to add a
new method in the interface , i need to do a lot of rework in lot of
places , So i do see a flaw in my design, How best we can avoid this
situation
Tha... more >>
Parse a tagged value string
Posted by Steven Blair at 5/10/2006 4:08:31 AM
I have the following string:
<CardDetails>4561</CardDetails><Message Identifier>1</Message
Identifier><TID>88888888</TID>
I need to be able to extract the values from the tags easily in C#.
Being able to search through this string at any point for a partiuclar
tag would be useful.
Can ... more >>
table.rows.find problem
Posted by Derek at 5/10/2006 3:40:02 AM
The following code never finds a matching row even when one exists. It
appears that the method thinks there is only one value being passed to the
method even though the object array that is passed has 2 elements, and both
elements have values.
Any ideas?
if ((dsReturned.Tables.Count > 0)... more >>
ansi c code in c# class
Posted by Marek at 5/10/2006 3:32:54 AM
Hi, I'm developin windows forms app in c#. I would like to use Ansi C
algoritm in one of method of my app. Can I do that?
... more >>
TextRenderer problem
Posted by Xafier at 5/10/2006 1:39:28 AM
Hi,
I'm creating a control that overrides ListView and so I'm working on
redrawing everything myself with some changes here and there...
But I'm having a problem with drawing the text inside the rectangle on
LargeIcon mode... I thought I'd finally discovered the solution with
TextRenderer b... more >>
Thread Name in Output window
Posted by Gunnar_Frenzel NO[at]SPAM web.de at 5/10/2006 1:08:29 AM
Hello,
I have an application running some threads which all get a name using
the Name property. In Visual Studio 2003 when a thread exited the name
is displayed in the "The thread foo has exited with code " when the
threads name was set to "foo". Now in Visual Studio 2005 the message
always use... more >>
|