Phil Mac's Q&A profile
Windows Forms Storing and retrieving cursor icons using an ImageList
Hello everyone! Is it possible to store and retrieve cursor images using an ImageList control (The images stored in the ImageList are bitmaps.) Since both the cursor and icon formats work for a mouse cursor, I have pulled the bitmaps out of the ImageList control and converted them to the icon format. But that is as far as I have been able to get. ...Show All
Smart Device Development configure the desktop machine for Windows Mobile 5.0 development
Hi, While installing Windows Mobile 5.0 Pocket PC SDK on my desktop PC, I'm getting following error, anyone know the solutions ---------------------------------------------------------------------------- Software development tools required to use this SDK for application development are not installed on this workstation. Before trying to run the Setup Wizard again, verify that the required software is installed. To determine which software development tools are required, see the Microsoft Web site at http://go.microsoft.com/fwlink/ linkid=21615&clcid=0x409,which you can open in an external browser window by clicking the Open Browser but ...Show All
SQL Server Can't precompile script
Hi, with a script task I get an error "This task is configured to pre-compile the script but the binary code is not found. Please visit the IDE in Script Task editor by clicking Desing Script button to cause binary code to be generated". Well, if I do so the error doesn't disappear. The only chance I have is to switch of precopilation, which is quite a performance issue... I have no idea where this error is comming from... The script is quite easy, just some string and file operations (find out file change date using system.io)... Any idea This is an old one, but I just had the same problem and just noticed that m ...Show All
Visual Studio Oracle Logon Problem using VS 2005
I know this is a common issue as I've been checking through previous posts on this subject. I've been working on this problem for most of the day now. I have a report that works fine under CR 10 and from within Visual Studio. I'm trying to use the report in an .aspx web page using Visual Studio 2005. I have assigned the ASPNET account full control over the Oracle, Ora92 and Ora92/bin folders. I've assigned the database name and I've left it blank. The default value (when looking at the myConnectionInfo object is an empty string for Database. I configured the page using the CrystalReportViewer and the following code: Impor ...Show All
Visual Studio Express Editions Image.ImageUrl = "c:\thmb.jpg";
I am using C# and visual web developer 2005 express. I have placed an Image control and a button control on a web form and attaching the above code to it. It works if I alter the Image control proerty ImageUrl, why wont it work with the above code All I get when I press the button is a little hourglass curser for about 2 seconds and then nothing. Thanks, Paul This should work but it's not how it's usually done in web pages. If you specify a path like c:\thmb.jpg then that picture can be seen only if you run the web browser on the same machine where the web site runs. Another problem with that kind of path i ...Show All
Visual Studio Team System Setting source control policies on specific branches
Is it possible to set source control polices on a specific branch However, I want to be able to set stricter policies (i.e. a higher unit test code coverage) on a bug fix for a release then on the development branch. Currently I have only been able to set source control policies at the team project level. Thanks in advance! ___________________________ Sarah Cameron - InCycle Software Policies themselves can only be installed at the team project level. However, you can add code to your policy that detects which folder (branch) the checkin is occurring under. ...Show All
SQL Server Connecting to SQL 2005 from a client pc
I am getting this message. On the actual server I can pull up the report builder, but from a client on the network when trying to connect to the sql report builder I get this message: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://webdev.ci.lubbock.tx.us/reportserver$sql05/reportbuilder/reportbuilder.application ERROR SUMMARY Below is a summary of the errors, de ...Show All
Visual Basic Windows Service application example
Doess anyone have a sample windows service vb.net code A sample that waits and polls values from a SQL Server database Thanks alot! Hi, Here's a sample that goes step by step - but its in C# - this also explains using the Timer class for polling. http://www.codeproject.com/dotnet/simplewindowsservice.asp Another one for VB.NET http://www.freevbcode.com/ShowCode.asp ID=3242 Regards, Vikram ...Show All
Windows Forms How to globalize toolbar button dropdown menu?
I am using VS2005. I have a simple winform in which the toolbar contain dropdownbutton. The dropdownbutton accept only type ContextMenu(why not the new ContextMenuStrip ) which is a old control of VS2003 and is not shown in VS2005's IDE. To add the menuitem, I use code like: this.cMenuPrint = new System.Windows.Forms.ContextMenu(); this.cMenuPrint.MenuItems.Add(this.menuItem4); //---VInvoice Print this.cMenuPrint.MenuItems.Add(this.menuItem2); //---GRN Print this.cMenuPrint.MenuItems.Add(this.menuItem3); //---VInvoice F ...Show All
SQL Server Where is the AWDataWarehouseRefresh sample? Missing from SQL 2005 April CTP
Hi Mark, The samples team told me that the sample did not actually get posted to betaplace. It will, however, be included in the June CTP release. Sorry about that. ...Show All
Visual C# DialogResult disaster drama.
I'm trying to create a message box that pops up after clicking a Toolbar button, which asks firstly whether to check online (Yes, No, Cancel). If user clicks No it would create a new message box with question "Create new.." (Ok, Cancel). The problem I'm having is trying to get the "Ok" click to then load up a new form (LyricForm). Below I've posted what I've created so far after spending hours trying to work out how to make the DialogResults do it's thing. (Probably a giant mess - am very green to C#). Using C# Express Edition 2005 Beta 2. Any help would be extremely appreciated. private void buttonLyrics_Click(object sender, EventArgs e ...Show All
Windows Forms System.Net.Sockets.SocketException when using the HttpWebRequest.GetResponse
Hello i keep gettign this error when i use this code Error: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Code: Dim HTTP_request As HttpWebRequest Dim HTTP_response As HttpWebResponse HTTP_request = HttpWebRequest. ...Show All
Visual Studio Team System TF10139: problem after upgrade freom B3R to RTM
Hello all, After the upgrade from B3R to RTM I have the following problem during check-in of an previously excisting project: TF10139: The following check-in policies have not been statisfied Internal error in Ensures that code analysis is run with a defined set of rules. On the project Code Analysis is enabeled and on the Team Project setting: Check in policy: Code Analysis has been added. If I override the policy, I get an error: 'object reference not set to an instance of an object' followed by a message box: Visual Studio Team System Check iN; Operation not performed Obejct reference not set to an instance of an o ...Show All
Visual Studio Team System Using the FxCop internals with my own rules and UI
Are there any licensing issues with reverse engineering and hosting the FxCop "engine" in my own UI I'm trying to do more architecture based rules and different UI feed back to the user. The only way i can figure out to show the user a different UI is to host the engine my self. I did notice in Reflector that the FxCopUI.dll had something that looked like a plug in architecture that allowed custom actions when the user interacts with a problem in the main UI. There is a CustomAction class and a Triggers enum. Is that something I could take advantage of instead of trying to host the entire engine Thanks John ...Show All
Visual C# Dispose a string?
i got a service which "controls" the eventlog. If a error is writen, the service send a mail to me. This works, but it's memory usage gets bigger and bigger static void Main() { EventLog myNewLog = new EventLog (); myNewLog.Log = "System" ; myNewLog.EntryWritten += new EntryWrittenEventHandler (MyOnEntryWritten); myNewLog.EnableRaisingEvents = true ; signal = new AutoResetEvent ( false ); signal.WaitOne(); } public static void eMail( EntryWrittenEventArgs e) { string name, pw; XmlDocument MyDoc = new XmlDocument (); MyDoc.Load( "setting.xml" ...Show All
