Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > dotnet general > june 2007 > threads for june 15 - 21, 2007

Filter by week: 1 2 3 4 5

Is My App Currently Active?
Posted by Thomas Weise at 6/21/2007 7:08:22 PM
In order to find out, if my app is currently active, I'm using API function GetForegroundWindow(). However, as soon as my app opens a dialog (specific window or even just a message box), the handle of the dialog form is returned by GetForegroundWindow(). In case of a message box, I don't even...more >>

asp.net 1.1 to asp.net 2.0 automatic conversion tool
Posted by Partha Mandayam at 6/21/2007 1:15:48 PM
Is there a tool for asp.net 1.1 to asp.net 2.0 automatic conversion? ...more >>

How to do DateDiff() in C#.net?
Posted by Andrew at 6/21/2007 11:33:01 AM
Hello, guys, How to do DateDiff(), as you remember, a powerful and nice VB function, in c#.net? I could not find this funciton. Thanks a lot....more >>

Response.redirect not working
Posted by Doug at 6/21/2007 7:55:54 AM
In the code below, I am trying to go from one asp page to another: For Each tripToAccept As String In tripsToAccept.Split("/"c) dataManager.UpdateTripDetail("Accept", CInt(tripToAccept), Hiduser.Value) Next Response.Redirect("TripAcceptReject.aspx", False) I am not getting...more >>

Easiest way to build a xml fragment (write to string)
Posted by Coen at 6/21/2007 6:54:02 AM
Hi, can anyone tell me 1) what is a easy way to build a xml fragment into a string. I don't what the fragment to be written to file, just in a string will be fine. I can build the xml fragment with the xmlTextWriter, but I don't want to write to a file. But using methods like WriteStartEl...more >>

Why Do Students Need Help?
Posted by joeojih at 6/21/2007 1:24:01 AM
Most students do not have enough time to do their homeworks, assignments, college papers, etc alone. Also most of them, even though they know what to do with respect to their writing assignment, find it very hard to overcome the inertia and hence can't just get started. Besides, Maths problems...more >>

File compression in .NET - for very large files
Posted by Amit Dedhia at 6/21/2007 12:12:16 AM
Hi I want to compress and decomress files. There is GZipStream class in .Net. However this class requires to allocate buffer equal to the file length to zip it (at least all sample code I saw were like that). The file size in my case can be really very large and hence I want something which d...more >>

VC .Net Debug
Posted by stonny at 6/21/2007 12:00:00 AM
In Visual C++. When you finish you typing. CTR +F5 means Build in Release Mode + Run. While F5 means Build in Debug Mode + Run. Is that right? Thanks Stonny ...more >>



Adobe Reader 7.0
Posted by dande at 6/20/2007 10:45:01 PM
I have recently opened a manual downloaded to me by a vehicle manufacturer. The document automatically opened in Adobe Reader 7.0. However the print is poor, the letters being sort of made up of blocks, very close together and so difficult to read. Sorry for the non-technology explanation...more >>

Deleting and creating controls via code
Posted by John at 6/20/2007 6:19:36 PM
Hi Is it possible to enumerate all controls on a form and then save the info in an xml file via code? Is it possible to reverse the process i.e. read info from and xml and recreate all controls on a blank form? I am just trying to find a way to cerate "templates" so users can choose which c...more >>

Foxpro database connectivity Urgent Help please
Posted by smtwtfs007 NO[at]SPAM gmail.com at 6/20/2007 10:58:43 AM
I have an ASP.NET website. I'm trying to connect to a Foxpro database (ADO.NET) with the following connect string: txtConnectionStr.Text = "\\soya4042\Qd\LM\LMS\Data" Dim strFoxProDirectory As String = txtConnectionStr.Text Dim strConnection As String = "User ID=;DSN=...more >>

