Muhammad Adel's Q&A profile
Visual Studio 2008 (Pre-release) throw exception after executed PageFunciton.OnReturn()
i add a NavigationWindow(Window1) and a PageFunciton(PageFunciton1) to my project. i want to accomplish following funcitons: There ara some TextBox and Button controls in the Windows ,and PageFunciton1 has the same controls. You can press button to navigate to PageFunciton1, In the PageFunciton1 ,you click button and return to Windows1 with values from textbox. After you return to Windows1,the textbox'value would be replace with the values fecthed from PageFunciton1. Here is my code: Window1: xaml <NavigationWindow x:Class="WindowsApplication19.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WindowsAppli ...Show All
Visual Studio Express Editions Form, getting a picturebox to be able to move the form.
This one may be complicated to explain how I mean. But ill try anyway. Lets say I have a Form thats is FormBorderStyle = None, and I want to make my own drag feature witch will use a Picture box as dragging place. So that the user can place the mouse over the Picture Box and then move the form around. Is that possible This will work for the form is you have a couple of pixels as a boundary and drag on the form. You can do this with the picturebox too if you do a little bit more arithmetic and use the picturebox mousedown and mouse up events. If the picturebox is the same size as the form you need no additional arithmetic. ‘Class member variables: Private Formloc As New Point Private lastpoint As New Point ...Show All
SQL Server How to access Output (Inserted.ColName) from client application ?
I am using SQL Express 2005 and VB .net Express. Question 1: How can I get the result stored in Inserted.ColName (by Output clause of insert command). In the documentation (BOL) for SQL 2005, there is written "returned to the processing application for use" in Output clause (first paragraph). Question 2: How to store Inserted.ColName into local variable when insert command is running in stored procedure.: Ses, this is a proper way to do it. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stuttering in D3D application
Hello, we're experiencing stuttering in our D3D game. With stuttering, I mean that the game loop will generally take 20-30 milliseconds to complete, running smoothly at ~30 fps. But then, like once per second or so, the game loop will take like 150 milliseonds or more to complete. The stuttering happens on many different computers so I don't think it's a driver/hardware/setup problem, but rather something that we're doing in our rendering that's causing the stuttering. Many other games run fine on these computers. I've profiled parts of the code.. and usually the huge delays come from D3D Present() method or the actual rendering. Does this indicate that there's a problem with the rendering command queue being filled up and stalled or somet ...Show All
Visual Studio Help to use Sandcastle
Hi, I am new bee for using Sandcastle. 1. I am downloaded Septerber version of Sandcastle, and I want o use for VS2005. 2. What are the steps to follow to produce documentation (Chm) of C#2005 files. Please help me, thanks in advance. Regards Rama Gudimetla Hi Anand, Thanks for the reply, I need one clarification, Is Sandcastle can support office based applications like VSTO2005 IF yes, please give me the suggestion to how to use Sandcastle with VSTO applications. Because while using those applications, It's giving an error like "Microsoft" namespaces are not available. Please help regarding this, thanks in advance. Regards Rama ...Show All
Visual Studio 2008 (Pre-release) GridView -> GridViewColumnHeader
Hello, I have an instance of a GridView (gv) object and I'm trying to navigate to a GridViewColumnHeader (gvch). I just can't figure out the navigation path. gv.Columns[0].header //returns an object of type string Is there a way I can access gridViewColumnHeader from gridview Thanks Houman The answer is in: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=891539&SiteID=1&mode=1 ...Show All
.NET Development selectNodes does not give node list when xmlns is used
hello , I am trying to use IXMLDOMDocument's selectNodes method to get the node list based upon xpath expression. I am passing the xpath expression in the method, but the node list returned is empty. however if I remove the xmlns attribute from the root node then i get the correct number of nodes(which is 2) . Here is my sample xml : < xml version="1.0" encoding="UTF-16" > <buttonViewer name="Code" setupPath="Applications.App1.Program1" loop="true" xmlns="buttonViewerSchema1_0" > <buttonViewerSetup stepElapsedTime="0" controllerType="AC800M"/> <buttonStep stepName="S1" stepId="1" channel="1" ini ...Show All
Windows Live Developer Forums 3D Map not displayed.
Hi, I am trying to view 3D maps from my IE 7 browser. My hardware configuration is P4 2.8 GHz; 1 GB RAM; inbuild graphics card with 64 MB of memory. When I switches to 3D mode the 3D control gets loaded successfully but when I zoom in; I can't see any 3D structure; only thing I can see is green land. How can I view 3D objects like buildings & all on Virtual Earth On the VE website, the options link is in the upper right corner of the page. The 3D settings button is near the bottom of the list of settings. Once set, it will be used for any site you visit. ...Show All
Windows Forms Unable to Resize Controls on Inherited Form
I seem to have discovered a strange issue VS.Net 2005. I'm using VB.Net. It would appear that if you have a base form whos windowstate is set to Maximize, you loose the ability to resize controls on the inheritied forms. If that wasn't weired enough, after setting the property back to normal, I added a line in the form load of the base to maximize the window and again, I couldn't resize the controls I added to inherited forms. So, in summary: 1. Create a base form (frmBase) 2. Set its windowstate = Maximize 2a. Compile the app 3. Create an inherited form (frmInherited) based on frmBase 4. Add a textbox to the inherited form. 5. Try to resize it. (shouldn't work) 6. Reset the windowstate on the base form 7. Compile the app 8. Try to resize ...Show All
Visual Basic VB.net DLL handling
I have developed a VB.net component and created a dll. I have a form and several functions implemented in the dll. Now, I would like to invoke the dll and load the form as a component on a form in the main program. The main program is also being written in VB.net. How do I invoke a function in the DLL using VB.net Can I call it as a class "plugin.init" -- HOW ALSO, I want to load the dll on the fly (i.e., like a plugin..). All the plugins will have the same "entry function". How do I specify this in the VB.NET DLL My DLL code follows: Public Class plugin ReadOnly Property getSWClass() As Integer Get Return 4 End Get End Pro ...Show All
Smart Device Development How to get HDC from Handle on PocketPC?
I want to use gdi32 to draw on ppc. When I use: System.Drawing.Graphics g = Graphics.FromHwnd(this.Handle); I see a exception: "'System.Drawing.Graphics does not contain definition for 'FromHwnd'" Help me please. hi, you need to use a win32 api GetDCto get the hdc because cannot use it directly, first of all define a variable from type pointer (IntPtr) and store the hdc value into it using the Win32.GetDC() function: IntPtr hdc = Win32.GetDC ( this.Handle ); Best Regards, Mohamed Saleh ...Show All
Windows Forms Rogue objects in Form.Designer.cs file
I've been developing an application in VS2005. I've noticed that my top level windows form contains instances of objects that I had expected to be deleted, they were child objects to a control layed down at design-time. How do I get rid of these Why haven't they been deleted with the parent object Confused! Michael ...Show All
Visual Studio Testing an Itemgroup in a Propertygroup Condition
Hi, Is it possible to test an element within an itemgroup from a property group I tried but its not evaluating and I know my systax is right there is no errors during a build. e.g. < ItemGroup > < ConfigurationToBuild Include = " Release|Any CPU " > < FlavorToBuild > Release </ FlavorToBuild > < PlatformToBuild > Any CPU </ PlatformToBuild > </ ConfigurationToBuild > </ ItemGroup > < PropertyGroup Condition = " '$(ConfigurationToBuild.FlavorToBuild)'=='Debug' " > < DeploymentServer > Radon </ DeploymentServer > < DeploymentSharePath > DeploymentTargetDEV </ DeploymentSharePath > & ...Show All
Visual C# textbox issues
Hello. I got a little program that requires a user to enter in a charicter name. Using an if statement, I got it so the user cannot just simply press the accept button and bypass entering something. The problem is that I found out that I can just simply put in a space of two and my whole if idea gets bypassed. I though about using the validating feature, but I beleave that would force me to have the user enter a name that is X charicters long and contains no spaces. Is there a way to force the user to enter something in other than just spaces oh yes, another related question: I use to program with QBASIC. In the if...then statement, I could put the cause and in there to include another situation. (Example below in QBASIC). I fo ...Show All
Visual C++ Marshal::SizeOf()
The following generates "illegal use of type as expression," and I don't know why: CHARFORMAT fmt;// = new CHARFORMAT(); fmt.cbSize = Marshal::SizeOf(CHARFORMAT); Surely, since CHARFORMAT is an unmanaged trype it should be a legal parameter Charformat is an unmanaged type defined as follows: struct CHARFORMAT { int cbSize; unsigned int dwMask; unsigned int dwEffects; int yHeight; int yOffset; int crTextcolour; char bCharSet; char bPitchAndFamily; char szFaceName[32]; // CHARFORMAT2 from here onwards. short wWeight; short sSpacing; int crBackcolour; int LCID; unsigned int dwReserved; short sStyle; short wKerning; System::Byte bUnderlineType; System::Byte bAnima ...Show All
