all groups > dotnet framework > january 2008
Filter by week: 1 2 3 4 5
Message Resource DLL C# integration
Posted by Hamish at 1/31/2008 5:06:00 PM
I'm looking to set up a .NET service (written in C#) that will write events
to the event log and use a message resource dll to provide localized message
text for the events.
The last time I set this up was some time ago (NT4 project circa 1998). I
was expecting the API to the event log to hav... more >>
System.Diagnostics.ProcessStartInfo
Posted by Mark at 1/31/2008 12:34:02 PM
Hi...
I was trying to spawn a process and not have it create a new window. No
matter how I set CreateNoWindow, it always creates a new window when it
spawns. Does this property simply not work? Should I be using windowstyle =
hidden instead?
ProcessStartInfo pi = new ProcessStartInfo(... more >>
Different versions of DLL files for the same .NET build...why?
Posted by Avenger at 1/31/2008 11:37:01 AM
I have .net v2.0.50727 installed on three systems. One is Win2K Pro, win2k
server and the other is Vista Home Premium.
I built an applications that generates RTF files on the fly and noticed a
difference in the output file size from one platform to the other. Not a
small difference...bu... more >>
DataTable.Select Not Working In DataGridView events
Posted by Tristan at 1/31/2008 9:23:04 AM
Hi,
I have a custom DataGridView and the following simple override:
protected override void OnCellValueChanged(DataGridViewCellEventArgs
e)
{
base.OnCellValueChanged(e);
string filter = "MyBooleanColumn = 1";
DataRow[] rows =
((DataTable)this.DataS... more >>
Modal dialog issues
Posted by greg at 1/31/2008 7:44:04 AM
I've got an application, and I'm poping up a form modally using
TestForm aForm = new TestForm();
aForm.ShowDialog(this);
It works fine.
If I click outside the area of the modal form on the other form, it does not
give the other form focus. Good! It also does an error beep once, also good... more >>
dotnet 2/3 Vs2008 - uri-syntax not explained
Posted by Rolf Welskes at 1/31/2008 1:39:29 AM
Hello,
siince .net 3.0 Uri is highly used for access to images etc.
But in the past only there where simple Uri-Syntax, now it's complex
and I do not find anywhere in the msdn the describtion of the syntax.
For examle Uri u = new Uri(http://mypage.com) ist no problem,
but what are things like... more >>
win32/zlob.gen-HELP
Posted by Karen at 1/30/2008 1:56:01 PM
If anyone has any advice...please help! On Sat. my son downloaded "Windows
XP Antivirus 2008" and since then it's been a disaster. I just downloaded the
Malicious Software Removal Tool and it detected Win32/zlob.gen. After the
full scan was completed the report stated that the Trojan was remo... more >>
What happens with GAC when you uninstall .NET Framework completely?
Posted by Markus Strobl at 1/30/2008 12:52:31 PM
Hi,
basically the subject tells it all :)
When we're moving to .NET Framework 3.5 we were planning to completely
uninstall all previous versions of .NET Framework (1.1, 2.0, 3.0) on our
client's PCs.
As there are a lot of our own components (mostly based on .NET 2.0)
installed in the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
GC.GetTotalMemory vs. Process.PeakPagedMemorySize64
Posted by rick at 1/30/2008 12:46:53 PM
The Task Manager reflects the PeakPagedMemorySize64 value but
GC.GetTotalMemory a totally different. Currently my C# windows service
is reporting 596,439,040 for PeakPagedMemorySize64 and continues to
rise (the app has been running 2 days now) and the GC is reporting
14,292,520 and fluctuates up... more >>
framework compatability
Posted by Bob Bins at 1/30/2008 10:44:04 AM
When upgrading a application from 1.1 to 2.0 3rd party assemblies needed to
be rebuilt for the 2.0 framework so they didn't have the performance hit of
running in side by side mode.
Is there any benifit to recompiling version 2.0 assemblies to 3 or 3.5 when
being used in a 3.0 or 3.5 applic... more >>
emails without extension
Posted by John S at 1/30/2008 8:04:03 AM
Sometimes I get an email with an attachment that is called noname without
extension. I have tried to open with various programs but no luck. I use
gmail and windows xp. Thanks
--
John S... more >>
Minimize problem when using minimize to system tray
Posted by shawrie at 1/30/2008 4:30:06 AM
Hi
can someone help?
I have some code that on startup minimize's the form and puts it in
the system tray. This part works fine and i can see my icon in the
system tray. If the user chooses to restore the form and then minmize
it i get just the title bar of the form at the bottom of the deskto... more >>
Dictionary<TKey, TValue> with user-defined class implementing IEquatable<T> as key
Posted by craig.wenger@gmail.com at 1/29/2008 3:17:59 PM
I have a question about using the generic Dictionary class in .NET 2.0
with user-defined classes as the key.
MSDN says (http://msdn2.microsoft.com/en-us/library/xfhwa508.aspx):
Dictionary<TKey, TValue> requires an equality implementation to
determine whether keys are equal. You can specify a... more >>
How to XPATH on HTML?
Posted by Siegfried Heintze at 1/29/2008 2:47:49 PM
I want to use an HTTP client to fetch a web page and then extract bits of
information via XPATH expressions. Both the nekohtml and JTidy libraries in
java will do this. Is there something in Microsoft Land that will do this?
I think I asked this question a year ago and did not get a response.... more >>
how to determine what language a c# string is written in? is there any C# method to take a string and return what language it is in? e.g. english, hin
Posted by DR at 1/29/2008 1:27:33 PM
how to determine what language a c# string is written in? is there any C#
method to take a string and return what language it is in? e.g. english,
hindi, spanish, etc.
... more >>
regular expression help
Posted by Jeremy at 1/29/2008 11:17:32 AM
I created a regular expression to parse a line in a csv file;
(\"(?<word>[^\"]+|\"\")*\"|(?<word>[^,]*))
It is capable of taking a line such as field1,field2,field
3,123.12,"1,234.56" and matching each value between the commas into the word
group, so I get
field1
field2
field 3
123.12
... more >>
Cascading DropDown ToolTips/Title
Posted by deano at 1/29/2008 10:53:51 AM
Hello,
Is it possible to have tooltips/title show up in a
cascading
dropdown list, similar to how it works in a regular
dropdown list? If so, how?
Thanks, Dean... more >>
Tooltip Problems
Posted by greg at 1/29/2008 7:46:02 AM
(reposted hopefully with proper MSDN info so I get support on this)
I'm using VS 2005.
I'm trying to use ToolTip's for some mandatory field validation. If a user
presses "OK" in my application, it will highlight any mandatory fields with a
nice baloon saying that field is mandatory.
I'v... more >>
Repeater Pagination
Posted by Anil Abraham at 1/29/2008 4:17:04 AM
I would like to have a pagination system for a datarepater similar to
on that is in datagridview.
Can anyone share some idea.Now am using the next and previous buttons.
i would like to get a numeric 1234 pagiantion......... more >>
"Extension" properties?
Posted by Arthur Dent at 1/28/2008 12:48:38 PM
Hi all, ... is there any way to use the new CompilerServices Extension
attribute with class *Properties*?
Internally properties are just implemented as a pair of functions (get/set),
aren't they? So shouldn't it be possible to create Extension Properties?
Thanks in advance,
- Arthur Dent.... more >>
Executing gacutil in post-build event
Posted by mustang at 1/28/2008 8:29:01 AM
I am currently working on a project using Visual Studio 2005 and I recently
upgraded my machine to Vista. One thing I am doing in this project is
building all dlls to a common bin folder and then GACing the dlls using the
gacutil command in the post build event. In Windows XP this workied fine... more >>
Error while updating data through dataset
Posted by AVL at 1/28/2008 4:58:01 AM
Hi,
I've a requirement where in I need to read the data from a csv file and
load the data into the sql database. The file has around 1 lakh records. I'm
reading 300 records at a time from the file, loading into a dataset.
From the dataset, I'm reading the rows sequentially,and updating one b... more >>
optional PropertyNameIsNull in Databindings PropertyName Changed pattern
Posted by d-e-j-a-v-u@web.de at 1/25/2008 2:13:48 PM
Hello everybody,
browsing code with the .Net reflector, I found out, that there is an
virtually undocumented feature in the PropertyName Changed pattern used,
when creating a custom control that supports databinding:
A boolean PropertyNameIsNull property, that - if available - will check
if... more >>
Char datatype does some hocus pocus
Posted by Arne Garvander at 1/25/2008 12:32:01 PM
Dim B As Byte = 150
Dim C As Char
C = Convert.ToChar(B)
B = Asc(C)
And the value of B is 63
Why?
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
XmlTextReader and Memory
Posted by andrerus@gmail.com at 1/25/2008 3:52:41 AM
Hi. I've developed an application for Windows Mobile using 3.5 version
of CompactFramework.
My application generally uses (into the heap) approximately 7kB. Then
I decided to introduce a XML configuration feature, but now it needs
nearly 80kB!!!
Looking at the heap, I found a 64kB sized array a... more >>
Bug in Double.MinValue?
Posted by Patrik Kruse at 1/25/2008 12:54:01 AM
This line exectues with an exception:
double d = double.Parse(double.MinValue.ToString());
The error message is "Value was either too large or too small for a Double".
Is this an error in the framwork?
/Patrik... more >>
WPF textbox autogrow
Posted by moondaddy at 1/24/2008 1:44:17 PM
Using WPF 3.5, I have a textbox with it's TextWrapping property set to
WrapWithOverflow.
When the number of lines increases in the textbox, how can I make the height
of the textbox grow to accommodate the all of the lines?
Also, I will need to go in the other direction and make the height ... more >>
Clickonce firefox 2008
Posted by Chuck P at 1/24/2008 12:23:52 PM
In vs05 clickonce only worked with IE.
Does clickonce work in xbrowsers now?... more >>
Winsock error 10004 on UDP Socket ReceiveFrom
Posted by Erik Tamminga at 1/24/2008 10:29:37 AM
Hi,
(.NET Framework 2.0 on Windows 2003 SP1)
I'm getting lots of 10004 WSAEINTR errors when I try to do some UDP
communication. From a packet capture I learned that my application is
responding with an ICMP Port Unreachable after the remote responds to my
query.
Example:
Me -> Re... more >>
Application Physical Path
Posted by mohaaron at 1/24/2008 8:55:48 AM
Can anyone tell me how to get the physical path where an application
lives? What I mean by an application is either a Windows Service or a
Winforms application. I know in asp.net Server.MapPath is what's used.
I need some type of equivelent for a non asp.net application.
The reason I need this... more >>
pdb files for assemblies in GAC?
Posted by Mark at 1/24/2008 8:41:00 AM
Hi...
I didn't see any pdb files actually in the gac directory hierarchy. Is
there anything wrong with putting the pdb files in the gac directory?
Thanks
Mark
... more >>
This should be easy as pie: convert local to UTC and back
Posted by Chad at 1/24/2008 12:44:25 AM
I'm looking for the best way to convert a date/time to UTC and back to
Local.
This has to be built in the Framework, but eberything I try gives me
something other than what I expect!
I was tempted to do get the current offset from GMT and use that IN ALL
CASES to convert to and fro, but ... more >>
What is the actual runtime version of .NET 3.5 framework?
Posted by Alex Chudnovsky at 1/23/2008 10:13:09 PM
Hi all,
I am using release version of VS 2008 in projects targeting .NET 3.5,
however I just noticed that
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()
returns old "2.0.50727" - indicating that the code runs under .NET 2.0.
..NET 3.5 installed just fine - I resorted t... more >>
DataGridView.RowPostPaint event, e.RowIndex is out of range
Posted by Norman Diamond at 1/23/2008 6:58:42 PM
Using C# in VS 2005 SP1 with .Net Framework 2 SP1, I have the following
code:
private void MyDataGridView_RowPostPaint(object sender,
DataGridViewRowPostPaintEventArgs e)
{
DataGridViewRow gridRow = MyDataGridView.Rows[e.RowIndex];
// ....
and it crashes because e.RowIndex is ... more >>
How to deploy an Icon to the desktop
Posted by Arniec at 1/23/2008 3:53:12 PM
Can someone show me some instructions on how to automatically create an icon
during installation of a vb2005 windows application?
Many thanks
--
Arnie... more >>
Itunes error message
Posted by raydor14 at 1/23/2008 3:10:00 PM
I really need help. I am trying to install updates for itunes and I keep
getting an error message. It reads 'documents' is not a valid short name
file. I have fixed this once before but I cannot remember how. Thanks to
anyone who can help!... more >>
Interprocess Communication: I need a mix of Remoting and Webservice
Posted by news.microsoft.com at 1/23/2008 2:21:59 PM
The problem:
I'm writting some software to manage a building.
All the devices (mostly doors and cameras) run a light version of Linux,
with mono inside
And we've got bigger Linux server (with mono inside).
The server need to talk to individual devices (door/camera).
Ideally I like to use re... more >>
HttpListener and HTTP.sys questions
Posted by Mark at 1/23/2008 2:08:00 PM
Hi...
Don't know if this is the best group for this, but didn't see another jump
out at me as a better choice...
I'm just getting my feet wet with System.Net.HttpListener (actually trying
to sort out what a legacy app is doing with it). At first, the whole thing
was confusing; I'm used ... more >>
Disable autorepeat
Posted by MarcG at 1/23/2008 11:39:01 AM
Is there a way to disable the autorepeat keyboard feature that sends multiple
characters if the key is held down? Alternately is there a feature that can
detect and ignore autorepeated characters?
Thx
Marc... more >>
.NET 3.0 breaking Excel printing, any fix yet?
Posted by Thee Chicago Wolf at 1/23/2008 9:07:01 AM
Like many others, we recently found out .NET Framework 3.0 breaks
multiple copy printing in Excel. Still haven't seen any fix to the
issue. KB 944203 doesn't resolve the issue. Anyone know if MS is
working to fix it?
- Thee Chicago Wolf... more >>
Number formatting question
Posted by Gregory Khra at 1/23/2008 7:38:03 AM
I need to print intreger numbers in several columns. Unfortunately
String.Format({0:d8}, i) will append zeros in front of the number. How can I
make it append spaces instead of zeros?
In the other words I am looking for an analog of printf("%8d", i)
Gregory... more >>
ToolTip in the wrong spot.
Posted by greg at 1/23/2008 7:32:01 AM
I'm using VS 2005.
I'm trying to use ToolTip's for some mandatory field validation. If a user
presses "OK" in my application, it will highlight any mandatory fields with a
nice baloon saying that field is mandatory.
I've got this working nicely with, say,
toolTip.Show("This field is man... more >>
how to write a window load event in c# for a xaml window
Posted by moondaddy at 1/23/2008 2:52:52 AM
using c# 3.5, I need to write a form load event in a xaml window's
codebehind, but I have now idea how to start this. can someone please
advise?
Thanks.
--
moondaddy@newsgroup.nospam
... more >>
Frustrated trying to position controls in a xaml window.
Posted by moondaddy at 1/23/2008 2:25:37 AM
I'm trying to position controls in a window and am having a very difficult
time. I want all the controls to be anchored top/left so when I do the
final resizing of the window, all the controls sit in the same position.
However, as I place controls toward the right side of the form, the left
... more >>
readxml serialize/deserialize dataset
Posted by MWT at 1/22/2008 4:55:13 PM
Serialize dataset:
MemoryStream stream = new MemoryStream();
dataset.WriteXml(stream, XmlWriteMode.DiffGram );
stream.Seek(0, SeekOrigin.Begin);
StreamReader sr = new StreamReader(stream);
data... more >>
Native event handle
Posted by Jo at 1/22/2008 2:29:29 PM
Hi all,
I have a mutli-threaded managed app written in C#, from ProcessExplorer, it
shows many event handles without
name. It also shows as 'handle leak' through windows task manager.
I am using v1.1 .NET framework.
Can any one tell me in .NET, which class/method can create native event ... more >>
weak event pattern - wpf / net 3.0 - no example
Posted by Rolf Welskes at 1/22/2008 1:42:18 PM
Hello,
because there are no managed news group for window presentation foundation
and one has told me I can use this, here my problem:
Under Weak Event Pattern(s) you find, how to implement events when you are
not able
to know when to remove listeners from the source, - this is fine.
But ... more >>
Assembly.LoadFrom
Posted by Luis F. Rodas at 1/22/2008 1:01:54 PM
Hi all,
I am using Assembly.LoadFrom( ) to load an assembly:
Assembly as =
Assembly.LoadFrom("C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll");
I noted 'CodeBase' and 'Location' properties from 'as' variable display the
GAC path, that is, the assembly was loaded ... more >>
Framework 3.0 XP Visual Studio 2005
Posted by jlnm at 1/22/2008 5:59:44 AM
Tried to download the 3.0 Framework and I cannot find it. There is a
redistributable...? So the deal is this.
From .Net 2.0 SP1 laod the redist for 3.0. Load the SP1 for 3.0 tried
to install the VS2005 extensions and they cannot find the 3.0
runtime. This doesn't seem like the methodology sh... more >>
.Net Framework Source Code Downloader
Posted by keremskusmezer@gmail.com at 1/22/2008 1:09:11 AM
Hi Everyone,
I have made a tool, which allows you without the use of VS2008 to
download the source code of the framework from the microsoft source
servers.
I also allows you do debug the .Net Framework under VS2005 without the
need of the Microsoft Plugin and offline without any need of
co... more >>
|