nerdyome's Q&A profile
Visual Studio 2008 (Pre-release) Embedded UI Elements in RichTextBox - Disabled?
I am trying to embed user interface elements inside a RichTextBox control. In particular, I would like to embed a RichTextBox inside a RichTextBox. I can't seem to get the embedded control to be enabled for editing (or clicking in the case of a button). Setting IsEnabled = "True" in the XAML doesn't do the trick either. What should I be doing Is this currently supported e.g the embedded button with the "Click Me!" caption in the XAML sample below is not click-able: <Window x:Class="WindowsApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA v. DirectX
I know this has been asked before, but my question is a little more narrow. I want to go into the game industry, and I'm currently programming in what I understand to be the industry standard--DX in C++. XNA seems to be a higher level abstraction of DX, which makes me skeptical that it's more limited, or more for hobbyists. Would learning XNA be a waste of time if I already program in DX Not to mention that learning C# is always a good idea especially now with current trends. C++ has it's advantages but I'm now seeing more and more companies adopt C# as their language of choice. I reckon it'll come into the gaming world in a big way with MDX already proven as a viable alternative to the sometimes arc ...Show All
SQL Server Sql 2k5 INSTALLED ON THE SERVER
Hi All, My program is written in VB.NET and the DB is SQL 2005 Ex Ed. I have installed both, the SQL SERVER 2005 and my program on the SERVER. But when I try to run my program I get the following error mssg: The application attempted to perform an operation not allowed by the security policy. The operation required the SecurityExceptio. To grant this application the required permission please contact your Systems administrator, or use the Microsoft .Net security policy administration tool. If you click continue...... Request for the permission of type System.Data.SqlClient.SqlClientPermission. System Data, Version = 1.0.5000.0 = neutral. PublicKey Token = b77a5c561934e089 failed. My Systems administrator says I have got full control of the ...Show All
.NET Development Syntax for running script file?
I created script file for DB1 database i.e.,(db.scriptfile) and i want to run this script file in Database DB2, i should able to do this by Asp.net application so how to run this script file ...Show All
Visual Studio Crystal report showing blank data when its source is ado.net dataset?
For some reason I'm getting no data populating in my crystal report. I built my crystal report off my dataset in my project, and I fill the dataset when opening the main form, and count the records just to make sure there is data in the dataset, and then open the form containing my reportviewer control with the crystal report added to it and it still shows no data when it opens. I built my crystal report off the wizard when right clicking the report layout and choosing Database expert, then choosing Project data, ADO.NET datasets, and then the table from my dataset. Any help would be greatly appreciated, thanks. OK, from my main form I have a button that opens the form with the Crystalreportviewer on it and also fill the dataset and c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.XNA.Framework.Curve
Hi, I was wondering if anyone had looked at or used the Curve Class yet. I am having difficulty working out how to use it, perhap anyone could shed any light. I was thinking initially that it is a beizer curve type class, but I can't see co-ordinate information for the control points. All I can see is that CurveKeys have a value and a posistion, presumably between 0-1. Is the value the "y" position on a graph and the x is the position. Has anyone any more information that I can read in to determine what to use a curve for. Kind Regards, Paul Kinlan www.kinlan.co.uk AndyL wrote: the obvious conclusion is that this is a one-dimensional hermite curve, and is intended for use in a controller - for in ...Show All
Visual Studio getting an error cannot determine the queries necessary to generate this report in crystal reports for .net 2005
Hi guys, I've recently migrated a VB.Net app from 2003 to 2005 dev studio and the reports fail to run. If I try and preview them i get the error "cannot determine the queries necessary to generate this report". I have checked the datasource etc and all looks good. I even tried creating a new report from scratch and get the same error. Can anybody help Thanks in advance, Garfield69au I've just been playing around importing reports again. It seems to be setting the datasource (the DS location has changed for my reports) Further digging around reveals that - it *looks* like some of the imported table sets are corrupt. I only have about 5 tables, but I have an additional ...Show All
Visual Studio Express Editions How to: one function handles variable number of Btn_Click events
My program creates a variable number of buttons depending on the results he gets from an SQL query. Which will give me the following buttons: Button(1) Button(2) etc Each button will adres the same function, with that difference that the button.text will be a variable for the function. I don't want to make private subs for each button click, and actually want to have a fuction like: Private Sub Button_Click Handles Button(1).Click, Button(2).Click, Button(3).Click etc Dim var As String = sender.Text rest of code.... How can I let the script write this fuction Or is there another way to adres the same function with a variable numbers of buttons Use the addhandler method for add ...Show All
.NET Development Performance problem
Hi, i'm coding with C# something like that: j = 0; for (int i = 0; i < bmpArr.Length; i += bytesPorPixel) { colorArray[j] = new T(); colorArray[j++].FromBMPColorArray( bmpArr, i); if (j % bmp.Width == 0) i += paddedBytes; } This code take 5-8 seconds to execute when the loop have 2'500.000 cycles. I need that this code take only around 1-2 seconds in these case, but i really don't know how i can do that. I've treated to isolate the lack speed problem and i've saw that the object instanciation take the most of the time colorArray[j] = new T(); until the rest of instructions: colorArray[j++].FromBMPColorArray( bmpArr, i); if (j % bmp.Width == 0) i += ...Show All
.NET Development When to use .dispose and =nothing
When should i use the dispose command and set objects=nothing I thought that when you exit a sub, the variables where reset, and the data commands where set to nothing, but is this the case When should you use these commands and on wich variables Mike Danes wrote: If the class does implement IDisposable then you MUST call Dispose when you don't need the object anymore. To amplify upon this point, the whole purpose of the IDisposable interface is to signal to you the programmer that this class allocates system resources which should be released "expeditiiously" and the purpose of the Dispose method is to allow you the programmer to tell the object now is the time to release those ...Show All
Windows Live Developer Forums Daily Usage of VE
Hi, My company has been buying MWS transactions for the last year and a half. We switched some of our maps over to VE (perhaps prematurely) and we're worried that as we increase volume we may hit the 5000 per day limit. This would be devastating as it's not so easy to determine when we hit the 5000 limit (to trigger a revert to the old MWS maps). That said, our MWS transaction provider indicated that there's a "Savings Account" that we should pay into to ensure we're compilant with VE commercial usage. He also said that there's currently no way to increase daily usage above the 5000 per day limit. This could really hamper our growth as we've begun to merge our application with the VE maps (i.e. move functiona ...Show All
SQL Server Path speciale for StyleSheet.
Hello : To treat the posting of the report (navigation bar, colors etc.), we can created a special sheet of style (ex: TestStyle), who is in: C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer\Styles And we put in the url of the report : &rc:stylesheet=STNViewer My question: if this sheet of style is not in the same directory, how to define the road of this page in the url Thank's. Custom style sheets MUST be placed in the Styles folder: http://msdn2.microsoft.com/en-us/library/ms345247.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't draw line...
I don't know how to draw line. I write the following: line = new Line (dev); line.Width = 10; line.Begin(); line.Draw( new Vector2 [] { new Vector2 (10, 10), new Vector2 (100, 200) }, Color .Blue); line.DrawTransform( new Vector3 [] { new Vector3 (0, 0,0), new Vector3 (100, 50,150) }, dev.Transform.View * dev.Transform.Projection, Color .Blue); line.End(); It draws 2D line, but doesn't draw 3D line. Why P.S. maybe line doesn't draws because I have changed some device settings (turn on lighting and fog, changed material) You can build a flat 3D quad that extrudes along the 3D line you want to draw, and draw that quad instead of the line using normal 3D transformations... A good and easy wa ...Show All
Visual Studio 2008 (Pre-release) Application.GetRemoteStream() break in RC1
just moved an XBAP app from June CTP to RC1. the app is making an Application.GetRemoteStream() call to download a file to parse on the client (with a relative Uri). this used to work in June CTP, but RC1 returns a null (not a SecurityException). in fact, it fails in both partial trust and full trust. any idea what has changed Thanks, casey yes, the project already has -DebugSecurityZoneURL already set. it's set to a domain that it makes web service requests to. if i don't have that set, then the web service request fails with a SecurityException. but it's been set this whole time, so it still has the problem with GetRemoteStream() if debugging in VS.NET. but here is the kicker ... if i re ...Show All
Smart Device Development GetSystemMenu()
I am trying to add additional menu items to the Call State menu once a call has been made. I was trying to use GetSystemMenu(), but I receive a MissingMethodException. So, I guess it doesn't exist. Any ideas on what methods I should use to get a handle to a system menu and add menuitems to it Thanks Harry Windows Mobile provides a way to extend the menus of the built-in applications. Please check the MSDN documentation on Menu extensibility located at: http://msdn2.microsoft.com/en-us/library/ms879952.aspx . Hope this helps Michael ...Show All