VS Project Reference
Posted by rwiegel NO[at]SPAM iastate.edu at 6/20/2007 9:01:14 AM
I have created a project in visual studio 2005 that references the excel com. What do I need to do when I deploy the app? I'm sure it is more than just copying over the executable. Thanks Ryan ...more >>

null values in DataGridViewCheckBoxColumns
Posted by PeterW at 6/20/2007 8:52:02 AM
I have a TabControl on a Windows form in which I have various tab pages each with a DataGridView, the first column of which is a DataGridViewCheckBoxColumn and subsequent columns being DataGridViewtextBoxColumns. In each case the properties of the CheckBoxcolumn have been set to not allow...more >>

How do you set the value member of a combo box
Posted by mfm at 6/20/2007 8:49:00 AM
I have recently migrated to VS.Net 2005, and I am struggling to do something very basic with the combo box. I want to manually loop through a data table and add both the display text and the value manually. The reason I cannot bind the combo box to my data table is that there are more than o...more >>

Memory consumption .NET 1.1 Where is the memory before a garbage collection?
Posted by roger.dunham NO[at]SPAM talk21.com at 6/20/2007 7:31:36 AM
I am trying to identify whether a .NET 1.1 application that I have written has a memory leak. I thought I understood how .NET memory management worked, but it appears that there is more to it than I realised. I have created a simple app that creates a byte array which is stored as a member ...more >>

memory consumption!
Posted by Sandeep Thoppil at 6/20/2007 3:05:00 AM
Hi We built a Windows application on .Net 2 framework using Infragistics controls. We got a bug reported from our client complaining high physical memory consumption showing in the task manager and the memory suddenly drops off as they minimize the application. As we analysed the problem we...more >>

app.exe.config and unmanaged code
Posted by Michael.A.Kelley NO[at]SPAM gmail.com at 6/20/2007 2:15:20 AM
I have an unmanaged C++ application that is linked with managed C++ and C# libraries. In one of the C# libraries, I have a Settings file. This seems to load and save just fine to and from the user settings directory (C:\Documents and Settings\Michael Kelley\Local Settings\Application Data \ed...more >>

