all groups > c# > november 2003 > threads for saturday november 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
Setup Project: Backup Files
Posted by Amy L. at 11/8/2003 11:27:40 PM
I have a project that is deployed using a MSI. When the user attempts to
install a new version of the program I require them to remove the existing
version first.
Is it possible to do the following
1.) Instead of having the user remove the program from the "add/remove
programs menu" have my ... more >>
How to convert a non-seekable Stream to Byte Array?
Posted by Hardy Wang at 11/8/2003 10:50:43 PM
Hi all:
The Stream object from WebRequest.GetResponseStream() is non-seekable.
How can I convert this stream to a byte array?
For ordinary Stream (seekable), I can use StreamObject.Read(myByteArray,
0, myLength)
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
... more >>
/debug:pdbonly in a C# project
Posted by zee at 11/8/2003 10:04:11 PM
Hi,
Is it possible to specify /debug:pdbonly somehow in a C# project, or I must
resort to writing custom build scripts?
My problem is when I set Generate Debug Info to True, DebuggableAttribute
(true, true) is added to the assembly, which is VERY undesirable.
If I try to override the Debu... more >>
OnInitDialog!?
Posted by Mehdi Mousavi at 11/8/2003 9:31:43 PM
Hi there,
I need the equivalent MFC's OnInitDialog in C#, so that I can handle any
initialization procedure there, and if something goes wrong, I could dismiss
the dialog (by returning false, or the like).
Any help would be highly appreciated,
Cheers
--
Mehdi Mousavi - Software Architect... more >>
unregistering events
Posted by Saso Zagoranski at 11/8/2003 9:22:56 PM
Hi!
How can I unregister all the events registered to a control?
I have seen a piece of code in another thread, which gets all the registered
handlers for a specific event.
Let's say I have a CustomTextBox : TextBox, which has quite a lot of
events...
Do I put unregistering code for all th... more >>
Coide complete issues?
Posted by Kerry Sanders at 11/8/2003 9:02:09 PM
I am seeing some weird behavior in the editor and with code completion. I wrote
the following code just a few minutes ago:
private void menuItem1_Click(object sender, System.EventArgs e)
{
SaveFileDialog sf = new SaveFileDialog();
sf.DefaultExt = "xls";
... more >>
debug
Posted by teddy at 11/8/2003 8:25:28 PM
I am having a crisis with vs.net 2003. I am using c# and i
am running my program and i get the following dialog box
out of the blue. "Visual Studio cannot start because the
debug target c:\.....\calendar.exe is missing.Please build
the project and retry. The *.pdb file is there and i
rebui... more >>
Dial-up support in .NET?
Posted by curt at 11/8/2003 8:00:01 PM
Can anybody tell me whether there is support for dial-up
connections in .NET? I am using c# and would like to
setup and manage a call. In the olden days I used
RasDial, is there a .NET equivalant or other method?
Thanks for any information,
curt... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Combo box always focused ?
Posted by Michael A. Covington at 11/8/2003 7:38:02 PM
Why is it that, if there is a combo box on the main form, it gets the focus
initially, regardless of which other element we have set the focus to?
... more >>
MSI Insaller
Posted by Ron Vecchi at 11/8/2003 6:10:30 PM
I am going to create an installer for my app.
I would like to include the .net frameowork in the installer and macromedia
flash plugin in the installer.
The installer should check for users machine and install them if their not
already installed.
Can someone point me to some resources on doin... more >>
Inheritance Question
Posted by phoenix at 11/8/2003 5:21:24 PM
I have three classes: top, middle, and bottom. The middle class inherits
the Name property of its parent, top. The bottom class inherits the Name
and ID properties of its parent, middle.
However, if I create an instance of type bottom in a different class, I am
only able to access its sole ... more >>
This is probably the wrong place to ask....
Posted by sdmanson NO[at]SPAM stewireless.com at 11/8/2003 5:16:53 PM
I am working on a database access program using C# and am having a few
problems.
I am collecting data that may or may not be in order and may or may
not be in the database. I have 2 classes that take care of the parsing
of the data and everything is working fine I can query my DB and such
but... more >>
Reading Xml file using stream reader: different result VBNet vs. C#
Posted by Drew Yallop at 11/8/2003 5:02:10 PM
I read an XML file with a stream reader in VB.Net. When I
look at the stream reader output in debug mode (by
passing cursor over the stream reader object)the format
is a perfect replica of the file as displayed when I open
the xml file in VS .net 2003 IDE.
When I perform the same procedur... more >>
Build SQL database during installation
Posted by pcPirate at 11/8/2003 4:51:15 PM
Hi,
i) Is it possible to build the SQL database structure during the
installation of a C# applicaton? If yes, how?
Pls advice and thanks in advance
pcPirate
... more >>
Running Forms
Posted by Joshua Russell at 11/8/2003 3:52:12 PM
Hi,
Both the methods below open up a windows form called MasterForm. =
However, one works better than the other. Method 1 opens the form =
correctly but I don't have any reference to the instance of master form. =
Method 2 opens the form but when I right click on the Notify Icon I =
don't get t... more >>
Application with plugin architecture
Posted by Jer at 11/8/2003 3:49:04 PM
Hi all,
I am trying to get plugins working in my application.
I am using the approach of writing an interface and then implementing that
interface in each plugin. I would like to be able to just have a plugin
directory, and on program launch scan that directory, load each dll in it
and dec... more >>
Installer question: Directory produced by the setup project
Posted by Michael A. Covington at 11/8/2003 3:47:31 PM
When I build my setup project, I get three files: setup.exe, setup.ini. and
myapplication.msi.
These go into a folder called (setup project)/bin/Release. If any other
files are in that folder, they get deleted.
What I'd *like* is that when I build the setup project, the files that it
creat... more >>
Installer question: Read-only files
Posted by Michael A. Covington at 11/8/2003 3:45:58 PM
I want to deploy a project in which the user is provided with a set of
READ-ONLY files to use as templates. They will be in a directory to which
the user can add files of his own.
It's important to keep the user from deleting any of the pre-supplied files,
because if this is done, the Windows... more >>
Installer question: Spurious entries in Add/Remove Programs
Posted by Michael A. Covington at 11/8/2003 3:43:30 PM
Greetings,
I am working on a program that is in beta testing and goes through a new
version every week or so.
When there's a new version, go into the setup project change the Product
Code but leave the Upgrade Code and version number unchanged.
RemovePreviousVersions is set to True.
Wh... more >>
Read bytes from GetResponseStream.
Posted by SK at 11/8/2003 3:37:15 PM
Hi,
I am not able to convert the response stream from HttpWebResponse into bytes
properly.
Here is the relevent code -
HttpWebResponse response = (HttpWebResponse)request.GetResponse ();
// Get the stream associated with the response.
Stream receiveStream = response.GetResponseStream (... more >>
switch statement bug
Posted by fred at 11/8/2003 2:23:50 PM
I tested following program gives runtime error:
Unhandled Exception: System.InvalidProgramException:
Common Language Runtime detected an invalid program.
using System;
public class SwitchTest
{
static void Main()
{
const int i = 1;
switch (i)
{
case 0:
Console... more >>
WorkerThreads updating WindowsForm field.
Posted by Joshua Russell at 11/8/2003 12:08:52 PM
Firstly my main method is like this:
static void Main(string[] args)
{
// New Form Thread
FormHandler myFormHandler = new FormHandler();
ThreadStart myThreadStart = new ThreadStart(myFormHandler.ShowForm);
Thread formWorkerThread = new Thread(myThreadStart);
formWorkerThread.Start();
// ... more >>
Retrieve all delegates registered for one event
Posted by Lore Leuneog at 11/8/2003 11:42:40 AM
Hi.
You can add new delegates for an event with += and you can remove delegates
from an event by using: -= but is there a way (method) to list all delegates
added to one event???
Sincerely
Greetings
Lore
... more >>
Main Form reference, size
Posted by Jim Witt at 11/8/2003 10:51:15 AM
How can the Main application form be referred to?
In other words, I would like to get the size of the Main Form. But I
don't know how to instantiate it before:
Application.Run(new MyForm());
Thanks!
... more >>
VIsual Studio .Net ISO
Posted by Alex Ostrikov at 11/8/2003 10:48:09 AM
Hi !!!
Maybe anybody knows where I can download CD2 ISO of the subject.
I've downloaded another 6 CDs, but cannot find this one.
Help me plz.
Vey appreciate.
Thanx.
... more >>
beginner question
Posted by xocso at 11/8/2003 9:54:09 AM
Hi!
How could I open with .NET 2002 C# projects made in .NET
2003
Xocso... more >>
operator overld. struct vs. class
Posted by Jesper at 11/8/2003 7:58:42 AM
Hi,
Are there any serious drawbacks using a class instead of
struct to implementing your own type.
I a textbook of mine on C# the author recommend operator
overloading on value types only. Apparantly based on some
argument that e.g. the ++ operator is more complex to
implement. Can thi... more >>
Another FAILED n-Tier / OOP Web project.......
Posted by nospam at 11/8/2003 6:33:55 AM
THIS IS the DOTNETJUNKIES MESSAGE
-------------------------
We're Sorry
As many of you know we have recently launched SqlJunkies.com. We have
overhauled our runtime and will be using it on DotNetJunkies.com also.
--------------------------------------------------------------------------
Y... more >>
Code for accessing remote file structure
Posted by __Z__ at 11/8/2003 6:20:36 AM
Here's what I'd like to do:
Computer A is in Texas. Computer B is in Idaho. I need to use
Computer A to the file system on Computer B.
Both computers have Internet connections, but they won't be configured
as webservers. Is there a good starting point for doing this kind of
point-to-point s... more >>
2 more beginner questions
Posted by H at 11/8/2003 3:14:24 AM
Hi again !
I have 2 more questions, and I know theyre simple for you guys, so I hope
you can help me.
1. Is there a c++ like command like system ? For example in c++ you can use
system("cd dir1"). I know this wouldnt go so well along with compability on
all platforms, but maybe there is su... more >>
Leaks in Menu
Posted by Gupta at 11/8/2003 2:53:11 AM
Hi,
I wrote a simple application which has some menus in the
main menu. What i have observed is whenever i enable or
disable a menuitem, an integer is getting created
internally and not getting disposed.
I was able to find it with the use of a profiler.
Please respond if it's a bug in the... more >>
|