LoveCode's Q&A profile
Visual C# Windowsform : hideframe with transparency
Hi, I've made a form with a label which is transparent. I've also got a contextmenustrip with an item that makes it possible to hide the formframe : this .FormBorderStyle = System.Windows.Forms. FormBorderStyle .None; When I execute this code, the frame hides, but the complete forms moves up the height of the frame (I can live with this), but also the background (which is transparent) moves up (without repainting). I don't know if this explains the problem enough, so I will give an example. Let's say you move the form to a place where the top of the transparent area is the beginnen of a color area in the background ...Show All
Visual C# Make a program start on windows startup
Hi I want my program start on startup on, in a way that i wold be able to create a CheckBox to choose if to start on startup or not. There are several ways to make your application start at startup. The easies is to place a shortcut to the Startup directory inside the Programs folder of the Start Menu. Or you can place an entry into the registry (a quick google search will give you a specific path to where you must store the key) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Visual C# 2005
In language Vizual C * 2003 there was a function Commit. Example: device. Ligth (0) .Commit (), In Vizual C * 2005 these functions are absent. What to write instead of this functions Taking a guess at the small bit of code supplied, I would say that you are talking about programming DirectX and using the managed Classes. The commit was removed from the lights system in directX about 3 releases ago, some of the older books still use it ie Tom Millers, Managed directX Kickstart. If you just leave it out and make sure that you have the update call in it will work. Check this post on www.ircomm.net , this post has some examples of the ch ...Show All
Windows Forms datset
Hi, I receive a dataset from webservice which I then use to populate a datagrid on windows form. The user can then make changes in the datagrid on the windows form (i.e. add, delete or update a record). Can I then have a button which basically takes the data in the grid (i.e the datset) with the changes and pass it back to the webservice Would you say that I am on the right track if I use dataset.HasChanges ... Thanks fmardani wrote: Hi, Can I then have a button which basically takes the data in the grid (i.e the datset) with the changes and pass it back to the webservice if mydataset.hascha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. AudioVideoPlayback
Okay.. Is it possible to display the Artist/Music name with the class Audio of the namespace AudioVideoPlayback Actually.. I'm afraid it's not possible, coz I've seen it's properties at msdn and there isn't the Author or something similar to that on this class, while there is a Author Property on the class Video of the same namespace.. so.. how can I get these information of the mp3 file is there any meta-data on the mp3 files I can retreive somehow to display during the game Thanks, I wrote a video jukebox program, and I store ID3 tag info in my own database, and I used the Windows Media Player library both for playing files, ...Show All
Visual Basic Notify Window
How can i use the notify window like msn messenger 7 that appears in the bottom right corner of the screen Hi, There is a freely available NotificationWindow control available as a part of the VB Power Pack. You can read about it and download it here: http://msdn.microsoft.com/vbasic/default.aspx pull=/library/en-us/dv_vstechart/html/vbpowerpack.asp Best, Paul Yuknewicz Visual Basic ...Show All
Visual Basic rock paper scissors game help
Hello, I have a game I am designing and I am having problems getting my code. I have declared Wins and Losses in my global variables and am attempting to call those in a select case as show in my code. However it is not working properly, If you run the game you will see that the different message boxes do not show the correct information in them. I have a ttached the game for anyone who would like to help. How do I, at the end of my splash screen on my quit button, do I reset the game if they don't want to quit I can email the game to you if you would like to help... any help would be greatly appreciated... ...Show All
Visual Studio 2008 (Pre-release) Why the reverse German-like syntax?
Why do the LINQ queries have to look like a SQL query in German If you are trying to make it easier and are adding SQL-like keywords to the language, at least keep the ordering the same as SQL. The way this is, I have to know C#, SQL for triggers and stored procedures, and LINQ for the in-code queries. I don't see how this is going to make my life any easier. As I recall from the spec, the queries are purely macro substitutions, without any juggling during compilation. This makes things much easier to compile, and the sequence of things doesn't change between the query syntax and ...Show All
Visual Studio Tools for Office Accessing a Control on a Outlook Custom Form in VSTO 2005
i've added a Combobox to a Custom Form, based on the Appointment Form. Now i would like to be able to access this control from my VSTO 2005 code (C#) but i'm not sure how - anybody tried this The result should be a populated Combobox with data from a Web Service. Hope anybody can give me a pointer to a solution! Martin, Are you talking about a custom Outlook form or a custom .NET Windows form If you are talking about the former, then you are pretty limited. The ActiveX controls on a standard Outlook form (or one based on that standard form) are not available to your .NET code without ...Show All
Windows Forms Setup and Deployment Project FAQ
Deployment FAQ Q: I am now getting the following error when I build: " Unable to update the dependencies of the project. The dependencies for the object ' name.dll ' cannot be determined" A: Workaround : Try to adjust the order of the Projects in the Solution and leave the Database project to the end. We can either edit the Solution (*.sln) file with notepad OR remove and add the Database Project back in the solution. (This also isn’t a great work-around as the addition of a project later in the development cycle will cause the corruption to re-appear). HotFix :Contact PSS and ask for the Hotfix for KBB9 ...Show All
Visual Studio Tools for Office Accept Track Changes in Word using VSTO (C#)
Hi, In Word , we enable/disable track changes using Tools | Track Changes. Similarly to accept those changes we use a button as " Accept Change " on the Tool Bar. Below is the code in VBA for the " Accept Change ". Sub AcceptAllChanges() ' Accept All Changes in Document WordBasic.AcceptAllChangesInDoc End Sub I need the C# version of this Code using VSTO. Please help me. Regards, Arun. Hi Arun The code you have is pre-Word97 and can only be used in C# with late-binding (InvokeMember). The Word object model equivalent is the AcceptAllRevisions method of the document object. So, roughly: This ...Show All
Windows Forms Numeric or currency style to a label
I need to have few Labels (that are bound to business objects) appear as $1,000,000 rather then 1000000 I can’t find a style property to apply at design time. Any Ideas Done that now But no matter what Style I select (numeric , currency etc) it does not show with the commas (1,000) Could the fact that they are inside a table layout panel have anything to do with it ...Show All
Visual Studio The content of WebSite DataSource is empty
I am use report controls in my web application. The datasets in my project will appear in the WebSite DataSource. But the datasets often disappear, how can I do ...Show All
Visual Studio Express Editions export whole program/project to work on another pc?
hi dudes, sorry i'm very much vb.newby... can someone please explain how i can export my project i'm writing in spare time at work to my home pc, intact with all code and interface design in place please in vb.net express i have tried saving the project and then copying the whole project folder home but this doesn't seem to work properly when i open a file - there's so many, anyway! another thing i thought i might try was to export project template but the descriptions it offer for the two choices from it worry me this action may not be appropriate either thanks for any advice from any one, matty I have never ha ...Show All
Visual Studio Catastrophic Failure in C# when trying to open new Project
Hi can anybody help me as i am facing this problem since long time. Problem :- When i am trying to open a new project in c# i am getting error saying that Catastrophic failure, not able to open a new project. I have reinstalled the Studio .NET and still also i am getting the problem and can any one suggest me on windows 2000 professinal i want to install these applications. what is the sequence. 1.VS NET 2003 2.OfficeXP 3.Visual Studio (VB) i am struggling a lot with these if .NET works VB wont work if VB works .NET wont work. please mail me neelakanteswarareddy@gmail.com When you say Visual Studio (VB), do you mean VB Expres ...Show All