a clickonce issue
Posted by Tony Leung at 6/20/2007 12:41:19 AM
I am deploying a Windows application in Visual studio 2005 and adding some files to the folder in the application folder (in http://localhot/mytest), how can I also add these files to custom folder (client side) also? Any suggestion? Thanks a lot! ...more >>

Question?
Posted by Rich at 6/19/2007 11:26:16 PM
What language is the .NET framework written in? Does anyone know? Is it written in a .NET language? Just curios. Rich ...more >>

Throw Exception and using Dispose?
Posted by MR E at 6/19/2007 4:37:57 PM
This may seem like a stupid question but in C#: Say for instance I have a set of SQL processes that I run via ExecuteReader(). These processes return several pieces of information to the DataReader, including any SQL exception that occurred (This may include messages I generated b/c somethi...more >>

Mixed Instance Performance Counters Lowercase?
Posted by Spam Catcher at 6/19/2007 4:00:57 PM
Has anyone else noticed that with mixed instance counters... the instance name is lowercase? Is there a way to resolve this? Thanks!...more >>

MY DAUGHTER DELETED FILES!!!!!
Posted by Michelle at 6/19/2007 1:05:01 PM
My daughter deleted several of her files, the problem is some of them were games and such....I cannot repair this, nor get into her files or change her account, obviously there was a file that was deleted along with her stuff, Dell did NOT send me with a Windows XP disk when I bought the puter...more >>

ajax accordion control
Posted by Gerhard at 6/19/2007 12:11:02 PM
I am just stating to use ajax, and have a perfect place to use the accordion control. I have it working fine, but need to have a normal asp button in one of the panes that fires an onclick event as normal. The button works fine outside of the pane, but once I put it in the pane it no longer ...more >>

Detach My VC++ Source code from ClearCase
Posted by Homer at 6/19/2007 11:55:28 AM
Hi All, In my work place we are still using VS6.00 with C++ and are not allowed to use a newer version (to connect to source control). We also use ClearCase as source control software. What I did was to install VS 2008 Beta 1 on my machine and made a copy of my source directory to use VS200...more >>

"Could not load type" error
Posted by Curious at 6/19/2007 8:32:56 AM
Hi, I've got the error as described below: System.TypeLoadException: Could not load type 'CORE.COREUtils' from assembly 'CORE, Version=6.4.2655.23177, Culture=neutral, PublicKeyToken=null'. at CORE.Reports.ImagingStepEngine.RenderReportSection(WorkItem aWorkItem, ReportSection aSectio...more >>

debugging
Posted by Wendy Elizabeth at 6/19/2007 8:00:04 AM
i would like to know if there is a way to 'step through sql server t-sql commands' using one of the sql server 200 tools, sql server managment studio, or viusal studio .net 2005 professtional version? If so can you give me directions on how to 'step through' (debug) the t-sql commands. if not...more >>

The applicationhangs when event is being unhooked
Posted by Amit Dedhia at 6/19/2007 7:27:29 AM
Hi I am developing an application using C++/CLI in Visual Studio 2005. In my application I have following structure. (1) Class A creates instances of Class B and Class C. (2) Class B implements a timer function which repeatedly executes a timer every 250 ms. (3) Class C instance hooks for ...more >>

Regex greedy/lazy problem
Posted by sbparsons at 6/19/2007 3:06:00 AM
I have a scenario where a string is sent in chunks to my app. I need to be able to identify certain tags in this partial string as it arrives. eg <DALFile>xxxxxxxxx</DALFile> I need to be able to have a regex that will capture the start, middle and end of this file based on the tags. The pr...more >>

multilanguage application in one exe?
Posted by Tomasz Grobelny at 6/19/2007 12:00:00 AM
I have a multilanguage application. Now it is compiled to one exe and satellite assemblies with translations. How do I pack all these resources into just one exe file that will contain resources for all the languages? BTW, I'm using VS2005. TIA, -- Regards, Tomasz Grobelny...more >>

Getting a Thumbnail In Vista
Posted by Tim Haughton at 6/19/2007 12:00:00 AM
Hi, I'm hoping someone can help me get a scalable thumbnail from Vista. Vista has a new COM API, IThumbnailCache which backs on to Vista's global thumbnail store. Unfortunately, I can't find it I know it's there, it's in MSDN. I've imported shell32.dll into my C# project which generates all ...more >>

Adding values to a combobox from a set of ENUM constants from web
Posted by Richard Tocci at 6/18/2007 11:35:00 PM
I'm learning Visual Basic using the .Net Framework 2.0. I have been playing with consuming web services in applications. I am using a free web service that gives me information for currency conversion. The web service I am using is: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL ...more >>

SHGetFileInfo question
Posted by .paul. at 6/18/2007 11:06:00 PM
how do i get the My Computer icon using SHGetFileInfo? i've tried this: SHGetFileInfo("", FILE_ATTRIBUTE_NORMAL, shinfo, Marshal.SizeOf(shinfo), SHGFI_ICON + SHGFI_SMALLICON + SHGFI_DISPLAYNAME) but it doesn't work. i'm not sure what the filename for My Computer should be? ...more >>

No apparent equivalent to antialised text when using TextRenderer
Posted by Skwerl at 6/18/2007 12:47:05 PM
I have been unable to draw antialiased text using TextRenderer (although ClearType works just fine, we still need regular antialiased type in some places). Is there a way to generate antialised text using TextRenderer other than setting the TextRenderingHint on the DC in the Graphics paramete...more >>

Add nodes in TreeView using VC++ 2003??
Posted by SeeSharp at 6/18/2007 8:44:01 AM
I'm struggling on this. My goal is to add nodes programmaticaly on a 3-level tree. Unlike C#, VC++ 2003 cannot perform pointer arithmetic on TreeNodeCollection. So I cannot do something like this: this->trVw_CNS->Nodes[0]->Add("Root"); I tried an alternative, adding my root node this way: t...more >>

nce_–_help
Posted by JP at 6/18/2007 6:21:00 AM
I have a C# ASP.NET project. A single aspx page consist of several User Controls. I need each of these user controls to occasionally call the button click of another user control on the page. In order to accomplish this I made the buttons that could be called by other controls PUBLIC and then ...more >>

VB.Net 2005 comms problem
Posted by Tym at 6/18/2007 12:00:00 AM
Not sure this is the right group - but here goes. I kinda expect Dick Grier to jump in on this one ;-) I've got a windows app in VB.Net 2005 which sends and receives text messages via a USM GSM modem. THe app cycles to poll the modem for incoming SMS as well as pausing this cycle to send... ...more >>

