nate-d-o-double-g's Q&A profile
Visual Studio Express Editions Whats wrong with this code
I am trying to display random images using this code and vs studio 2005 I am getting a name 'Directory' is not declared whats the reason. DKB Sub DisplayDie( ByVal picDie As PictureBox, _ ByVal face As Integer ) ' assign die image to picture box ' picDie.Image = _ Image.FromFile(Directory.GetCurrentDirectory & _ FILE_PREFIX & face & FILE_SUFFIX) did you import the System.IO namespace import it then you should be ok, otherwise you can do this: picDie.Image = _ Image.FromFile(System.IO.Directory.GetCurrentDirectory & _ FILE_PREFIX & face & FILE_SUFFIX) you could also... picDie.Image = _ Image.FromFil ...Show All
Windows Forms on the taskbar I can't see the minimized window...no button show up
can use the taskbar for such tasks as switching between open windows and starting new applications. This How can I fixe:to see the buttons on the taskbar when minimizing my window....Now I have to go in task manager to get the back the window that I have open, really weired Well, I wouldnt uninstall Norton as it has no effect on the taskbar buttons.. Sorry I couldnt help with this. ...Show All
Visual Basic JScript to VB
im converting a website from no asp.net abiltys to asp.net 2.0. origanaly the site used jscript to do interactivity now i want to use VB. some of the code i dont understand so i cant convert it. any help would be great. the code is (its very long): var document_gregorian_year = "1998" , //Curent english year document_gregorian_month = new Array( "January" , "Febuary" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December" ), //English months document_gregorian_month_index = 0 //Curent english month document_gregorian_wday ...Show All
Windows Forms Filtering data source for a combo box in a datagridview
I have a form containing a datagridview in which I want to display a subset of the data table on which it is based. I have achieved this by using the Filter method of the bindingsource. In one of the columns of the datagridview I have a combobox which uses the same binding source but the filter is not being applied. How do I get around this or what am I doing wrong Thanks Thanks. I can see what I've done wrong. In fact I've discovered that you can apply the filter to more than one field by saying "age = 24 AND height > 10". ...Show All
Visual Studio 2008 (Pre-release) How to override default style for custom control?
Hi all, I've got custom control deriver from HeaderedItemsControl and I'd like to get rid of the dashed rectangle which is being drawn around focused child items. Child items are also custom controls, derived from HeaderedContentControl. The appearance of the child items is controlled by different templates which are being assigned to them in code. I've tried to set OverridesDefaultStyle to my custom HeaderedItemsControl, to my custom HeaderedContentControl child controls and even tried to set it everywhere using VisualTreeHelper class with no success. The dashed rectangle is being drawn no matter what I try. Using Snoop I could not find what Visual is drawing this rectangle - it seems not to exist in the Visual tree. How does this dashed ...Show All
Visual C# save richtext in database
i have some text in a richtext control how could i save this in a database if i pass control.text from C# to the database the richtext properties are not stored. When i try to viw the text i stored none the rich text formatting are displayed. Save the richTextBox.Rtf property to the database instead of richTextBox.Text. Of couse, when loading, use the Rtf property also. ...Show All
Visual Studio Express Editions Convert content of Textbox to string?
I'm trying to get the content of a Textbox into a ListView, and assume I'll have to convert it using ToString, but can't figure out the format. Can anyone show me how to do The Name of the Textbox is txtName: private void btnAddItem_Click( object sender, EventArgs e) { lvwListView.Items.Add(txtName); } thats correct as the overload for the Add() method is NOT expecting a string, instead you may need to do this: this.lstItems.Items.Add(new ListViewItem(this.txtAddItem.Text)); ...Show All
Windows Live Developer Forums windows live space weather?
Hi there Well this is kinda funny tho. first of all you need to know my english aint the best in the world but im trying. I have no problem with adding kinda advanced things to my space.But there is 2 problems i have and i think it's easy as hell to fix it or add it. Weather info - yeah lets bring some weather info to my space. But how i belive i have looked everywhere for any info about it. look at this mans space: http://ezotee.spaces.live.com/ you will see he has a weather info or section if i can call it that to his space. i just cant find out how to add this or where to find any info about it. i have checked these spaces for info also but without no luck: http://thespacecraft.spaces.live.ccom/ http://d3vmax. ...Show All
Visual Studio Express Editions Binding Source Question
I had posted a question on another forum by mistake. Usually I post it to this forum. For those who frequent this forum, please take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1028259&SiteID=1 for my question. Sorry for the misposting. Thanks, John ...Show All
Visual Studio Team System Error when viewing workitem details over web
I have my build server runingnicely, but when an exception occurs, it creates an email to me with a link similar to the following: http://<tfsserver>:8080/WorkItemTracking/WorkItem.aspx artifactMoniker=283 However, clicking the link displays the message: "The given key was not present in the dictionary." I understand that this is probably a mis-configuration of the data warehouse data, but I'm unsure where to look. Can anyone offer suggestions as to where to look first Thanks for your answer. You are right! setupwarehouse was not good point in the context of this error ;-) I am in process of resolving several different errors and one of them is related to reports. I think, I lost unders ...Show All
Visual C# Unable to debug C# solutions
I'm using Visual Studio 2005 Pro. This problem is repeatable with archived code on backup discs as well as new solutions. When I attempt to run my apps in Debug Configuration with breakpoints, I get the message: the following module was built either with optimizations enabled or without debug information. D:\Programming\Solutions\******... To debug this module, change its project build configuration to Debug Mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option. Here's a screenshot . This is done with a brand new solution. File > New > Project > C# > Windows/Windows Application > Ok > Build > Run. [update] as par this thread , I've tried restoring factor default settings. ...Show All
Visual Studio Team System Email when build or test fails
Hi all, I have an automated nightly build (in my Team Project) in which I have to receive an email when the build fails or the test fails. I should not receive the email when they succeed. I see that in the Team Build there is a target for "AfterOnBuildBreaks" which I suppose should be invoked when build breaks (but its not getting invoked). There is another target called "AfterTest" which is getting invoked when the test for the test is complete (in either case - failure or success). For the time being I am emailing in this "AfterTest" target. But I do not want that. I want email on in the case of a failure of either the test or the entire build. for the email part I am using the Mail syntax from th ...Show All
SQL Server Infinite Loop in cursor
Hi I have an infinite loop in a trigger I and I cant reslove it. In my system the user updates a stock table from the GUI and on the update I need to check values to see if I need to add records to a StockHistory table. For Example: If the user changes the grade of Product X from A to B then I need to add a new line in StockHistory for product X grade A that decrements the total number of products in the warehouse. Similary I need to increase the quantity of stock for Product X grade B. I had the trigger working for single updates but now when stock is added to the database (from another db) it has status of 'New'. This isn't actually 'in stock' until the user sets the status to 'Goods In'. This proces ...Show All
Visual Studio Adding ActiveX control to MS Visual Studio 2005
I have a third party ActiveX which I'd like to utilise with a project developed using Visual Studio 2005, mostly developed in C#. I've taken the .ocx and run RegSvr32 and AxImp against it. In Visual Studio I've added the control to the toolbox, but when I try to add it to a form I get the following : Message box : Failed to register the ActiveX control. Please ensure it is registered properly 3 warnings 1 : Could not resolve dependent COM reference "stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 2 : Failed to create the wrapper assembly for type library "AxWTReaderNet". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown. 3 : The ...Show All
Visual Basic Applications designed for multiple users
I am designing an application which would reside on one machine but would require access by any or all of the users who have a user account on that machine. So far, I have been unable to find a way of making the application work from more than one user account. I have tried publishing to a shared folder within All Users which works fine when I install it but doesn't work if I log off and then on again in a different account. The project uses SQL Server Express and I think the problem lies with this as the application screen appears but a timeout error is generated (I have doubled the default time before a timeout occurs as I had a problem sometimes with this within my own account). Is there a way around this or would the user ...Show All
