chandrababu's Q&A profile
Visual Basic Saving and retrieving html file
I have a method that returns a report as HTML code in a string... I want to save this string/code into a .html file on a folder in my hard drive. once saved i also want to be able to open it in a browser so I can view the report. thanks try this Dim xmlContent As String = "<html>Hello</html>" My .Computer.FileSystem.WriteAllText( "d:\my.html" , xmlContent, False ) System.Diagnostics.Process.Start( "d:\my.html" ) ...Show All
Windows Forms Clicking between forms
Hi, I' ve got two forms with buttons on both. I need to switch when I want between the forms. Now when I click on a button of another form. The Form gets first the focus. Then I need to click once more for the button_event. Is there a way to click just one time Grtz Annihil8 That would be the second option. It change focus first to the frm_parent without depress, on the 2nd try you actually see it depress and the event fires ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Z Buffer problem.
Hello everybody. I know my question seems to be a beginner one's (and it partially is), but I simply didn't succeed to activate a correct z buffer on my application. Here is my code : (I started from a DXUT sample but I have made the device on my own to be sure of what's created) if(FAILED(DXUTGetD3DObject()->CheckDeviceFormat(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, D3DUSAGE_DEPTHSTENCIL, D3DRTYPE_SURFACE, D3DFMT_D16))) { MessageBox(NULL, L"CheckDeviceFormat failed.", L"EmptyProject.exe", MB_OK); return E_FAIL; } //{} if(FAILED(DXUTGetD3DObject()->CheckDepthStencilMatch(D3DADAPTER_DEFAULT, ...Show All
SQL Server changing "header rows to skip" property in flat file connection during runtime
Hi all I have a flat file.I am trying to set the value for the property " HeaderRowsToSkip " during runtime.I have set an expression for this in my "flat file connection manager". But this is not working.The connection manager is not able to take the value during runtime . My expression is as follows: DataRowsToSkip : @[user:: Var] where " Var " is my variable which gets the value from the rowcount component and trying to set it back to the "HeaderRowsToskip" property. I ve even tried setting the value to the " HeaderRowsToSkip " property in the expression builder. Its not working.... Can anyone help me out in solving this Thanks in advance Regards Suganya ...Show All
SQL Server How to set Identity_Insert in dynamic sql?
Hi there, I need to temporary set identity_insert off on a table in dynamic sql. Here is a sample from my stored procedure: Create t_Table Table4test ( ColID Int Not Null Identity(1,1) , ColContent varchar(30) Not Null ) Insert t_Table4test Values ( 'Test1' ) Insert t_Table4test Values ( 'Test2' ) Insert t_Table4test Values ( 'Test3' ) Declare @cCmd nvarchar(3000) , @cTableName nvarchar(15) -- So far all is fine... Select @cTableName = 't_Table4test' /* Now I need to insert a new record, BUT this time WITH ColID so I have to set Identity_Insert to On */ Select @cCmd = 'Set Identity_Insert GateKeeper.dbo.' + @cTableName + ' On' Execute( @cCmd ) -- Now the insert part Select @cCmd = 'Insert t_Table4test Values ( 4, ' + Char(39) ...Show All
Visual Studio Team System Question on Schema Refactoring
If I do the rename of objects, is it possible to identify the list of affected objects, so that I can go and check in only those objects. It means it marks the modified object which some color or different font I know it is possible to preview the changes being made or do the schema compare Is there any other way to get the list of objects modified because of refactoring Virendra If your project is under source code control, after apply refactoring changes, it will automatically check out all affected files, and you can look at your pending change list to see which files get modifed. Also as Jeff pointed out, we do generate refactoring log for each refactoring operation. It is under the "Ref ...Show All
SQL Server Synchronising SQL CE database with SQL 2000 using Active Sync in 2003
HI , I Created one database named login.sdf in sql Ce ,i created one table login having two fields (username and password).it is working well.I trying to synchronise these with SQL2000 using Active sync.it is not working ..And one more things ,i tried to connect the default pocket PC 2002 emulator with Active sync.it is also not working.can anybody give some solution for these problem Thanks in Advance Regards Ihsan Device Emulator supports Pocket PC 2003 SE onwards only and hence only these connect to Activesync. I am not sure about Pocket PC 2002 Emulator which is different from Device Emulator. Regarding to Sql Sync query, moving thread to Sql Server Compact Edition Thread where it has ...Show All
Visual Studio Accessing Crystal reports without .net being installed
Hi all, I have developed a windows application using vb.net which displays crystal reports. Now I have to run this .exe in another system which does not have .net installed. Is this possible ..If 's' what are the files that have to be exported to that system.... Please can anybody help me out .It's very urgent....... plzzzzzz....... Hi, I tried to run the application with the microsoft.net framework sdk v2.0 and crystal reports 8.5 but it throws an exception stating that it could not be handled. process id=0xaf8 (2808), Thread id=0x9a0 (2464). Does it require specific dll's to be installed Regards, Annie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. importing nurbs model?
Does the FBX content importer support nurbs models I exported a simple sphere in Maya 8 as sphere.fbx, but the content importer throws an exception when it tries to build the asset: I saw a reference to a function trying to import animations, however the object isn't animated at all... I can provide the asset somewhere if needed. Building Media\sphere.fbx -> bin\x86\Debug\Media\nurb_sphere.xnb Media\sphere.fbx : error : Building content threw ArgumentNullException: Value cannot be null. Media\sphere.fbx : error : Parameter name: key Media\sphere.fbx : error : at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) Media\sphere.fbx : error : at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) Media\sph ...Show All
Windows Forms BindingSource property list is randomly ordered?
Is it just me, or is the BindingSource property list randomly ordered I have an object with over 50 properties, and finding the one I want is impossible. They are not alphabetical, nor are they in the same order as the object code. I can't figure it out. Any help would surely speed my process, Thanks -RayK I've looked around and can't find anything in the IDE. However, since I also couldn't find anybody else complaining about this, it is possible it is only my machine. I will test on a co-op's machine. I believe he has a fresh copy of Dev Studio without anything else installed. Thnx, RayK ...Show All
Windows Forms Launch Condition Haze
Hi. how we could reinstall the installation itself after a launch condition setup .net framework sdk launch condition as an example. we could set the launch condition in launch conditions deployment. and when we install the software,the installation will detect whether the target machine has already installed .net framework sdk. if not, the installation will rollback and run .net framework sdk setup. The haze is. After .net framework sdk setup,The software installation will not go to start its installation automatically. we should do the software installation again. I want the software installation could do its installation automatically after launch condition installation. How ...Show All
Visual C# Using a Console with a Windows Form...
Alright, I've been searching but I can't find anything related to my question... I need to use a Console with my Windows Form (for debug purposes). How do I "add" a Console Another thing... I need to find out how to make a rich text box unwritable. Thanks! You can dynamically create and destroy a console window using PInvoke to call the Windows API: [DllImport("kernel32.dll",SetLastError= true )] [ return : MarshalAs( UnmanagedType.Bool )] static extern bool AllocConsole(); [DllImport("kernel32.dll",SetLastError= true )] [ return : MarshalAs( UnmanagedType.Bool )] sta ...Show All
Visual Basic Form Disappearing; VB6 to VB.Net
Hello Visual Studio (2005) I am a Casual User... I am in the process of converting a multiform and functioning windows application written in VB6 to VB.Net. My progress has halted because the second form does not persist. In VB.Net: StartUp Object: Form1 Form 1: Information Text & One Option Button; this form launches ok. Code for OptionButton Click Event: Me.Visible = False Form2.Show() Form2_Load Event Code: Me.Visible=True 'first line of code MessageBox.Show("") 'second line of code After running the application and clicking the Option Button in Form1, Form2 is displayed with the message box on top of Form2. When the MessageBox is dismissed it dissappears and Form2 goes away a ...Show All
Windows Forms Designed Bound Datagridview Empty
Hi, I have the following Problem: ( Visual Studio 2005, Dotnet 2.0 MySQL, c# ) Whenever I bind my Datasource to a DataGridView with the designer, I can see the columnheaders in the designer as expected; but the Datagridview is never populated with the Data. When I start the Application, the DataGridView remains empty. ( I worked around the mysql "double-dot" bug in the select statement and a datapreview works alright) When I bind the DataSource manually to the DataGridView it is filled properly after Application startup. I am sure the problem is a noob one - but please help anyway. tia well, yes.. with the fill Method added manually it works. :-) I only thought there was some way to init the dgv ...Show All
Game Technologies: DirectX, XNA, XACT, etc. AutoDepthStencilFormat is not supported as a depth/stencil format for the selected adapter.
If you are getting this error it's due to the fact that XNA is setting your StencilFormat to something that is not handled by your video card. The StencilFormat is essentially your "Color quality" setting in your Display Panel. In my case XNA was setting it to 24-bit when my Video Adapter could only use 16 or 32-bit. This is set by the PresentationParameters.EnableAutoDepthStencil Property. As I do not have the ability to change it directly I have created a temporary work around for the time being. To do this you will have to add a reference to System.Windows.Forms to your project. Here is my modified Game1Designer.cs with modifications highlighted in red: using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Components ...Show All
