all groups > dotnet framework > september 2006 > threads for september 1 - 7, 2006
Filter by week: 1 2 3 4 5
Startin process with an argument like <D:\CD\data.prc>
Posted by SMichal at 9/7/2006 5:37:31 PM
How can I start a new process with an argument in this form <D:\cd\Data.prc>
?
string args1 = " <" + prozessFile + "> ";
Process.Start("C:\\Direct.exe", args1);
Ist this correct ? It works only under WINXP but not under Windows Serve
2003
... more >>
Caching and Atlas - not working?
Posted by jeffmagill NO[at]SPAM gmail.com at 9/7/2006 4:03:13 PM
Hello everyone,
I've run into a peculiar road-bump that I'm hoping someone can clarify.
I'm building a database application (ASP.NET 2.0, MSSQL 2000) and have
implemented data source caching via polling without a problem.
Basically what I have is a GridView bound to an ObjectDataSource that
... more >>
How do I know my collection was modified?
Posted by Steve Barnett at 9/7/2006 3:49:07 PM
I have a user control that includes a StringCollection. I provide my users
with a property that retrieves a reference to the string collection so they
can add and remove items from it, just as you would do if this were, for
example, a listbox.
What I can't see is any way for my user control... more >>
Windows Service Security Zone
Posted by The Man From SQL at 9/7/2006 2:01:02 PM
Can someone tell me in which of the four security zones a windows service
running under a domain account would run? I have a windows service installed
under C:\Program Files\blah blah blah... so at first I figured My Computer,
but since it's a service I figured the security zone might be some... more >>
Convertin a PDF File into Word
Posted by kalamantina at 9/7/2006 12:10:53 PM
Hi everyone,
I am trying to build a small library ( in C# and VS2003) that accepts a
PDF file and converts it to a word document. During this process all
alignments are to be kept.
Is there a way to deo it through code, I am playing with the
microsoft.office.interop.word dll but importing t... more >>
Finding Current/Active Session ID
Posted by Ahmed Perlom at 9/7/2006 11:48:53 AM
Hi all,
How can I know if the session ID that a certain process is running on is
actually the active session that he consol is connected to. I can get the
session id of a process by
Process P = Process.GetCurrentProcess();
And then check P.SessionID property.
Anyone has an i... more >>
newbie question: on dataset and dataTable Collection
Posted by GS at 9/7/2006 9:46:41 AM
any tips to avoid trouble in multi-user environment? specifically how one
can control overwriting changes between the time one gets the row to
worked on and the rows one is ready to update the original> or does the
merge method and acceptchagnes take care of that automatically?
from the b... more >>
Detecting Windows Forms Desginer
Posted by John Bowman at 9/7/2006 8:45:05 AM
Hi All,
When VS 2005 visual designer attempts to open an inherited windows form it
attempts to instantiate the form. Unfortunately, this does not work under
certain conditions/needs to the form's constructor. You get a nasty error
something like: "One or more errors encountered while loadin... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Class Library
Posted by Foxman34 at 9/7/2006 8:01:01 AM
Hi
can anyone tell me why a class library i generated, compiled and installed
does not show up as a reference in the ".Net" section of add a reference to
my application.
--
Thank-you
Foxman34... more >>
Assembly.LoadFrom, .NET 2.0
Posted by Marty Cerisano at 9/7/2006 7:24:01 AM
Since we converted our application to C# 2005 and .NET 2.0 our
"no-touch-deployment" mechanism is broken.
The whole deployment is based on a bootstrapper (NetRun) that loads our main
application using Assembly.LoadFrom.
When a client machine downloads the application for the first time,
... more >>
wi-fi detection
Posted by Vigj at 9/7/2006 6:19:01 AM
Hi,
I need to implement in my application a function that, shows the wi-fi
connection available on the notebook (running winxp), allows the user to
choose one in order
to copy a file on a folder though the wi-fi connection
If any wi-fi has been established, the application must tell the us... more >>
Finding an available port for a socket connection?
Posted by andreas.baus NO[at]SPAM meta-level.de at 9/7/2006 6:18:11 AM
Hi. I am trying to set up a TcpListener to listen for incoming TCP
connections, and one thing I have been wondering is whether there's a
good way for finding an available port number, say, from a given range
of ports.
Of course I could just loop over all ports, try to open the listener on
it,... more >>
Print out contents of a hashtable
Posted by Water Cooler v2 at 9/7/2006 4:21:03 AM
I can't believe I've stumbled on a simple problem such as this. After
all these years, that too.
Anyway, it goes that I just realized that I could not iterate through
my hashtable and print out its contents. On further probing, I realized
that the hashtable didn't implenent IList, which really... more >>
How can I save a Graphics to a bitmap file?
Posted by myNickname at 9/7/2006 4:13:02 AM
I paint into a PictureBox with the help of its Graphics object.
How can I save the painting into a bitmap file (not a metafile) ?
Thanky in advance for any helpful hint.... more >>
System.net.mail.SmtpClient send generates a Syntax error, command unrecognized
Posted by howardr101 NO[at]SPAM hotmail.com at 9/7/2006 3:30:21 AM
Hi,
I've just posted this into the microsoft.public.dotnet.VB group by
mistake - Just reposting it here...
Have hunted around on the groups and can't find anything, hence.
I've tried this against 2 mail servers (mailtraq and hmailserver) and
it occus with both.
The problems seems to be... more >>
How to detect if an app is allready running?
Posted by feudalac! at 9/7/2006 12:00:00 AM
Hello
How can i detect if my application is allready started?
if it is started, set focus to it else start it?
Thanks
--
You're not paid to think. A mindless worker is a happy worker. Shut up
and do your job!
- Tata Feudalac!
--------------------------------------------------... more >>
What is Proces.WaitCode = 255 ?
Posted by SMichal at 9/7/2006 12:00:00 AM
Hi, I'm starting from my application simple bat data...test.bat.
This file (test.bat) should start another aplication app.exe.
I'm starting the test.bat from my application with Start() method of Process
class.
With proc.WaitForExit I'm waiting for end of the process and I must check
the
ret... more >>
How to use gacutil?
Posted by Enosh Chang at 9/6/2006 11:25:24 PM
Hi all:
I use "gacutil /i myComponent.dll" to install my component. But I can't find
it in the "Add Reference" of IDE. What's wrong?
Enosh
... more >>
Statics & Interfaces
Posted by hufaunder NO[at]SPAM yahoo.com at 9/6/2006 10:57:39 PM
I have an interface where I would like to have some static functions.
When I add "static" to any of the interface functions I get the
following error: "The modifier 'static' is not valid for this item".
Why is it not possible to define static functions in an interface?
Thanks
... more >>
Interfaces & Constructors
Posted by hufaunder NO[at]SPAM yahoo.com at 9/6/2006 10:47:08 PM
I have an interface for which I want to define a particular
constructor. I want to force the user to implement this particular
constructor. Even better would be if I could make sure there is no
default constructor. That might be a bit messy because the implementer
of the interface should have th... more >>
What questions would you ask when inteviewing a programmer for a dot net ap?
Posted by tom c at 9/6/2006 6:30:35 PM
What questions would you ask when inteviewing a programmer for a dot
net ap?
I want a few simple things I can ask over the phone just to weed out
people who have no idea what they are doing.
Then I want a few more questions that are a little harder to seperate
the above average people from ... more >>
RegEx substring
Posted by bryanmig NO[at]SPAM gmail.com at 9/6/2006 3:27:12 PM
Ok I am new to RegEx and what I am trying to do is find a substring.
I have a string that constantly changes. This string is pulled from an
Atom feed from a blog. I need to strip the HTML formatting from this
string and just grab the inner text.
If this is my string: "<div>Hello my name i... more >>
Synchronous / Asynchronous Multithreading Question
Posted by Stephen Barrett at 9/6/2006 2:11:04 PM
I really hope someone can give me some ideas. Sorry for the long post.
Problem (Using .Net 1.1):
We have a current asp.net application that a user uses to submit work and
when it is finished view the results. It is implemented using .net
remoting. The user submits a form which in turn cal... more >>
GPL / Open Source Application
Posted by Heinz K at 9/6/2006 2:03:48 PM
Hi all,
I want to publish my application under GPL so it is open source and
everyone could modify it. How could I prevent my users from installing
"unauthorized" versions by fault? Someone might add malicious code and
my application is then blamed for it :-( I use already strong names to
... more >>
Loading assemblies dynamically using my own ResolveEventHandler
Posted by illegal.prime NO[at]SPAM gmail.com at 9/6/2006 1:50:27 PM
Hey all, so I've noticed that when I load assemblies dynamically in my
own custom ResolveEventHandler that their Modules do not get returned
when I invoke
Process.GetCurrentProcess().Modules
Here is some pseudo code to show what I'm talking about:
public class Foo
{
public Foo ()
{... more >>
Find out what called Finalize?
Posted by Mike Eaton at 9/6/2006 10:49:02 AM
Hi everyone,
I have a long-running application (sits in the system tray waiting for
something to do and interacts with the user via form and some hardware)
containing an object (a reference to the aforementioned hardware and its
associated functionality) that occasionally will become 'nothi... more >>
ReaderWriterLock
Posted by Roy at 9/6/2006 7:57:01 AM
I use ReaderWriterLock to protect the internal state of a class instance from
multi-threaded access, should it be declared as private member or static
member of the class?... more >>
Framework 2.0 and VS.NET 2003
Posted by Prem Kumar at 9/6/2006 3:06:02 AM
Hi
I would like to know the compatibility of .NET Framework 2.0 and VS.NET
2003. Will everything work fine in this combination?
What might be the framework factors, which would not be available, as we are
using a 2003 IDE version?
Need your help in this
Prem... more >>
Question on creating a shared dell from PC to PDA
Posted by Gary B at 9/6/2006 12:00:00 AM
I am having difficulty in setting up a solution with a PDA application and a
PC application and a common shared dll. Is there an easy way to achieve
this?
Many Thanks
Gary.
... more >>
set a mark on a line so we can later come back quit quick access k
Posted by Tonger at 9/5/2006 6:55:02 PM
Hello,
In visual studio, is there a facility that allows you to mark a line of code
in the IDE so that you can come back later to that line later if you have to
look at the source code somewhere else. Normlaly i notice the line number
then Ctrl+G to jump to the line, but there are multiple ... more >>
Splitting a 31gb text file
Posted by web33 at 9/5/2006 3:45:02 PM
I have a 31gb file that was exported from a unix box. I was trying to
bulkinsert it into sql but there seems to be something wrong with the file.
In order to isolate the issue I have tried splitting it into smaller files.
I get an out of memory on the 7th chunk of 10,000,000 lines using the... more >>
Strong naming Shdocvw, (cannot locate CSP)
Posted by Vinit at 9/5/2006 3:28:20 PM
Hi
I have added a MS WebBrowser control to my winform. This adds
references to Shdocvw.dll and Axshdocvw.dll . However I am using strong
named assemblies in my application and hence these also need to signed
with my public key.
I used tlbimp and aximp tools to do this but in both cases I ge... more >>
My.User.Name returns blank in Console App
Posted by Jamie Carper at 9/5/2006 1:38:01 PM
Hi Folks,
I made aninteresting discovery today in regards to the Visual Basic .NET 2.0
The My namespace My.User.Name returns the username in a Windows form
application but does not work in a Windows Console Application. Not sure why.
I suspect for security reasons. However I can use most o... more >>
Application Unexpectedly Terminating
Posted by Martin at 9/5/2006 1:10:02 PM
I am running a c# application on WM5 using .NET 2.0 CF with the latest SP.
The code was written in VS 2005. I have tried this on multiple devices and
get the same results.
Upon hitting the following line of codes the application unexpectedly
terminates. The below code snippet is part of a c... more >>
In vb dot net, what is the syntax to see if something is a string?
Posted by tom c at 9/5/2006 10:33:32 AM
In vb dot net, what is the syntax to see if something is a string? For
example, if I read FieldX from a table I want to do something like:
If FieldX is string then
'Do something
end if
except I know "is string" is not correct. What is the correct syntax?
... more >>
Question on OleDbDataAdapters from a new guy
Posted by tom c at 9/5/2006 10:31:03 AM
I create 2 data OleDbDataAdapters, one with the wizard, and one in
code. I know the adapter created in code is OK because I use it to
fill a data table and I then look at one of the fields and the data is
there.
However, when I try to use the same SQL insert statement in the two
adapteres, t... more >>
Panda Platinum Internet Security 2006 blocks my openfiledialog
Posted by eduwushu at 9/5/2006 9:38:02 AM
here is another issue i found. When i try to show an openfiledialog in my
application withh panda antivirus activated it blocks indefinitely. when i
pause the debugging and look at the call stack i find that the last entry of
the stack is about the PavSHook.dll, a dll of the panda antivirus ru... more >>
OpenFileDialog too slow
Posted by eduwushu at 9/5/2006 9:31:01 AM
hi im trying to create and show an openfiledialog to let the user selecta
file but the control is too slow.
When i call showdialog on it it takes too long for it to appear on screen
and when i move between folders it takes too much time to update it. Whhat
can be producing this behaviour????... more >>
Obtain the folder where is the executable of my application
Posted by eduwushu at 9/5/2006 8:26:01 AM
I want to obtain programatically the folder where the executable of my
applicationj is installed. I want that path to find other files which are
located related to the path where my application is installed. Is there
antway to do this?
For example i want to create a fileinfo object to retriev... more >>
Using reflection to get parameters and values at runtime
Posted by Steve Bugden at 9/5/2006 7:28:02 AM
Hi,
I would like to obtain a list of a function's parameter's and their values
dynamically at runtime from within the function itself.
Currently, I record these when starting a function by 'hardcoding' them into
a collection. Please see my code snippet below. I use the collection in my
e... more >>
CommandText is placed in the resx file
Posted by Jaap at 9/5/2006 6:31:02 AM
I have the following class defined:
[DesignTimeVisible(false),
ToolboxItem(false),
Designer("Agrovision.Data.Design.CommandDesigner, Agrovision.Data.Design,
Version=3.0.3.0, Culture=neutral, PublicKeyToken=27bbda75f3eecde7",
typeof(IDesigner))]
public class CommandClass: Component
{
p... more >>
Problem with FileInfo class
Posted by eduwushu at 9/5/2006 6:23:02 AM
Hi i have an application wich have to retrieve information of files. I have
an openfiledialog on which i cans elect a file and then i retrieve the path
to the file selected on it by the user.I create a FileInfo object with that
path
Well when i later try to create a new fileinfo object passin... more >>
app.config and assembly config in My.Config
Posted by Bart at 9/5/2006 4:36:01 AM
Hi,
What is the best approach to deal with My.config and assemblies.
When I compile an application the app.config is generated but not the
assembly.config.
I tried to add those setting in the application.config but this is not
working.
How can this be done?
Thanks
Bart... more >>
Periodic housekeeping code strategy?
Posted by Bill at 9/4/2006 10:14:29 PM
I have a need to run a function on my dot net 2.0 web server every xx
minutes forever - whether or not a client is logged on.
Anyone have suggestions or examples of good ways to do this?
Thanks
Bill
... more >>
Is this the forum for ClickOnce Issues?
Posted by Tina at 9/4/2006 4:28:08 PM
I notice there is not ClickOnce forum so where is the proper forum for those
issues? Here? Windows Forums?
I'll post my first one here anyway for now...
Thanks,
T
... more >>
HttpWebRequest.GetResponse throws StackOverFlowException
Posted by Niklas at 9/4/2006 6:45:01 AM
Hi,
I am having a issue I couldn't figure out how to solve.
I have a function that does WebDav Request against Exchange Server 2003.
I can do about 3000 request and afterwards I get a StackOverFlowException on
HttpWebRequest.Create();
This is only a stress test that is causing this issue b... more >>
WebException, SSL, System.ComponentModel.Win32Exception
Posted by edmarw NO[at]SPAM gmail.com at 9/4/2006 3:30:56 AM
Hi,
Just for information, might help someone:
One of our partners installed a new SSL certificate, and suddenly our
HTTPS connections to them using C# .NET 1.1, started failing with this
exception:
---> System.Net.WebException:
The underlying connection was closed: Could not establish se... more >>
Developer Toolz.Com
Posted by zoinky NO[at]SPAM gmail.com at 9/4/2006 12:24:22 AM
You guyst might find this website useful, there is a lot of different
utilities/add-in's that make a programmers life easier. You can also
share your own tools or tools that you use.
The tools are freeware so that should make it easier on some of us who
dont have money for utilities.
http://w... more >>
Creating a Collection Class
Posted by APA at 9/4/2006 12:00:00 AM
I already have a colleciton class that implements IEnumerable but I also what to be able to
implement this inteface: MyCollectionClass["somestringkey"].
EX:
//MyCollectionClass is s collection of MyObject objects
MyObject mo = MyCollectionClass["somestringkey"];
or
string mypr... more >>
DataSource/DataBind
Posted by ThunderMusic at 9/3/2006 11:08:56 PM
Hi,
This question probably went back a couple of times, but I didn't find
anything about it on google, so I ask here...
What is the best way to use the DataSource/DataBind pattern in a class? I
would like the user to be able to set a data source and I'd like my class to
be able to use this... more >>
Plugin Archtiecture
Posted by kumar at 9/3/2006 9:04:49 PM
hi,
I am Working in a plugin Architecture for Windows application and
using which i create a menu inside a parent form.for MDI Child Windows
in which i need to create a MENU SEPERATOR to differentiate between two
different groups of menu items.
Share your ideas on it.................. more >>
Two byte in one string?
Posted by Bojan at 9/2/2006 9:47:51 PM
Hello,
how can I put two byte in one String , and I want that this one byte be
behind second?
Like this : Dim b1,b2 As Byte ("b1=2D") ("b2=52")
Dim s As String = b1&b2 ("2D52")
Did this code put first byte behaind second in "str" (string)?
... more >>
Enable Source control in Visual Studio Environment
Posted by kumar at 9/2/2006 8:04:39 AM
hi,
i am working on visual studio 2003 and i dont have any idea on how to
enable source control to a solution can anyone suggest a solution for
that
... more >>
CPU usage 100%
Posted by Aryan at 9/2/2006 12:00:37 AM
Hi,
I am getting weired problem all of sudden for CPU usage going to 100%
for aspnet_wp.exe. This problem started after installing (CLRProfiler -
86x). I am using Framework 2.0. Before installing CLRProfiler,my
application was working fine and to my strange the same application
works fine on ... more >>
ANN: .NET Framework 3.0 RC
Posted by Thomas Scheidegger [MVP] at 9/1/2006 9:42:17 PM
Microsoft .NET Framework 3.0 - Release Candidate
http://www.microsoft.com/downloads/details.aspx?familyid=19e21845-f5e3-4387-95ff-66788825c1af
Pre-released WinFX Runtime Components Uninstall Tool
http://www.microsoft.com/downloads/details.aspx?FamilyId=AAE7FC63-D405-4E13-909F-E85AA9... more >>
When will VS 2005 SDK final release will be available?
Posted by Juan Dent at 9/1/2006 5:11:01 PM
Hi,
I only see beta versions and some cause terrible problems when uninstalled.
Anyone know?
--
Thanks in advance,
Juan Dent, M.Sc.... more >>
Hilarious error message
Posted by post.messages NO[at]SPAM gmail.com at 9/1/2006 11:41:48 AM
I am sorry if this is not completely business-like, but the day before
a weekend it was just too funny not to post.
I am working on getting a custom principal working in VS2005.
The following line:
CustomPrincipal test = (CustomPrincipal)Page.User;
Brought up this trouble-shooting tip in ... more >>
directory.exists occassionally locks up when checking network share
Posted by Keith Langer at 9/1/2006 8:42:46 AM
Hi,
I'm running the .Net 1.1 framework on XP Pro. I am finding some
occasions where a call to Directory.Exists never returns when passing
in a network share. Most of the time the call returns properly, but if
the machine is really busy or if there is a network problem (or if the
server's Se... more >>
Is there any way to keep a reference to a file even if it is moved or renamed?
Posted by google NO[at]SPAM grider.org at 9/1/2006 8:20:17 AM
My company has a large filesystem that holds hundreds of thousands of
documents related to the business. Sometimes I have the need to keep
metadata for some of the documents. This data could be comments, or the
document's status in a process, etc.
The simplest way to do this is to keep the met... more >>
Create and delete an unreadable file in c#
Posted by elgdav at 9/1/2006 5:48:49 AM
Hello, is it possible in C# to create a file which is unreadable (i.e.
no program can open it at all) and also at a later point to delete it?
Thanks in advance.
... more >>
Get machine name path from relative or absolute path
Posted by elgdav at 9/1/2006 5:40:10 AM
Hello, is it possible in C#.Net to get a path to a file in the form
"\\Spain\Madrid\readme.txt" from a relative path i.e "readme.txt" or
from a absolute path in the following form "C:\Madrid\readme.txt" where
"Spain" is the name of the machine that the file is on? Thanks in
advance.
... more >>
Question about DirectoryEntry
Posted by Vikas Manghani at 9/1/2006 5:05:01 AM
Hi
I had a small doubt about the working of DirectoryEntry.
I create a DirectorySearcher and search for a particular user on my domain
using
ds.Filter = "sAMAccountName="+username;
Then using SearchResult.GetDirectoryEntry() I get a DirectoryEntry object
representing the user, say de.
The ... more >>
|