all groups > dotnet framework > october 2007
Filter by week: 1 2 3 4 5
dynamically named controls
Posted by Pete Morris at 10/31/2007 11:57:11 PM
question about VB 2005 express .
is it possible to refer to controls dynamically?
I mean instead of referring to [ textbox1.text] can I have a
mystring = "textbox1"
then refer to the control named in mystring?
Is that possible? What's the syntax for it?
specifically, I have tex... more >>
Regex problem
Posted by Barry at 10/31/2007 8:14:06 PM
Hi
I need to capture
/contract_info/index.asp?action=Delete&site=DB&id=17016852
from
dim s as string = "<a
href="javascript:NewWindow('/contract_info/index.asp?action=Delete&site=DB&id=17016852')">Details</a>"
Dim mtch As Match = Regex.Matches(s, """javascript:NewWindow((.*?)",
Re... more >>
no .NET framework 2.0 configuration utility
Posted by Jurjen de Groot at 10/31/2007 5:33:26 PM
Hello,
I'm working on an XP-machine (all updates installed). I want to be able to
run an application from a shared drive, for this to work you have to allow
this using the .NET framework configuration utility, I only see this tool
for the 1.1 version of the framework in my Administrative to... more >>
Administrator Credential Check
Posted by Sid Price at 10/31/2007 4:20:25 PM
My client is asking that when their application is run by a regular user an
administrator level user be able to enter their credentials to enable
certain advanced features. The application does not need to run with the
admin's credentials, we just want to validate that the user asking for the ... more >>
Monitor.Pulse allows thread race
Posted by msdn NO[at]SPAM comsquared.com at 10/31/2007 3:51:00 PM
Here is a quote from MSDN regarding the behavior of Monitor.Pulse:
“The thread that currently owns the lock on the specified object invokes
this method to signal the next thread in line for the lock. Upon receiving
the pulse, the waiting thread is moved to the ready queue. When the thread ... more >>
Instance Scoped Settings
Posted by Sid Price at 10/31/2007 2:34:44 PM
I am writing an application that needs to be a multi-instance application.
With VB.NET 2005 this is pretty straight-forward except that I can not find
any information about saving instance specific settings. The idea would be
to have an instance identifier passed into the application from the ... more >>
Tool for Converting C to C# ?
Posted by lucius at 10/31/2007 12:02:29 PM
I know the Java Language Conversion Assistant exists for Java->C#,
what is there that does the same for ANSI "C"?
I have some console applications and some console/curses applications
that have straigth C source that compile on a Unix platform that I
would like to conver to C# on .NET.
... more >>
wpf - databinding problem
Posted by Rolf Welskes at 10/31/2007 1:42:47 AM
Hello,
because there are no news group for window presentation foundation and one
has told me I can use this, here my problem:
I make the following binding in code:
SolidColorBrush mySolidColorBrush = new
SolidColorBrush(Colors.Green);
Binding bdx01 = new B... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Very unefficient binary stream
Posted by Jaakko Salmenius at 10/31/2007 12:08:48 AM
Hi,
..NET 1.x uses very unefficient way to store binary data to a resource stream
(e.g. .resources file). For example when framework stores System.Char or
System.Boolean it actually serializes the whole type and the value. As the
result it takes 20 to 30 bytes to store a single char or bool... more >>
Windows workflow foundation question
Posted by Roar Jøssund at 10/30/2007 4:32:13 PM
Hello,
I have a workflow related question. WF books typically shows samples where
the workflow directly shows user interface to the user. I want to have a
smart client and a n-tier architecture. According to
http://msdn.microsoft.com/msdnmag/issues/06/12/ServiceStation/fig04_L.gif
WF shou... more >>
HttpWebRequest inconsistency 8-[
Posted by Pascal Soveaux at 10/30/2007 4:14:17 PM
Hi,
WebResponse contentlength returns an Int64 BUT HttpWebRequest.AddRange
takes an Int32.
Please point me to the specification that requires a range to be pass as
an Int32, AFAIK 1 or more digit is not a synonym for Int32.
Here is the detail of the communication.
I : "Server, tell m... more >>
Ref. overloaded method in XML comments
Posted by Paul S at 10/30/2007 1:06:00 PM
Hi
In a class InfoCollection I have 2 overloads:
public virtual DataSet Update()
public virtual DataSet Update(UpdateType ut)
that I reference in the documentaion on another method
/// <summary>
/// Delete this object and removes it from the collection.... more >>
VB Assistance
Posted by kirad832 at 10/30/2007 11:18:01 AM
I am working on an assignment and need some assistance if anyone could help:
Need to use a for next statement and give a value to five elements usin a
one dimensional integer array value
So far I have
Sub Main()
Dim integer As Integer
Dim Value as Integer
Value = 8
For Integer = 1... more >>
Installing Raid drivers on XP with no floppy drive
Posted by davlyn at 10/30/2007 10:35:00 AM
I have just upgraded to a Dell XPS 720 which arrived with Vista Ultimate
installed. I can1t use half of my programs properly so decided to partition
the drive and put XPPro back on until Microsoft sort out all the bugs with
software.
I have a Raid 0 configuration of 1.35 TB which I roughly sp... more >>
VS.NET 2005 solutions and projects ??
Posted by jobs at 10/30/2007 10:04:01 AM
kinda confused.
I have this folder called C:\PROJECTS with a bunch of projects .. some
are websites, some are webservices, one is a console ap, another is a
Data Access layer (I presume classes).
I'm suppose be taking over support for this code so the folder was
dropped off on my local mach... more >>
Newbie Question - Pass a parameter when consuming XML feed
Posted by Bishop at 10/30/2007 8:46:27 AM
I use the following code to consume a XML feed and populate a dataset.
Dim myReader As System.Xml.XmlTextReader = New
System.Xml.XmlTextReader(myXMLURL)
Dim ds As Data.DataSet = New Data.DataSet()
ds.ReadXml(myReader)
Can anyone point me in the right direction for changing this code to pass... more >>
How do I downgrade from build 1378 to 832?
Posted by Faedros at 10/30/2007 4:12:01 AM
I installed VS2008b2 and as part of that got .Net framework 2.0.50727.1378.
since we use 2.0.50727.832 in our development work and the two versions are
not 100% compatible (e.g. SortOrder is defined in two places in 1378), I
would like to downgrade to 832 again. How do I do that?
I tried r... more >>
Referncing generic in XML comments
Posted by Paul S at 10/30/2007 3:04:01 AM
Hi
A have a generic class - InfoCollection<T>
The code comment for my constructor is:
/// <summary>
/// Instantiates a new instances of the <see
cref="InfoCollection[T]"/> class.
/// </summary>
I get a warning in the compilation saying that the comment has sy... more >>
interface
Posted by Bhuwan Bhaskar at 10/30/2007 12:00:00 AM
Hi,
How can I use the functions in class / object if they are same in interface.
Code is attached. I want to implement function f of i1 and i2 in the
objcet.
Thanks and regards.
Bhuwan
interface i1
{
string f();
}
interface i2
{
string f();
}
public class... more >>
asp.net config...why doesn't it create membership provider?
Posted by Darrel at 10/29/2007 8:26:03 PM
So I'm reading/watching tutorials showing me how to set up roles and users
via the Web Configuration Wizard.
However, I constantly run into issues with it just not working.
It appears that to enable all of this, it's supposed to be adding
information to my web.config file for me:
http:/... more >>
Closing SafeHandle
Posted by valentin tihomirov at 10/29/2007 5:21:02 PM
The SafeFileHandle is an extension of SafeHandle, which requires Close() or
Dispose() after used according to the docs. There are many examples on using
the named pipes in .Net. All the examples expoit
FileStream(CreateFile(PIPE_NAME)). You may look at
http://blog.paranoidferret.com/index.ph... more >>
VB.NET - .NET framevork, and unit testing book recommendation needed!
Posted by gamesforums NO[at]SPAM hotmail.com at 10/29/2007 2:06:37 PM
Hi!
I've been programming in VB.Net and done testing with TypeMock and
MbUnit (Testdriven.net) for about 2months now at work. I can see that
my testing skills and particular my knowledge about the .NET framework
is far too weak. Far to often I choose to implement custom stuff
that's already a... more >>
can't install or uninstall dotnet framework
Posted by Pete Morris at 10/29/2007 1:43:26 PM
hi, I'm having problems trying to install the .NET framework.
Every time I try to run the installer I get a message saying
that the patch packet could not be opened.
Trying to uninstall doesn't work eiter.
At the moment the Add and remove programs control panel
shows two installed Dotnet... more >>
Registry problems
Posted by dudaudio at 10/29/2007 10:31:00 AM
I am unable to load any programs after a major crash of Vista Home Premium.
The programs load ok (eg Auturoute 2007) but when I try to run them I get
told that my registry entries are incorrect and to reload the program again.
I have tried this and get the same problem.
Anyone got any ideas?
... more >>
What type objects can we can not serialiaze in dot net ?
Posted by Bhuwan Bhaskar at 10/29/2007 12:00:00 AM
Hi,
What type objects can we can not serialiaze in dot net ?
Thanks N Regards,
Bhuwan
... more >>
wpf net 3.0 Changing Colors in a bitmap
Posted by Rolf Welskes at 10/28/2007 11:29:50 PM
Hello,
because there are no news group for window presentation foundation and one
has told me I can use this, here my problem:
I have a bitmap in wpf for example using BitmapImage.
Now I want to change brightness, Colors etc.
In gdi+ this was done by using a color-matrix, in windows pres... more >>
Key code activation
Posted by T Bunch at 10/28/2007 3:36:00 PM
When I go to reinstall vista I cant activate the key code because it says it
has been used already.
Please help... more >>
.NET Framework 2.0 Configuration Tool
Posted by JJ at 10/28/2007 10:17:01 AM
I'm running Vista Ultimate 64-bit. Whenever I start up the .NET Framework 2.0
Configuration tool, it always crashes on me before I can do anything with it.
It crashes immediately after it starts up.
How do I get around this?
Thanks.
... more >>
Turning off Windows Mail
Posted by aqualifestl at 10/28/2007 8:39:01 AM
I am trying to install internet secutiry software but keep getting a message
saying I can't remove or install this program with Windows Mail running. I
have tried just signing out and closing windows mail but continue to get the
same message. How can I turn it off completely?... more >>
How to create CHM file for Visual Basic 2005 Project
Posted by tvin at 10/27/2007 8:55:00 PM
Hi,
Please can you help me, i want to create Compiled html help file for my
Visual Basic 2005 Express Edition's project.
Can you advise me please?
Thanks so much
Tvin ... more >>
there seems to be some overhead between SQL Server 2005 and a CLR function written in C#. Why is this?
Posted by DR at 10/26/2007 9:24:21 PM
there seems to be some overhead between SQL Server 2005 and a CLR function
written in C#. Why is this?
I have a simple wraper around System.Diagnostics.Stopwatch.GetTimestamp() :
public partial class UserDefinedFunctions
{
[Microsoft.SqlServer.Server.SqlFunction]
public static lon... more >>
What is the best possible resolution that C# timing tests can get? milliseconds? nanoseconds?
Posted by DR at 10/26/2007 6:16:09 PM
What is the best possible resolution that C# timing tests can get?
milliseconds? nanoseconds?
... more >>
Iterating through the GAC on Mono
Posted by ali.hodroj4 NO[at]SPAM gmail.com at 10/26/2007 11:35:08 AM
Hello, all.
Can anybody point me to documentation about how can I
programmaticaly (via C#) iterate through the global assembly cache on
Mono?
I know how to do it using Microsoft .NET on Windows by using a bunch
of P/Invokes against some COMs. However, that's obviously not a
portable so... more >>
Help With Windows Service
Posted by Charles A. Lackman at 10/26/2007 11:23:59 AM
Hello,
I wrote a Windows Service is VB.NET and it works like clock work every
night. The problems is that the driver I am using to connect to a
datasource become inactive at a period of time. I destroy all it's
dependencies and recreate the connection every time the Windows Service
need... more >>
ClickOnce Installation - Finding 'data' directory
Posted by jd at 10/26/2007 7:56:27 AM
Hi, we're trying to get to grips with using ClickOnce installers and
are having some problems. Once installed, the majority of the
application will reside in the following directory:
C:\Documents and Settings\<username>\Local Settings\Apps\2.0\<x>\<y>
\<z>
where <x>, <y> and <z> are seaming... more >>
a .net framework bug
Posted by Shwu at 10/25/2007 3:12:12 PM
I don't know where to report a bug to MS.
Here is the bug description:
I have an activeX created by ATL/C++, which shows a tree view with multiple
state checkboxes and icons. It works fine to embed the activeX to the main
form of a C# form application. If I create another subform to host the... more >>
Could not load file or assembly
Posted by Sehboo at 10/25/2007 2:55:25 PM
OK, let me try one more time before I give up...
We have an application for .net 1.1 framework. Now I am converting it
to .net 2.0. All our assemblies are strongly named. We are using the
same public keys in .net 2.0 as we did in .net 1.1.
We are using application block but since we have m... more >>
ListDictionary/NameValueCollection question
Posted by Vikas Manghani at 10/25/2007 8:25:00 AM
Hi
I have a situation wherein I need hashtable type functionality and at the
same time, the collection must preserve the order of the items.
In other words, if I add items
Key Value
"a" "Val - A"
"X" "Val - X"
"b" "Val - B"
When I enumerate over the collection, I ... more >>
Open Home Page and Start Without Add-ons
Posted by jens-berninger at 10/24/2007 11:01:00 PM
Operative Systen WinsowsXP-Pro SP2.
IE 6 or IE 7
Normally you get the choises "Open Home Page" and "Start Without Add-ons"
when you right click on the Internet Explorer icon on the desktop.
On 3 different PC's I have experienced that these choices disappears. It
means that when you try starti... more >>
sending an email from windows application .net 2.0
Posted by Sridhar at 10/24/2007 3:45:01 PM
Hi,
I have created a windows application to send emails using vs 2005 in
vb.net. I am having problems sending the emails. The operating system on
which this application is run is windows vista business. we have an exchange
server 2007 that is in the same network. I am trying to send the e... more >>
easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function
Posted by DR at 10/24/2007 3:00:34 PM
easiest way to upload a C# class library to a SQL server 2005 and deploy as
CLR function
Do I have to upload the .dll and then run sql command to load it into sql
server, or is there a more integrated way to do this in visual studio 2005
with a SQL Server Project? or do i have to manualu up... more >>
.NET Runtime 2.0 Error - in the Application Event Log
Posted by SteveS at 10/24/2007 1:01:02 PM
EventType clr20r3, P1 perfws.exe, P2 1.0.0.0, P3 47151b11, P4 perfws, P5
1.0.0.0, P6 47151b11, P7 32, P8 2b7, P9 system.exception, P10 NIL.
I am running a Windows Service application that does multithreaded
asynchronous HttpListeners and Socket calls.
I am catching all exceptions in my cod... more >>
Strong name validation failed
Posted by Sehboo at 10/24/2007 12:41:53 PM
One more try since I don't have the option to remove PublicKeyToken as
somebody pointed that here..
We are using enterprise library (EL) in our application. We want to
upgrade our application from .net 1.1 to .net 2.0. Since we have
changed code in enterprise library, we can't just go with... more >>
Spot the Bug: Fun Concurrency Bug
Posted by Chris Mullins [MVP - C#] at 10/24/2007 11:19:56 AM
I hit this bug last night in some test code I had written. It took a few
minutes to figure out what the root cause was, and it left me thinking,
"Wow. That was an interesting one that doesn't come up very often!".
So, for fun, who sees the bug and can explain why it's happening?
List<Threa... more >>
REF Error
Posted by sheetz0507 at 10/24/2007 8:43:00 AM
I am receiving REF errors on a spreadsheet where I track hours for drivers.
How can I correct this error without copying and pasting a new column for
each person?... more >>
Multiple GC.Collect Calls...
Posted by ben.heebner NO[at]SPAM gmail.com at 10/24/2007 8:20:02 AM
Howdy everyone. I've been looking online for the past few week about
calls to the garbage collector in .NET. Current I'm using code that
through inheirtance is using a class that invokes the GC.Collect call
every 10 minutes. I'm working on a dataserver and the genius that put
in the GC.Collect... more >>
EntLibConfig.exe - strong name validation failed
Posted by Sehboo at 10/24/2007 7:58:10 AM
We are using enterprise library (EL) in our application. We want to
upgrade our application from .net 1.1 to .net 2.0. Since we have
changed code in enterprise library, we can't just go with the newer
version, we will have to keep the old version.
All out assemblies are strongly named!
I ... more >>
When to use class and when structure
Posted by Bhuwan Bhaskar at 10/24/2007 12:00:00 AM
Hi,
When to use class and when structure in our application?
Thanks,
Bhuwan
... more >>
Multithreaded application on a MultiCPU/MultiCore machine
Posted by Giulio Petrucci at 10/24/2007 12:00:00 AM
Hi there,
what happens if I write a multi-threaded application and run it on a
multi-processor or multi-core machine? I mean: are all the threads
executed on the same core/CPU the same? Or can they be executed on
different CPUs/cores? Can you link me any documentation abou this issue?
Th... more >>
Process.Start throws exception when starting firefox after firefox crashes
Posted by Gene Chang at 10/23/2007 4:24:25 PM
I have an application that starts the default browser by using
Process.Start(URL). The one time that I get a file not found
exception is when Firefox has crashed and comes up with the "Firefox -
Restore Previous Session" screen.
It does seem to start up but for some reason an exception is thr... more >>
|