Hoopla's Q&A profile
Windows Forms Visual Styles and Context Menus
There really isn't a menu with Visual Styles. You'll notice that system menus (right click desktop or right click file in Explorer) are flat. Menu text font, colours, and background colour are defined by user preferences; but, neither of the included Themes really changes the way menus look. If you use either Professional or System your menus will get the appropriate colours chosen in the Display Properties control panel. ...Show All
SQL Server ToggleItem in SQL Reporting 2005
I have three Toggleitem in my datatable now on form load i like to view minus (collapse ToggleItem) If posible to collapse(if expanded) other two toggleItem in same datatable if one is (plus)expanded ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game components
What is the idea behind the GameComponent class Will it be used for input handling and audio handling, so you won't have to use the keyboard classes and audio classes, or only for graphics and graphics extensions How about: 1) In-game console 2) Custom key-binder dialog, video options dialog, etc. All the normal options type stuff 3) Mouseover labels bound to meshes (useful for RPGs) 4) NPC conversation windows 4) More as soon as I think of them. ...Show All
Software Development for Windows Vista How To Get Event Args To The Host While Re-hydrating A Persisted Workflow
The solution I use for getting the args from a re-hydrated workflow that had previously passed by making a call to a HandleExternalEvent Activity, is adding a tracking service with the same type of exposed Args property, that I set within the workflow when it is re-hydrated. Code within my Workflow protected override void OnActivityExecutionContextLoad(IServiceProvider provider) { base.OnActivityExecutionContextLoad(provider); RentalCore.RentalTrackingService TrackSvc = (RentalCore.RentalTrackingService)provider.GetService(typeof(RentalCore.RentalTrackingService)); TrackSvc.Rentalargs = this.rentalArgs; } When the workflow host starts up I can then ...Show All
Visual Basic Choose random rows from a table
Problem: From a table with 106 rows, choose 25 random rows and display them on a form for the user. Question: Is there any way to randomly choose rows from a table Note: My programming experience comes from some game scripting and using Access; I’m just learning Visual Studio 2005. I’m working on a small game that mostly uses data to simulate buying and selling stuff. What I would like to do is – In Visual Basic (code), Generate 25 (as example) random numbers and use these numbers to choose the rows from the table to display to the user – Random data from a table. I can generate random numbers and place them in a text box on a form, which I don’t need; but how could I use these number to choose ro ...Show All
Windows Forms Resizable form without borders
Hi, Is it possible to create a FormborderStyle.None like form wich is resizeable. Thx Yes it is possible but you will have to write the code to resize the window. If you place your own controls at the borders it will be more easy to detect mouse click/movements via the events of the different control but if you do not you have to do it via the forms events. I do not have any sample code that does this. ...Show All
Visual Basic jagged array
I am trying to pass an two-dimensional array to a webservice but it says to use a jagged array instead. How do I put a two-dimensional array in a jagged array My two-dimensional array consists of several rows and 1 column. I am completely lost. I still don't understand how I use a jagged array to accomplish the same thing as a two-dimenssional array. This just adds one value to the array, correct Dim formValues As String()() = New String(Request.Form().Count - 1)() {} For i As Integer = 0 To Request.Form().Count - 1 formValues(i) = New String(1) {} Next I am looking form something like this col1 col2 -------------------- 1 FirstName 2 LastName 3 Email I assu ...Show All
Windows Forms MessageBox not given Focus
I'm having a problem with my message boxes displaying properly in an application. It was originally written by someone else in C# and I'm not sure why I'm getting this error or even where to look for a culprit. Here's a description of the steps involved to replicate the problem: 1. Open a standard SaveDialog 2. Pick an existing filename to save over 3. Prompt for overwriting does not appear on top of the screen 4. Hitting the ALT key brings the message box to the foreground and allows for the program to continue. I get this same error whenever I call a message box anywhere in the program. I originally thought it was being obscured by controls but that was not the case; the messagebox is not rendered in the foreground ...Show All
Visual Studio Express Editions [VB2005] Reading from serial port, pls help!
Im currently working on serial port RS232 communication, im able to set configurations thru serial port to my device, but having problems reading from the port. Ive been advised that there're two ways of doing it, which include write the program so that the incoming data is stored inside certain file on computer and data can be extracted straight away from it..well another one, is extracting the data from the computer temporary memory.. but i have doubts regarding those methods and totally have no clue of performing the task, can someone please give me some guidelines of reading data from serial port thanks in advance! Watch out, you are calling ReadByte() twice in the loop, change it so you call it only ...Show All
Visual Studio Deployment, Testing and MsBuild
We're trying to establish a better build philosophy/strategy for our environment. We are developing a system that controls devices connected to various servers. There are 40 devices in total connected via serial ports. There are 12 servers involved in the system, each running windows services we've written in C#. In order to test the changes we currently mstsc to each server, stop the services, re-register the new build, then start the service back up. This is quite time consuming and we are doing 6-10 builds a day. Testing can only be done when the entire system is online as the 40 devices work in unison to produce a desired function. One solution put forward to speed deployment (and testing) is to write another service that sits ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation help
I think I'm being dense today, but I can't figure this out for the life of me. I have a model that I want to rotate across the X and Y axis. My issue is that when I rotate across the Y axis, I always want the rotation to occur as if the axis was vertical in terms of world space. If I multiply by my X rotation first, obviously the Y axis moves with it, so rotating about the Y axis will rotate it about its transformed axis. If I multiply by my Y rotation first, the X axis moves with it, so my X rotation is now turned along with it. I basically want to rotate downward and then left/right independently from what the actual transformed axes become...or, rotate left/right and then downward independently. When I rotate about the X, it shoul ...Show All
Visual Studio proxygen - using an external type as a base type and generics
Hi, This is a VSTA question, so this seems the closest forum for it. I'm trying to pass a class MyObjectList: List<MyObject>{} from the host to an Add-In, but (as it states in the documentation) proxygen doesn't support generics. So, changing by base type to ArrayList, proxygen then complains that using an external type as a base type won't work. Great. What is the suggested method for passing a list of some sort from the host to the addin Is there a way to use Add-Ins without requiring a proxy so as to retain all the flexibility of .net code and still have an Embedded IDE that can debug those add-ins in a seamless non-destructive way Many thanks, Alec Alec, System ...Show All
.NET Development adding Window Media Player into IE Toolbar
Hello: I am facing a problem in adding a Window Media Player Control into IE ToolBar. I found a project written in C# on Code Project site that can add a text into IE toolBar. But I can't add the window Media Player into IE. The Project I found constitutes of 2 projects BandOjLib and SampleBars window Application C sharp where the development is happening in it. So what you do in SampleBars project will be embedded into BandObj Project after compilation and start without debugging both BandObj and SampleBars respectively. When I am adding the Window Media Player into TOOLBOX, then to drag it into window Form => it gives me this error: Assembly generation failed -- Referenced assembly 'AxInterop.WMPLib' does not hav ...Show All
Windows Forms Include the parent control when a child is cut / copied and pasted.
Hi all, This is the final step in what became a rather involved process. The big picture is that I need to present a container control at design-time which does NOT clip its children. So yeah, I want for instance a child button control to be able to draw beyond its parent's bounds. I've gotten it to work by implementing an "envelope / hub" mechanism, where the hub is the above-mentioned container, and the envelope is its parent, another container which sizes itself to envelop the hub. When the user needs to "float" (ie. un-clip) the child button, it gets re-parented to the envelope and now has free reign to paint over the hub's bounds. All that to say, I have one final problem: when the hub is cut to clipboard, ...Show All
Visual C# HelpProvider issue when using keywords with spaces in them
Hi I'm working with a 3rd party CHM file (from a co-contractor) and am having trouble using the KeywordIndex style of linking in the help file. I find that setting the HelpProvider's HelpNavigator property to KeywordIndex and setting the HelpKeyword to the appropriate entry works fine when the HelpKeyword is a single word but doesn't seem to work if the HelpKeyword is made up of more than 1 word. The CHM file still opens to the index, it just opens to the first entry in the index and doesn't associate the keyword correctly. Here's my code for reference... // This doesn't locate the appropriate entry this .hlpHelpProvider.SetHelpKeyword( this .importMethodPage, "Importing Satellites" ); // This however works fine ...Show All