Windows XP Pro Won't Reboot
Posted by Born2Sail at 6/17/2007 7:07:00 AM
A security update was automatically received the week of 6/11/07 requiring my computer to reboot automatically. When it restarted, Windows would not reboot. I have tried to remedy the problem via F8 and using the debug and restore options there. What I get is DOS scroll thru a list of dri...more >>

Drop down button
Posted by John at 6/17/2007 4:04:49 AM
Hi I am looking for a drop down button control like Infragistics's ultra drop down button but I don't want to purchase the whole suit for one control. Any recommendations would be appreciated. Thanks Regards ...more >>

How to install apps which require older .NET Framework?
Posted by Sadeq at 6/17/2007 3:18:40 AM
I'm using Vista, which by default ships with .NET Runtime 3.0. I have also installed VS 2005, which has both runtime and SDK for .NET 2.0. Every now and then, I bump into applications which require older .NET frameworks, such as 1.0 or 1.1. A nice trick I learned previously was to monitor the ...more >>

word processing
Posted by maxwax at 6/17/2007 2:47:02 AM
Hi Has any-one anything they can send me to help me practise a home for my nvq level 1 exam....more >>

Free data grid available
Posted by John at 6/17/2007 1:32:28 AM
Hi Several posters have enquired about it in the past. Here is a data grid available for free; http://xceed.com/Grid_WPF_Features.html# I am not connected to this company xceed. Regards ...more >>

Send mail in .NET
Posted by gad at 6/16/2007 11:24:00 PM
I want to write a winforms application in vb.net 2005 that send an email but I know I need the smtp in order to send a mail, but the PCs where I install the program (our customers) don't have smtp so how can I generate a message and send it in email on there PC?...more >>

XML Assistance needed
Posted by Chris at 6/16/2007 9:39:00 PM
Hi, I need to store customers and their emails in an XML file for quick lookup in a small program. I am kind of a bit confused with this XML thing. Do I use XML or this XSD Schema? I came up with this <customers> <customer> <id>1</id> <email>test@test.com</email> <email>test@te...more >>

GetCurrentDirectory question
Posted by pb at 6/16/2007 5:45:14 PM
I am using asp.net and have some code in a file in the App_Code directory. I also have a text file in the same directory that I want to access. This file will always br in the same directory but I will not know the absolute path. When I try... Dim s As String = Directory.GetCurrentDirectory...more >>

Backgroundworker chokes
Posted by Henry99 at 6/16/2007 5:06:00 PM
What happens here? The backgroundworker (bgw) unzips RTF-Helpfiles (up to 1 MB in size). The ProgressChanged-Event gets the unzipped files (to display them in a RichtTextBox) It follows the Trace that prints always what bgw has unzipped and what ProgressChanged received: 1. bgw: HelpFile...more >>

"Recent projects" list updating
Posted by GB at 6/16/2007 2:53:06 PM
I the Start page of the VS 2005 IDE, I would like to be able to delete obsolete entries in "Recents projects" list, but I dont find any way todo it. Any suggestion? ...more >>

