all groups > dotnet general > march 2006
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 31
Supress the garbage collector
Posted by Arnie at 3/31/2006 3:42:16 PM
Hey Folks,
I know this is taboo but we have a long running highly availble app that is
being affected by the garbage collector.
In .NET 1.1 there were issues because of the aggressive GC and under 2.0 it
appears much worse (i.e. the garbage collector is even more aggressive).
We have no... more >>
disabling controls by checking off a radio button when the form loads
Posted by helpful sql at 3/31/2006 3:42:12 PM
Hi,
I have 2 radio buttons on my Windows form control. The radio button's
CheckedChanged event disables or enables other controls on the form based on
the value of the Checked property.
When the form loads, I want to check off one of the radio buttons. So I
put the code to check off m... more >>
creating a timer in vb.net
Posted by av at 3/31/2006 3:35:01 PM
im having a hard time creating a timer in vb.net..
the program should run this way: the timer should only start when you press
a button then stops when presing it again..
my problem is that, how to make an output that will sum up all of the time
spent..
could you please provide me a sample co... more >>
Ad Rotator
Posted by Mark A. Sam at 3/31/2006 3:11:05 PM
Hello,
Does anyone know of a third party ad rotator that automatically changes the
images? It seems like the ad rotator in that comes with Visual Web
Developer changes images only when the pages is refreshes. Is that correct?
Thank you and God Bless,
Mark A. Sam
... more >>
Socket Listen for single connection
Posted by Yofnik at 3/31/2006 12:48:55 PM
I am writing an application that simulates a TCP device that only
accepts one connection at a time. For my application, I would like
connection requests to fail if one already exists. So far I have the
following code:
IPAddress ip = Dns.Resolve("localhost").AddressList[0];
Socket s = ne... more >>
VB/C# interop question
Posted by Stedak at 3/31/2006 12:33:01 PM
We are using a VB6 COM dll in our C# application. Is it possible to create an
interface on the VB6 side that our C# application would implement and pass
back as a parameter into the VB6 app?
I understand the VB6 app would need changed. Where would I find a sample if
it is possible?
Than... more >>
XSD to TypedDataSet - 90 column limit?
Posted by John Mark Howell at 3/31/2006 11:52:29 AM
I'm trying to generate a typed dataset from an XSD, yet if I add more than
90 columns in the XSD I don't see any of the public methods on the type
datatable object. I can replicate this easily and consistently in several
projects. Is this a known limit?
--
John Mark Howell
Blog: jmarkho... more >>
Passing List<double> to a C++ Class Library from C#
Posted by jamie at 3/31/2006 11:42:24 AM
hi,
I'm trying to pass a List<double> array from C# to a C++ class library
but I get the following error:
"No overload for method 'zzz' takes '1' arguments"
My C++ method in the library has 1 argument:
zzz(List<double> x)
and i'm calling it from C# with:
List<double> test = new List<do... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Newbie -Public Variables Initialization & Scope
Posted by Sega at 3/31/2006 11:32:02 AM
In .net when and how are public variables initialized - for each new user
session or for the application as awhole? Do all users get the same info in
public variables? If a userA signs on and public variables are set to
values, when userB signs on, does he get a different set of public varia... more >>
GetLongPathName API
Posted by satelite at 3/31/2006 9:35:59 AM
I am having some strange problems with using the GetLongPathName API in a
..Net app that I am writing. Simply put, the app runs a process (invoked from
a dialog) that writes out temporary files to a scratch workspace. For
reasons that would take to long to explain, I am given a path to the s... more >>
IndexOf(string array) Can it be done?
Posted by JP at 3/31/2006 8:49:51 AM
I have a piece of code where a need to look for specific patterns in a
string. Because there are over 20 patterns I want to place these in a string
array for quick access
if(myValue.IndexOf(myArray)!=-1)
{
//Replace this pattern with a value from another array
}
I tried doing this in... more >>
Can't close EXCEL from VB.NET
Posted by SteveS at 3/31/2006 7:22:01 AM
I'm attempting to close EXCEL from within my VB.NET application.
Using the excel object library to write data to my spreadsheet is working
fine but when I try to quit application object it does not work. I know this
because I can still see the Excel application running in Task Manager.
How ... more >>
Calling unmanaged function
Posted by Peter Schmitz at 3/31/2006 7:12:02 AM
Hi,
I've got a rather old DLL that compiles properly with the 'Multi byte
charset' option under VS2005. Now, I cannot call any functions of this dll
out of a VB .net application (would need 'Use Unicode' option for that..). As
I do not want to rewrite the whole application for unicode usage... more >>
HELP: DllNotFoundException in .net application
Posted by Andreas at 3/31/2006 5:24:02 AM
Hi,
I'm writing a .net windows service that makes use of some C++ Dlls (written
by myself) - actually it calls some functions that are declared as exported
functions in the *.def file.
Now, when I start the service, I receive a DllNotFoundException saying that
my dll was not found - alth... more >>
Performance counter category
Posted by Andreas at 3/31/2006 4:42:01 AM
Hi,
I just created a new .net windows service that makes use of some performance
counters in its own category. Unfortunately, when I run installutil.exe on
the service binary to install, the category is not created, nor are the
performance counters installed...any ideas why? (service is of ... more >>
USB Not Working
Posted by John C at 3/31/2006 3:47:01 AM
When I connect any device (digital camera, USB Memory stick) to the USB port
, i cannot get the device to function.
It will create the 'Remove the USB Device Safely' popup however.
In device manager all the USB related items are running properly.
It just doesn't open up the usual selection me... more >>
Trackbar color in c#
Posted by Kris at 3/31/2006 1:29:02 AM
Hi.
We are developing an application in VS2005 in C#, .NET, that has lots of
tabs. On one of these tabs, there is a horizontal trackbar.
However, we are unable to set the background color of the trackbar to
trasparent.
The best would by transparent . Becouse the tabs are gradiently colored.... more >>
Unicode, encodings, and asian languages: need some help.
Posted by apprentice at 3/31/2006 12:12:45 AM
Hello,
I'm writing an class library that I imagine people from different countries
might be interested in using, so I'm considering what needs to be provided
to support foreign languages, including asian languages (chinese, japanese,
korean, etc).
First of all, strings will be passed to ... more >>
Patterns anyone?
Posted by Jim Hubbard at 3/31/2006 12:00:00 AM
I am looking for patterns for a distributed .Net application for a small
retail chain.
The owner wants the stores to have access to all data (no matter which store
it comes from) in real time. In the case of an internet outage, the store
owner would like for the individual stores to still ... more >>
From VB.NET to Word 2003
Posted by Pieter Coucke at 3/31/2006 12:00:00 AM
Hi,
With my VB.NET 2003 application I want to generate reports in Word 2003.
I should be able to:
- use eventually some template (with the header of the company etc) and ad
my info to the document
- be able to add an image
- be able to add and fill tables
But all of this should have a fl... more >>
Regular expression questions
Posted by siddharthkhare NO[at]SPAM hotmail.com at 3/30/2006 8:57:22 PM
Hi All,
I want to capture a word which is in certain range from another word
only if a third word is not between them(anywhere in the range).
Regex r = new
Regex(@"(FirstWord.{1,25})*((?<!ThirdWord\s+)SecondWord)");
So it works fine for a string like this
FirstWord ThirdWord SecondWo... more >>
Anyone know of a .net component for ANSI X12?
Posted by Robert Johnson at 3/30/2006 4:03:03 PM
Provides EDI communications for medical billing
Robert
... more >>
Auto resize and position controls upon form's Resize even
Posted by helpful sql at 3/30/2006 3:26:59 PM
Hi,
Are there any cool controls that would allow me to automatically resize
and repositions controls on my form when the form is resized at runtime?
Thanks in advance.
... more >>
Does DotNet Framework installer v1.1 ServicePack 1 contain v1.1 (without SP) ?
Posted by martinca20 NO[at]SPAM hotmail.com at 3/30/2006 12:10:07 PM
When I go to
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=a8f5654f-088e-40b2
-bbdb-a83353618b38
there is the dotnetfx Installer for v1.1 Service Pack 1 for download.
It seems to that this download does NOT contain (cumulative) v1.1 (without SP).
Is there another... more >>
DataGridView DataBinding
Posted by helpful sql at 3/30/2006 12:00:07 PM
Hi all,
I have a DataGridView control in my Windows Forms application. I am
binding it to a DataTable in another assembly. The name of the assembly is
ActivityListDALC. I want to bind my grid to
ActivityListDataSet.ActivityListDataTable in this assembly. I selected this
DataTable in t... more >>
Windows Service Crashing
Posted by Shawn Meyer at 3/30/2006 11:48:09 AM
A windows service that I developed is crashing unexpectedly. All the
logging/ tracing that I implemented cannot seem to catch the crash. I am
using multiple threads in many different areas.
In the event log I am getting a 7034 error. "Service terminated
unexpectedly."
Here is the questio... more >>
Datagrid
Posted by Shahid at 3/30/2006 11:48:08 AM
Hello,
I am trying to create reports with a customized look.
The data will come from a database but there is a lot of data and i
don't want to put a load on the datbase. Is it possible to load the
data and then create datagrid, pouplate fields in tables, etc?
Thank you in advance,
S... more >>
Function returns two values
Posted by Brian Cahill at 3/30/2006 11:17:14 AM
Hello,
I am trying to write a function that returns two values but I can't
figure out the syntax or if it's even possible.
Private Function CTXScanner(ByVal mfSvr As String, ByVal xmlstr
As String, ByVal xslstr As String)
Try
For Each HotfixItem In M... more >>
Codedom: Adding a Button (or any control for that matter) to a Win Form.
Posted by Microsoft Newsgroups at 3/30/2006 11:14:27 AM
Hi All,
I'm looking for some simple examples of using the CodeDom. While the ones
that I have found have been very helpful, I can't seem to find the
following:
How to add a control to a form.
How to add an event handle to that control just was just added to the form.
If anyone has any... more >>
WebBrowser in .NET Compact Framework eats my events
Posted by spamlaanbroek NO[at]SPAM hetnet.nl at 3/30/2006 10:23:04 AM
The .NET WebBrowser control in the Compact Framework 2.0 is a major
headache.
Once it takes the focus (e.g. by the user tapping on it) it keeps it
and keyboard events are not passed to the form anymore even though
KeyPreview is set to true.
If there are no other controls on the form we don't ... more >>
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
Posted by mlafarlett NO[at]SPAM yahoo.com at 3/30/2006 9:39:20 AM
Alright..I've found lots of info on this error and most say assign
System.DBNull.Value, System.Convert.DBNull, or
System.Data.SqlTypes.SqlDateTime.Null to my stored proc param and the
problem will be solved...NOT. I suspect all of these are the same
thing, however, none solve my problem. What ... more >>
OT: Value of CS Degree
Posted by Verde at 3/30/2006 9:08:07 AM
What is the real-world value of having a university degree in computer
science?
... more >>
CLR error: 80004005
Posted by Kisa at 3/30/2006 8:41:04 AM
I am using Visual Studio 2005 on Windows Server 2003 (Virtual Server). All
service packs are installed. I first had this problem when trying to
distribute an application for testing so I then created a simple application
to try and narrow down the problem but to no avail...
I create a simpl... more >>
So are we ever gonna see .NET framework 2.0 on Mac or Linux?
Posted by Rob R. Ainscough at 3/30/2006 7:26:01 AM
Or for that matter any version of .NET framework?
What I find ironic is the push for "portability and flexibility" yet I don't
actually see it in the real world. Is anyone (not just Microsoft) actually
working on a .NET framework for anything other than Windows platforms? If
so, where can... more >>
Stylesheets are not followed after migration
Posted by Andre at 3/29/2006 9:40:21 PM
Hi,
We had an existing application in ASP.NET 1.1. After migration I tried to
utilize MasterPages. The test showed that format for most of labels is
treated differently e.g. TextBox'es are much toller, Label's do not have
fixed length as they used to, etc...
After some testing I discovere... more >>
Blue screen
Posted by TH at 3/29/2006 8:15:01 PM
So far twice while playing guild wars my computer will stop and the screen
goes blue no message just blue just installed a new video card Radeon 9800
and the drivers are new and good.Card is instelled properly I believe what
could be the problem. Any help would be greatly appreciated.... more >>
Create Image From Stream
Posted by John Daly at 3/29/2006 5:01:02 PM
Does anyone know how to create an image (JPEG) from an HTTPResponse object? I
am working on system that has a map pop up from our GIS department. I want
create an image at runtime from this popup and display that image on the main
page instead of opening a new window. This image will be a memo... more >>
VB and C# code together in VS2005
Posted by Johndow at 3/29/2006 4:29:51 PM
I believe it is a feature in VS 2005 you can write VB and C# in the same
project.
It is ture if the project type is a web project. However in a libary project
that compile to a DLL, once I select a language to start up, I cannot have a
class of another language compiled.
Anyone know is it ... more >>
Suspend MessageQueue.BeginReceive Operation...
Posted by Jason Richmeier at 3/29/2006 2:52:04 PM
I have been unable to locate an answer for this question because (1) it is
late in the day and my eyes are tired of looking at code and documentation,
(2) I am new to this area of the .NET framework, or (3) a combination of (1)
and (2).
I am looking at using messaging in an application I am... more >>
Special Folders in VB 2005
Posted by DCC at 3/29/2006 2:52:03 PM
I need to resolve Windows special folders. From what I have read it would
seem that using CSIDL's and SHGetSpecialFolderPath and SHGetFolderPath was
the way to accomplish that in VB6 and VB.NET. Is this still the best method
in VB 2005? If so does anyone have a working example of how to dec... more >>
Scrollbar Problem
Posted by Steve Barnett at 3/29/2006 2:31:08 PM
I think I'm going nuts... Put a scroll bar control on a form and in the
form_load method, initialise it as follows:
vScrollBar.Minimum = 0;
vScrollBar.Maximum = 10;
vScrollBar.SmallChange = 1;
vScrollBar.LargeChange = 10;
vScrollBar.Value = 0;
vScrollBar.Visible = true;
In the vSc... more >>
Editable drop down control
Posted by kafi at 3/29/2006 12:39:02 PM
Hi All;
I am looking for an editable drop down control that can be used on a web
page using ASP.NET.
The reason I need an editable DDL is that on my web app. (using ASP.NET) I
have a DDL that has a list of materials, if user cannot find the material
that he/she wants they should be able ... more >>
Asynchronous Design Pattern Using ThreadPool
Posted by colinjack at 3/29/2006 12:38:56 PM
Hi All,
I've been using the original (non-event based) asynchronous design
pattern using delegates. It works fine but performance wise I know
using the ThreadPool is supposed to be far better, so I wondered if
anyone had any examples of the best way to do this.
I've obviously had a look mys... more >>
Ver 2.0 FTP issue
Posted by Bill Musgrave at 3/29/2006 12:25:17 PM
I have a routine that logs on to an FTP server, and tries to get the
filesize, to determine whether the file exists or not.
I am getting inconsistent behavior between 2 internal ftp servers; one is a
windows2003, the other unix.
The attached code shows what I am doing. If I log to the window... more >>
Getting list of user groups
Posted by Cleyton at 3/29/2006 12:11:01 PM
Hello!
I need to get the user groups in a machine, because i need to verify
dynamically what's the name of the group "Everyone" in different windows. For
example, in windows in portuguese the name of the user group "Everyone" is
"Todos", so i need to know what's the name of this user group.... more >>
REPOST: preventing more than one user from working on the same record
Posted by helpful sql at 3/29/2006 10:56:22 AM
Hi,
I am working on an app that will display the list of all scheduled call
records in our database to the users. All users of the application will see
the same list of call records and will select any record and try to call the
contact person for that record and edit the record. Now, my q... more >>
MS Virtual Server and System.Timers
Posted by Dave NO[at]SPAM PTE at 3/29/2006 10:27:02 AM
MS Virtual Server 2005 (not R2) with .Net 2003
I created a Console App and A windows form both with Timers in it. For the
console i used system.timers and the windows form i used
system.windows.forms.timers.
Now for the problem, with both Apps the timers will stop for no reason. I
mea... more >>
Stack size problem with managed code
Posted by Ali at 3/29/2006 9:39:03 AM
Hi,
I got stack overflow errors while using an unmanaged dll from managed c#
application. When i use editbin.exe to increase stack size of app , it works.
Is there a way to increase stack size of app (or most probably Clr) so that
app starts with a larger stack, like using the old /F switch i... more >>
Application Config File Overwrite Problem .Net 2005
Posted by mmitchell NO[at]SPAM capstonetechnology.com at 3/29/2006 9:21:22 AM
I have a VB.Net 2005 solution that uses an installer project to
install.
When I do an install I would like the app.config/application config
file to be installed only when there isn't one already on the users
workstation. I don't want to overwrite the settings every time I
update the applicat... more >>
Locked Control on Web form
Posted by kafi at 3/29/2006 9:17:04 AM
Hi All;
I am trying to find a way to make my locked control more visible on a web
form.
When I lock a control and display it on a web form (ASP.NET) the control is
barely visible and it is hard for users to see it. Is there a way to make the
control bit more visible?
A locked control on... more >>
|