all groups > dotnet framework > may 2008
Filter by week: 1 2 3 4 5
How to get and use the icon of exe-files (programs) in own applications
Posted by Rolf Welskes at 5/31/2008 3:00:35 AM
Hello,
I have in windows forms, on the other hand in windows presentation the
following problem:
I have a program with a list of programs (exe-files).
Now I want to display the (standard) icons of these programs, similiar as in
explorer.
So, for example I have the pathes:
f:/aaaa/bb... more >>
Choosing Between Classes and Structures
Posted by Ray Cassick at 5/31/2008 2:58:11 AM
I have been investigating this subject a bit and ran across this gem in
MSDN:
http://msdn.microsoft.com/en-us/library/ms229017(VS.80).aspx
This seems to specifically state that structures should not be any longer
that 16 bytes in size. Seems a bit limiting to me since I can hit that limit ... more >>
VS 2008 / net framework 3.0 3.5 / wpf - Dispatcher-Methods not thread safe
Posted by Rolf Welskes at 5/31/2008 2:53:58 AM
Hello,
because there are no manged news groups for windows presentation foundation,
I was told to
send my question here.
Problem:
In the documentation of the class Dispatcher you can read:
Threading:
Any public static (Shared in Visual Basic) members of this type are thread
safe. Any ins... more >>
Developing recommendations
Posted by Asaf at 5/30/2008 11:30:00 PM
Hello,
I would like to have recommendations for the following.
I am going to develop a server application in VS.NET C# for sending SMS
messages thru SMPP connections.
I have three SMPP connections and they are always connected to the SMPP
server so they will be in a Windows Service.
... more >>
Email I send with attachments aren't being recieved
Posted by Loosinmymind at 5/30/2008 2:07:00 PM
Hi, Can someone please help me. Whenever I send out an email with a picture
or any kind of attachment through Windows mail, it says the email was sent,
but it isn't being recieved by the recipient. Then I get a Norton symantec
pop up saying this problem does not occur often, their support team... more >>
Winform to web form
Posted by Nicol at 5/30/2008 5:21:00 AM
Hi,
I need to convert win forms developed using some non-standard language to
web form.I know i should do the mapping to convert it to win forms. I think
that part of converting from old win form to new .net win form is okie for
me.. But how to convert taht win form to web form? Is there any ... more >>
XmlNode
Posted by gigs at 5/29/2008 7:32:01 PM
hi
im getting this error when i tried to write start element and when i try to
write value: Object reference not set to an instance of an object.
XmlNode node;
XmlNode izmjenaNode;
XmlTextWriter xmlWriter = new XmlTextWriter(Console.Out);
xmlWriter.Formatting = Formatting.Indented;
xm... more >>
Enterprise library 4.0
Posted by John at 5/29/2008 2:17:46 PM
Hi
Is it worthwhile using enterprise library 4.0 for logging, exception
handling and data access? Currently I am doing all this myself and am
wondering if it is worth recoding to standardise to Enterprise Library. Are
others using the library as a matter of routine?
Thanks
Regards
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Store Dictionary in Config File?
Posted by coconet at 5/29/2008 1:06:58 PM
I have a list of value pairs represented as a
Dictionary<String,String>. I would like to store them in my app.config
file - how can I do that? I don't want to keep them in a regular text
file.
Thanks.
... more >>
Changing the timezone on Vista SP1
Posted by Marco Shaw [MVP] at 5/29/2008 8:54:09 AM
I've searched around in the Windows SDK. Is there a .NET class that can
help me to change the timezone setting on a Vista machine?
Marco
MVP: Windows Server - Admin Frameworks... more >>
Generic Database requirment
Posted by Nicol at 5/29/2008 6:10:02 AM
Hi,
My requirement is to use any Databse in my application as configurable.
Now I decided to use Enterprise library 4.0 to support all databases by
using common classe such as DBcommand, IDAtareader etc., have seen
enterprise library, by itself reads Database connections from confg file.. I ... more >>
What is %windir%\assembly\download?
Posted by Edward at 5/29/2008 3:47:05 AM
I know it is a virtual folder rendered by fusion.dll. I'd like to know
where does this information come from (registry or .ini files)?... more >>
App wants to send report
Posted by John at 5/28/2008 1:36:30 PM
Hi
An app which was working fine has started to bomb at start-up.. It prompts
to send report to Microsoft. I have uninstalled and reinstalled the app and
the .net 3.5 but no luck. The error seems to mention win32.componentmodel or
some such. What could be the problem and how can I fix it?
... more >>
Additional problem... eventvwr.exe fails
Posted by Robert Schuldenfrei at 5/28/2008 10:15:38 AM
Hi NG,
In hunting down my .NET Framework issue I had a failure of eventvwr.exe.
The two MAY be related, however eventvwr.exe does not use MSCOREE.dll nor
does the error message seem to relate. When I execute eventvwr.exe it
loads, but then gives me the following error dialog box:
MMC ca... more >>
Memory Leak with (WPF) Frame
Posted by Lloyd Dupont at 5/28/2008 9:54:52 AM
I have a very simple WPF Application (code inline below).
If, as a user, I click "Web Frame" then "Nothing" (then, optionally,
"GC.Collect")
A Frame object has been created and removed from all hierarchy yet it stays
in memory (as a memory profile will tell you).
Now, what can I do about th... more >>
ClickOnce question
Posted by king kikapu at 5/28/2008 12:52:53 AM
Hi, i have the following scenario and i am struggled to fidn a
solution.
I have made an app that i want to distribute with ClickOnce. That app
enables the use to change some settings and these settings are saved
in a file. The app when loads, it loads that .xml file and updates
some data stru... more >>
Can't install, uninstall or repair framework 2.0 -- logs included
Posted by Dan English at 5/27/2008 2:58:31 PM
This is on a client's XP-sp3 machine... can't install, uninstall or repair
framework 2.0 without immediate error. It seems to not be finding
something. Does anyone have advice? TIA.
======================
MSI CA LOG ENTRY INFO:
======================
CA NAME:
============... more >>
.NET Framework 3.5 SP1 download location
Posted by Carolina at 5/27/2008 2:04:16 PM
Hello, I have installed .NET Framework 3.5 SP1 but I would like to
find the setup files (seem to be 54MB) to install it at home.
Does anybody know where are these files downloaded?
Thanks.... more >>
Threading woes
Posted by Jeff Johnson at 5/27/2008 12:31:57 PM
[This is kind of long.]
I don't use threading much, and so I wrote a small test app to make sure
that what I was going to do in my larger app would work. In the process, I
ran into a problem that I would like to understand so that I can deal with
it in the future.
** Overview--code will ... more >>
lost intellisense for "system.drawing" (vs 2005 SP1)
Posted by SoftLion at 5/27/2008 12:25:47 PM
I migrated succesfully a project from 1.1 to 2.0.
In this project, the System.Drawing namespace is not found by VS2005
designer (system.drawing has been added in the Reference section).
The project compiles correctly though ...
If a create another project from scratch, the namespace is corre... more >>
Are there no tools to check the health of .NET Framework?
Posted by Robert Schuldenfrei at 5/27/2008 12:12:28 PM
I have two threads which are asking for a tool to check the health of .NET
Framework. No one has come up with one. There are many, many tools to
check out all parts of Windows. Is there NOTHING to look into .NET
Framework?
... more >>
dynamically populate a list in propertygrid
Posted by asharda@woh.rr.com at 5/27/2008 12:08:43 PM
Hi,
I am writing a WPF application with C#.Net. In the application I have
windows propertygrid. I want to show a dropdown list for the user to
select a value for a particular property in the propertygrid. I want
this dropdown to be populated at run time as I am not sure of the
string values i... more >>
Is there any way to tell why a program is dying?
Posted by jmDesktop at 5/27/2008 8:28:37 AM
Not sure where to post this, but I have a vbscript that is dying and I
do not know why. It runs for a while then disappears (dies.) I know
that vbscript has no decent error handling, but that I can do if
err.number >0 ...., It isn't a problem with the script, however, and I
believe it is dying... more >>
Crystal Reports Viewer Memory Leak
Posted by ian_jacobsen@hotmail.com at 5/27/2008 8:00:58 AM
It's rare that you see someone simply posting a solution rather than
posing a question, but this one caused enough stress that I thought
everyone should would at least appreciate this as a reference
(considering that Crystal Reports has zero documentation).
We had a form that contained a Cryst... more >>
?? Environment.Version Reports Wrong Value ??
Posted by Tom Baxter at 5/26/2008 9:51:14 PM
Hello all,
I have .NET 3.5 installed and I'm running VS 2008. I have a C# project
that's configured to use .NET 3.5 (in the project properties the "Target
Framework" is 3.5).
The following line of code:
Console.WriteLine(".NET Version: {0}", Environment.Version);
prints: .NET Version: 2.... more >>
Enterprise Library
Posted by Nicol at 5/26/2008 5:48:01 AM
Hi,
My application needs to be configurable for sql server, oracle or anyother
DB and also xml file. Will enterprise library suitabel for me? or do i need
to create custom solution. PLz suggets me.
Thanks... more >>
Auto-updating application
Posted by ssg31415926 at 5/26/2008 12:04:55 AM
Is there a way to auto-update my app? I need to deploy an app using
SMS - I can't use ClickOnce - and I'd like to be able to make it check
for updates and download and install them automatically. There used
to be an Application Updater block for 1.1 but I can't find anything
for 2.0 or later.... more >>
Interface to a namespace or a class
Posted by Marco Shaw [MVP] at 5/25/2008 11:54:02 PM
I'm just wondering if a "public interface" would be something associated
with a namespace and/or a class?
Marco... more >>
XML Escaping a String?
Posted by coconet at 5/24/2008 11:00:52 PM
I have a URL like "https://aaaa.aaa/bbb/bbbb/ccc?dd=44&ee=55%c2066
And I wan to put it in an XML configuration file. Trying to use
HttpUtility to HTML encode it is not enough, I need to "XML Encode"
it, how can I do that?
Thanks.
... more >>
MD5CryptoServiceProvider Hashing a split file
Posted by John Smith at 5/24/2008 9:39:42 PM
Hi,
I am very new to C# and NET framework. I am trying to hash (using
MD5CryptoServiceProvider) a source that is split into several files.
Now when the source is in one file I can produce the correct md5 hash.
My issue is how can I reproduce the correct hash when the file is split
in... more >>
.NET still a problem - need better understanding
Posted by Robert Schuldenfrei at 5/24/2008 7:49:07 AM
Hi NG,
I have spent the last two days downloading, installing, and trying to view
the results. As my other post indicates, I loaded an old Beta of VS 2005.
I have since loaded the correct live version, but it has problems. OneCare
does not work and issues a CLR error: 80004005. For the m... more >>
DataView Enumerator
Posted by Jack Jackson at 5/23/2008 10:11:15 AM
I am a little confused by DataView.
The Item property returns a DataRowView.
However, the object returned by the enumerator used by For Each is
apparently Object since I can specify any kind of object and don't get
a compiler error:
Dim dv as DataView
For Each xx As Integer In dv
Is t... more >>
BackgroundWorker in different OS
Posted by antarikshv at 5/23/2008 12:59:11 AM
Hello All,
I had written a piece of code for working with the
BackgroundWorker.Following is the code for the same:
BackgroundWorker ^ defReportWorker = gcnew BackgroundWorker();
defReportWorker->WorkerReportsProgress = true;
defReportWorker->WorkerSupportsCancellation = true;
defRep... more >>
How to repair .NET
Posted by Robert Schuldenfrei at 5/22/2008 4:10:01 PM
Hi NG,
I tried to install an old VS 2005 beta on my machine. Not only did it not
install, but it seems to have installed an earlier version of .NET on my
Vista Ultimate system. Now programs like OneCare are failing with CLR
error: 80004005. From reading KB I understand that Vista uses .N... more >>
How to escape text in CSharp console program
Posted by Alan Mosley at 5/22/2008 3:44:03 PM
I have a console app, that creates a xml file, I need to escape the data
before dumping it in the xml file.
I would use Server.HTMLEncode if it was ASP.NET.
I tried System.Xml.XmlConvert.EncodeName("a&b")
this gives me a_x0026_b I was exspecting a&b
Maybe thios is ok. the xml file ... more >>
esoteric struct vs class question
Posted by Mark at 5/22/2008 2:30:01 PM
I know this is pretty esoteric but if all you have is a bunch of static
methods, which is the most efficient - a struct or a static class? Or are
they about the same?
Thanks
Mark
... more >>
what is the location of the dll's path on a server
Posted by Walter Deodiaus at 5/21/2008 3:01:23 PM
I created and ran a dll, which works fin in my test enviroment...
However, when I deploy it, I got a new message.
Parser Error Message: Could not load the assembly 'App_Web_wldguix0'. Make
sure that it is compiled before accessing the page.
What is the location of the dlls? How does the ser... more >>
Question regarding event handlers and delegates
Posted by Bruce C. Miller at 5/21/2008 2:54:49 PM
So, say I have an instance of a .Net object with a collection of
events. It is possible to get at these events and look at them with
various relection-type properties. However, would it be possible to
take another instance of the same type of .Net object, grab all of the
event handlers off of th... more >>
getting country area (Telephone) codes built in windows?
Posted by Leon_Amirreza at 5/20/2008 6:22:57 PM
how can I get the names and telephone codes built in windows in C#?
setting up modem in windows it asks for country/region code you are in.
1- how can I have such a form in C# (that has a list countries with codes,
so you can select the country you are in)?
I know how to fill a combo box and ... more >>
Cannot install .net 2.0 System.Enterpriseservices.dll error
Posted by Rick at 5/20/2008 2:44:24 PM
When I try to install .net 2.0 I get the following error:
Error 25015 failed to install assembly
C:\Windows\Microsoft.net\Framework\V.2.0
50727\System.Enterpriseservices.dll=92 Because of system error: the
system cannot find the path specified
The file is there. I have uninstalled, and... more >>
CRYSTAL REPORT WITH DATE AND TIME
Posted by DENTONE at 5/20/2008 9:04:41 AM
Dear newsgroup,
I have a sql table with 2 field:
1) DATA (date and time)
2) Temperatura (numeric)
I have to make a line graph.
I have insert two parameters' to customize the filtering, so i can have a
graph of the temperature between to date and time.
If i choose two date's and time (p... more >>
How can I use sendmessage to input some text into Richtextbox(C#)?
Posted by Jason Zhou at 5/20/2008 3:37:21 AM
I want to use the api, sendmessage, to input some text into the
richtextbox
I think I should send 'key-down' message to the richtextbox.
for example,
e.shift && e.keycode == e.D0
is
)
Would you please tell me how to write the sendmessage method?
Thanks!... more >>
File.Move Execution Pauses
Posted by Mattbooty at 5/19/2008 5:47:47 PM
If this is the wrong forum I apologize and please point me in the
right direction.
I have a program where users can drag files from the file system and
drop them onto a list view. When the file is dropped my program 1)
moves the file to a directory specified within the application, 2)
looks ... more >>
Handle of running application
Posted by James at 5/19/2008 2:45:03 PM
Hello everyone,
I have a windows application that starts Internet Explorer and I need to get
access to this page. Ideally I would like to have the document loaded into a
WebBrowser control. Also I would like to close IE after I'm finished.
What are the ingredients needed?
-james
... more >>
Please help me figure out ConfigurationManager.AppSettings for a Windows Forms .NET 2.0 project
Posted by jman at 5/19/2008 9:55:34 AM
I am trying to understand ConfigurationManager and why I cannot get
any of my Application Settings using
ConfigurationManager.AppSettings["MySetting"]. I am not having
compiler/build errors, its just that I am not getting my application's
settings/values. Can anyone help me?
I create a new C#... more >>
BitmapDecoder not releasing file lock
Posted by Roger Martin at 5/19/2008 8:58:05 AM
I am having an issue related to my original thread here:
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.framework&tid=b694ada2-10c4-4999-81f8-97295eb024a9&cat=en_US_a4ab6128-1a11-4169-8005-1d640f3bd725&lang=en&cr=US&sloc=en-us&m=1&p=1
In that threa... more >>
Questions on signing assemblies
Posted by Vivien Parlat at 5/19/2008 7:45:45 AM
Hello,
I have a project :
- one main exe files
- some .net dlls used by the exe
- some native non-com dll used by other dll's.
I want to sign those files so that the program detects any external
modifications. I read on MSDN and elsewhere that I would have to sign
all .net dll (if I want,... more >>
Test coverage in VS Studio 2008 prof
Posted by Norbert_Pürringer at 5/19/2008 5:38:10 AM
Hello,
unfortunately VS Studio 2008 does not support test coverages for unit
testing in professional version. Is there a way for me to get to know,
how good my test coverage is? Is there an external tool for me which
can be used to get coverage statistics?
Thanks,
Norbert... more >>
Casting numeric enumeration value does not throw exception
Posted by Steve Wilkinson at 5/19/2008 3:55:01 AM
This may or may not have been asked before so forgive me if it has.
Why is an exception not thrown when a numeric value is cast to an enumerated
type which does not contain that numeric value ?
e.g.
private enum TestEnum
{
None = 0,
Value1 = 5,
Value2 = 10,
Value... more >>
why cant i place a call to a computer or moble phone
Posted by terry at 5/17/2008 7:14:00 PM
the windows live call screen pops up but i cant do anything... more >>
|