Vadim G's Q&A profile
Windows Forms How can I load an image into picturebox at runtime?
Hello All; I’ve done everything which I could, but no one was useful. As I found at MSDN I wrote something like this code: // You should replace the bolded image // in the sample below with an icon of your own choosing. // Note the escape character used (@) when specifying the path. pictureBox1.Image = Image.FromFile (System.Environment.GetFolderPath (System.Environment.SpecialFolder.MyPictures) + @"\Image.gif"); It doesn’t work as I want, because I should always give nearly the full path.( System.Environment.SpecialFolder. …) But ...Show All
Visual Studio 2008 (Pre-release) Looking for a working Attached Events sample
Hi, has anybody either succesfully implemented a custom Attached Event or seen an example somewhere I can't find any documentation available aside from the fact that implementation is similar to the Attached Properties approach. Thanks I'm posting a sample that defines two things: first a custom control that exposes a RoutedEvent using bubbling strategy: public partial class CustomControl : Control { public static readonly RoutedEvent CustomNotificationEvent; public event RoutedEventHandler CustomNotification { add { base .AddHandler(CustomNotificationEvent, value ...Show All
Windows Forms Please Help !!!
How can I tell when a form is in design mode Please Help !! -Andy Moyer First of all, am not a guru but I just want to comment... :p <i>However, If I drop an instance of the composite control (which is compirised of UCA and UCB) on a form, the UCA and UCB controls now think that they are not in design mode.&nbs ...Show All
Software Development for Windows Vista broken link "Installation Instructions" INSIDE SDK Readme
I am not sure where to report this but the link "Installation Instructions" in Microsoft R Windows R SDK Readme for the February 2006 CTP http://download.microsoft.com/download/8/1/c/81c912c1-893b-4603-8c40-bf128444a932/WindowsSDK_Readme_FebCTP.htm is broken Guennadi Vanine Ahhh, yes that is pointing to an internal Microsoft site. The good news is that the information is still on that page, just scroll down to chapter 5. Thanks for the find and the post. We'll be fixing shortly. Steve ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
Software Development for Windows Vista XPS output for SQL Reporting Services
Does anyone know if SQL Reporting Services will be updated to support output to XPS format directly as a native rendering format Nothing has been announced yet. We're definitely discussing with that team, however. ...Show All
Visual Studio Team System Object Reference not set to an instance of an Object
I really would like to use this tool, but when I try to import a database, all I get is the error message "Object reference not set to an instance of an object." I'm working on a 2000 database (sp3a if that matters) where I have sysadmin privileges. I just don't understand why this isn't working. Any help out there OK. A bit more information. My normal login is not the admin on my box (security reasons). I installed the software under an account that does have admin rights. I'm running it under the other account when I get the error. When I logged in as my admin account and tried running it ...Show All
Windows Forms Loop through checked items of CheckedListBox
For some reason I can't figure out how to do this. I want to creat a string based on the valuemembers of the checked items. How can I loop through and get the values I believe you can do this in a simpler manner, if you want. (Sorry, was offline most of the weekend). You should be able to modify the code to create your ...Show All
.NET Development ADO.NET/Access DB Insertion Exception
I’m working with an Access Database and ADO.NET. I have a record insertion routine that works on some tables and not others. The exception is “syntax error in Insert Into Statement” and it’s from an improperly constructed string. Public Function InsertRecord( ByVal NewRow As DataRow, ByVal Table As DataTable, Optional ByVal Update As Boolean = True ) As Boolean 'works NewRow(DataRecords.ciRecordNum) = Table.Rows.Count ' Autoincrement Table.Rows.InsertAt(NewRow, Table.Rows.Count) If Update Then Using CmdBuilder As New OleDbCommandBuilder(Adapter) Try ...Show All
SQL Server Installing SQL Server 2005 Developer Edition on same box as SQL Server 2000 Developer Edition
I tried to install this on the same box and I'm not sure how to reply to setup questions since I want to keep my SQL Server 2000 intact. During the installation it asks me if I want to upgrade the "SQL Server Database Services 8.00.761" and if I don't select it to upgrade then it tells me that SQL Server Database Services will not be changed. I'm not quite sure how to install this so I don't damage my existing SQL Server 2000 Developers edition. If you have any information in regards to this please let me know. Thank you. I've been running both SQL 2000 and SQL 2005 Developer's edition on my laptop (as separ ...Show All
Visual Studio Express Editions Adding an XML file to a Project
I'm new to VB Express and I'm looking for some "how to" information. I have an existing XML file and I would like to add it to a new project. Your help would be greatly appreciated, thanks. Ryan, Thanks, that worked just fine. I had tried Add -> New Item, but did not see how to add an XML file and then got lost in the help files. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't install directx 9.0c Please help.
Hi I am using windows xp professional with service pack 2 installed in it. As we all know that service pack 2 has built in directx 9.0b installed in it. Now if I try update directx 9.0b with directx 9.0c it wouldn’t do it. So using on of the directx uninstall software I have removed the directx 9.0b and restore the directx 8.1 from windows xp professional Service pack 1 cd. Which was successfully done. Owow. But I am still unable to install directx 9.0c into my pc. When I try to install directx 9.0c , a dialog box appear saying “The components installed are now ready for use.” Which is not true. ...Show All
Visual Studio Express Editions Weather Link broken in ScreenSaver starter kit
The weather link is broken in the screensaver starter kit start page. Anyone know the correct link ...Show All
Windows Forms Another beginner question...
Okay, this is a incredibly stupid question, but I am a beginner, so please be patient. How do you make a "link" between the main cpp file and the form (because I presume that's what you must do). In other words, how, for example, do you say to the computer to take the number written in Textbox 1, and add to the number in Textbox 2, to finally write the result in Textbox 3 Where do you write this code, and how I am dazed and confused! (I started coding last night!) Ah yes! And an example would be much apperciated! Thanks! Ok, the very last thing I can do for you is to offer you to se ...Show All
Software Development for Windows Vista WorkflowRuntime.CreateWorkflow overloads
I have not been able to find any information about two CreateWorkflow overloads in the WorkflowRuntime class: CreateWorkflow(XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary<string, object> namedArgumentValues) and CreateWorkflow(XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary<string, object> namedArgumentValues, System.Guid instanceId) I have two questions: 1. Given that there are issues with argument passing and Xaml-only (or "no code") defintions, do these methods have any purpose 2. If yes, can you provide some information about the "rulesReader" ar ...Show All
