bitbonk's Q&A profile
Visual Studio 2008 (Pre-release) Scrolling via mouse wheel pressed down and mouse dragged
Sorry for the long, cryptic title :) My question is: does WPF support scrolling if the mouse wheel is pressed down and the mouse is dragged This is the same behavior as in Internet Explorer, except I want to mimic it in my WPF window. thanks for all the help. I ended up pretty much using the class you provided, although just to let you know there's an odd behavior when implemented (seems that once the user presses down the scroll wheel to scroll in "IE mode", you can't release from it to go back to normal scrolling. It'll get "stuck" in IE scrolling and pretty much handicap the user). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.
Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 Struan wrote: I got it to work. Add this line after the Graphics component is created: graphics.AllowMultiSampling = false ; Then in the WindowsGame_Starting function set graphics.AllowMultiSampling equal to false again. THAT WORKED!! Good on ya mate This is a congratulatory sheep -> ...Show All
Visual C# Support for Super VGA graphics
Hello All , How can i know that my system has support for SuperVGA graphics or not....Programatically C#. and also Support for DirectX 9 graphics and about how much is Graphics memory Any Help Regards, Aamir I don't know that SVGA really matters. All computers built since the late 90's will have SVGA. XP requires SVGA so if you are running on XP+ then it is mandatory. I'm not sure about W2K. As for DX9 you'll need to query for it. You can do it a variety of different ways. The easiest is to look in the registry at HKLM\Software\Microsoft\DirectX and retrieve the InstalledVersion. It will be in binary. Alternatively the Version value is a string and the second part of the string is the ...Show All
Silverlight (formerly WPF/E) Another text question
Is it possible to have anchors in text, In SVG we can have <text text-anchor="end" x="341.17" y="443.50"...... Can also have, middle, baseline etc... thx Richard On another note why is text positioning x and y not used We use the attached property syntax for layout as layout is actually determined by the container. Text, like all UIElement based object use "Canvas.Left" and "Canvas.Top" attached properties when the UIElement is in a Canvas. Sometime down the road we will supporting some sort of grid panels and then the layout becomes "Grid.Row" or "Grid.Column" attached properties. -mark Program ...Show All
Smart Device Development activesync don't detect the emulator
Hi, I am working on Windows XP, VS2005, and have installed Active Sync 4.2. I was reading http://blogs.msdn.com/akhune/archive/2005/11/16/493329.aspx , to browse internet on the Pockect PC emulators. But the ActiveSync 4.2 is not detecting when I cradle the emulator. I have configured the device options for Emulator to use DMA transport in the tools->options->device tools->devices. But I couldn't find the DMA in the connection settings of the ActiveSync The combo boxes on the connection settings window are - "This computer connects to", this has {Automic, Work Network, The Internet} options. And I have selected the "Automatic" option. - "Allow connections to one of the following&quo ...Show All
SQL Server casting date stored as integers
Hi I have a SQL server database that have dates stored like 12142006003423 which means 2006-12-14 00:34:00 is there any way to cast it directly to a datetime type (I don't mean a user defined function as I've already implemented one) thanks Mugambo, thanks for your interest . however I was looking for a direct cast or convert statement that can accomplish this task I've created a scalar function for the ease of use as follows CREATE FUNCTION Int2Date ( @sdate bigint) returns datetime as begin declare @dt as varchar(14) declare @dd varchar(2) declare @mm varchar(2) declare @yy varchar(4) declare @hh varchar(2) declare @mi varchar(2) declare @ss varchar(2) declare @result varchar(25) set @dt = cast(@sdat ...Show All
.NET Development Querying dataset created without connection to database
I'm building a DataSet in memory with DataTables that are populated with data from an external source (from a COM interface). I'd like to be able to perform queries with a JOIN from the DataSet. Is this possible or does the DataSet need a database behind it to process the query Thanks. yes you can perform any operation on data set as you perform on the actual data base.beacuse it is a database on you main memory but if you change some data or modify data then you must have to save changes in your orignal datbase ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Deployment and XML Content
I have been looking but have not found information on the deployment process as it applies to my app. I have a Media folder in my project in Visual Studio Express.. It has many subfolders. The texture, Shader, and Sounds all get exported to the "deploy" folder automatically and get deployed to the xbox. However, here is my problem. All my other folders custom mesh format folder(binary), Skeletal structures folder(binary), and XML settings files in sub folders get completely ignored on compile and export. (When The process puts the files into the deployment folder (at compile time) and also ignored when sent to the XBOX. ) What am I doing wrong All the files are in the project but anything that is not turned XMB gets igno ...Show All
Visual Studio 2008 (Pre-release) Multi-Monitor... no hardware drawing support
Hi, as a split off from this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=679032&SiteID=1 I'm working in the financial industry and virtually every deployed client machine uses a multi monitor setup. However, I noticed that as soon as I move a WPF application from the "base" screen to another screen it loses all hardware accalerated drawing support and everything is way laggy. Is this a known issue that is going to be addressed or what's going on here This even happens with the Expression Designer. Right now this makes WPF totally useless for multi monitor setups. Thanks, Tom perhaps, but I doubt it. The only determining factor in the problem that I have described, is a ui th ...Show All
SQL Server Report Model Wizard
I created a data soure view that has tables from two data sources (both sql databases). when I try to generate a report model using this data source view, I get an "invalid object name" error for the first table it encounters that is not from the "primary" data source for the view. Is there something I need to do so the report model retrieves the connection strings for both data sources Any help is greatly appreciated. Thank you in advance! Yudi, If the databases are on one instance on one server, you can use the full name of the table to access the data in a named query. For instance, SELECT col1, col2, col3 FROM table1 would be the first named query in the original datab ...Show All
Windows Forms StatusBar ToolTip Crashing
Hello All, Quick Background: I have a UserControl that uses a StatusBar and ToolTip to allow a user to navigate data displayed in the control. On the main application there are a number of buttons that will create a new Form at runtime and place a static instance the main applications single instance of my control on the newly create Form. This was done because generating the UserControl is complicated and costly as far as memory and rendering is concerned. The Problem: If I place my control on one of these newly created Forms and the user hovers over an item that has a ToolTip it works fine the first time. The problem comes in that when the user closes the form the UserControl is removed and the Form disposed, and a user will click ano ...Show All
Windows Forms "View Designer" on form prompts for check out
Visual Studio 2005, VSS 6 I have a form that I have checked into SourceSafe. In my Visual Studio solution, when I right click and select "View Designer", the "Check out for edit" dialog appears to prompt me to check out the form from SourceSafe. I have not changed anything and simply want to open the designer to view it. If I go ahead and check out the form and close it, saving changes, then do a "Compare", all files are identical, including the .cs file, the .Designer.cs file and the .resx file. The form was not doing this before. It has several controls on it. I had recently made some changes to the form - adding a TableLayoutPanel to arrange the existing controls. I also set some ...Show All
SQL Server Unable to load client print control
When you display a SQL Reporting Services report to the screen in the header there is a Printer Icon displayed. When we click this icon we get an error message "Unable to load client print control ". Does anyone know what we need to load or what we need to do to resolve this so that we can print the report directly to teh printer, rather than having ot prinnt the web page, which also prints all the Web headre information We are facing the same problem. Advising the clients who use our web application to weaken the security of their Internet Explorer is not really an option. Can the ActiveX control be downloaded separately Kind regards, Martijn Bakker ...Show All
Windows Live Developer Forums Max zoom out or zoom in parameters?
Is there a way to set the max zoom-put or zoom in MAP parameters Unfortunately, e.view.zoomLevel only returns the current zoom level. So if you use an onstartzoom it gives you the current zoom prior to clicking... onendzoom gives you zoom after the click. So it's doesn't tell you which way your going. :( If we knew the ID of the button zoom element or something maybe we could at something to it... If you use a cuztom zoom in and zoomout button this isn't a problem and you can get seemless zoom control. That may be what I have to do in my own project. ...Show All
SQL Server Running MDX with multiple levels in one hierarchy
When I run a mdx that selects multiple levels in one hierarchy in management studio, the resulting table shows all the members in one column for that hierarchy. Is it possible to break down the hierarchy into two columns One for each level Similar to how when you browse a cube, you can drag expand a level and have two columns I am trying to display a cellset as a html table but when multiple levels are selected, it's hard to see the level breakdowns. If you are generating the html table from code using an adomd cellset you should be able to access the row members level.ordinal property to figure out how far down the hierarchy the current member is. From there you could either put the members in differen ...Show All