Corrupt Musicfiles? Screwed up HD's?
Posted by PeterWolfe at 6/16/2007 5:01:00 AM
After a clean install o a linsed W2K Prof, I discovered that my 2 other HD's (WDC 200Gb) did contain the musicfiles (all in MP3), did contain the correct names of the albums and even the correct titles of the music of those albums, but when playing these albums/songs I get other music to liste...more >>

Programming for multiple monitors
Posted by Jeff Johnson at 6/15/2007 3:14:24 PM
I'm testing some 3rd-party software and I noticed that the application doesn't remember which monitor it was last running on and always opens on my primary monitor. This got me thinking that if I were ever to write an app for widespread distribution, I'd want to go the extra mile and add this ...more >>

External Maxtor Harddrive not recognized
Posted by junior-geekette at 6/15/2007 12:24:00 PM
I have seen similar questions posted here but no result for my situation so here goes. I have a fairly new Maxtor OneTouch III Turbo Terabyte external drive (raid) and a new Dell 690 Precision also raid.....on XP. The maxtor was working fine and I was backing up data to it for a couple of mo...more >>

System.Security.Cryptography.RSA.ToXmlString - Key not valid for use in specified state
Posted by Eric Simmons at 6/15/2007 8:32:08 AM
Hello, I am trying to run a .NET 2.0 application that I developed and I am getting the following error: Key not valid for use in specified state I am attempting to retrieve the X509Certificate2.PrivateKey as an XML string via the ToXmlString() function and this error occurs. Below is an...more >>

Custom Configuration Section Handler and Code Access Security
Posted by Dougie Brown at 6/15/2007 6:41:00 AM
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in code. The configuration section is contained within the exe (it's a simple test case!) and ev...more >>

hi problem deleting browsing history ,temp files & cookies etc.
Posted by bill at 6/15/2007 4:48:00 AM
Hi I run windows EP service pack 2.I am on internet explorer 7.When I go into tools option delete history cookies ,temp file & so on .It doesnt work .I have deleted & reinstalled expl 7 but it only seems to work then for a day or 2 then it stops working again .I have done this several times.I...more >>

How to update a word document template using ASP.NET 2.0
Posted by Jai at 6/15/2007 12:53:18 AM
Hi, Is it possibe to update a word document template using ASP.NET 2.0 Example: This is a word template. Employee Name: <Name> Employee No: <EmpNo> Here i need to change only the field which has mentioned inbetween <> and this needs to be stored in a seperate file. Please help me o...more >>

file list and generics
Posted by Chris at 6/15/2007 12:06:00 AM
Hi, Why can't his work Private Function GetFiles(ByVal sPath As String) As Generic.List(Of String) Dim f() As String = Directory.GetFiles(sPath) Return f() End Function Should I just create a File Class object, add to it's collection and then return? Thanks...more >>

Cannot send eMails
Posted by Thomas Weise at 6/15/2007 12:00:00 AM
My app attempts to send eMails via SmtpClient. This works with some addresses, but for instance a mail server hosted by godaddy always rejects the mails. The reply is "Relay access denied". Does anybody have an idea what the cause of the problem is, and how I can work around? Thanks in adv...more >>

How to System::Collections::Generic::IEnumerable<T> in managed C++
Posted by Fred Heida at 6/15/2007 12:00:00 AM
Hi, i'm trying to (using managed C++) implment the IEnumerable<T> interface on my class.. but have a problem with the 2 GetEnumerator method required.... what i have done is... generic<typename T> public ref class SetOfProxy : public System::Collections::Generic::IEnumerable<T> { v...more >>

Plugin Setup/Installer
Posted by Olie at 6/15/2007 12:00:00 AM
I find it very hard to search for help on microsoft setup in Visual Studio. There does not seem to be an easy keyword you can use to filter google results. I am trying to install a plugin for an application. There are two things I have to do with my setup project which I can not figure out. ...more >>


DevelopmentNow Blog