Raj Parmar's Q&A profile
Visual Studio Express Editions timeout expired when connecting to SQL server database
I have made some programs which work with SQL server databases. I don't know much about databases, but I found working with Visual Basic and SQL server express very simple. The problem is that, once my programs are "published" and correctly installed and I try to run them, I get a "timeout expired" message very often. It says: "the timeout period elapsed prior to completion of the operation or the server is not responding" when I quit and start the program again, it works finely. But now I'd like to create a more complex program with a bigger database, and I feel I can't rely on this software I am using (Visual Studio 2005 express edition). Does anybody know where this problem originates exactly and h ...Show All
Visual Basic Saving MS Word documents in a database
I have an SQL Server database containing a table of MS Word documents. My application must allow the user to open these documents in MS Word, make changes, and save the modified document back to the database. My current approach is to retrieve the object from the database, save it to a file and then open it in Word. Once the user has finished making their changes I will then save the file back to the database. I have the basic mechanics working, but the user currently needs to manually initiate saving the file back to the database (by clicking a button). I would like to automate this process so that whenever the user changes the file (saves it in Word), it is automatically saved to the database. Any ideas on how to ...Show All
Windows Forms Datagrid column width and row color.
VS 2003 VB .NET I am currently trying to accomplish two things. 1. In Code, trying to set the column width 2. Trying to change the color of the row based on the value of one cell. For the width, I thought I could do it like this: Dim ts As DataGridTableStyle = New DataGridTableStyle Dim daGrid1 As New SqlDataAdapter(Me.SqlCommand1) dsGrid1 = New DataSet dsGrid1.Clear() daGrid1.Fill(dsGrid1, "top") DataGrid1.DataSource = dsGrid1.Tables(0).DefaultView DataGrid1.TableStyles.Add(ts) DataGrid1.TableStyles(0).GridColumnStyles(1).Width = 5 This does not effect the grid at all. 2. I don't know where to start, can't find a walkthrough or article on just this. I am needing to do both of these at run time, n ...Show All
Visual C# How to access settings created by the SettingsSingleFileGenerator from another assembly?
How can I access settings created by the SettingsSingleFileGenerator from another assembly Is it possible to tell the SettingsSingleFileGenerator to create a public class instead of an internal Or how can I access my settings Greetings Harry Hi Dave, my reseaches resulted in that getting public instead of internal settings from the designer seems only to be possible on writing a custom codegenerator. I solved my problem by referencing (add class as link) the settings class in the other projects. ...Show All
Visual Studio Questions about Sandcastle
I have some questions and observations regarding the July CTP of Sandcastle when using it to generate documentation. The generated CHM file doesn't seem to have an index. There's no Index tab displayed in the viewer. The generated CHM file doesn't seem to have search capability. There's no Search tab displayed in the viewer. When the CHM file is double-clicked to open it for viewing, the right-hand pane of the viewer shows a mostly-blank page with a small warning icon in the upper left-hand corner. This mostly-blank page goes away when any of the entries in the table-of-contents in the left pane are clicked. In the CHM file, the documentation entries for class constructors always seem to have ".ctor" prepended to them. The table ...Show All
Visual C# accessing custom entity objects throughtout the project
Hi, When we define a ProductEntity class for example. If I want to use the class object myProduct in a form1 and form2 and access the properties from different forms. Let s say, first I load an mdi form mymdiForm, then I click a button that loads form1 and in form1 i click a button that loads form2 and so on.. My concern: 1- where do I instatiate myProduct object. In the mdi, or in form1 or in form2 knowing that myProduct properties are assigned from controls located in the form form2. Also I want to make sure that I can access those properties in the mdi and form1 forms and all the project Do I declare myProduct as public or friend or what Also how can I access the object myProduct and ...Show All
Visual Studio How to catch .net 2003/5 solution tree drag and drop event
I am using EnvDTE to build an addin for .net 2003/2005. I am trying to catch the drag and drop event of the solution tree for both file items and folders. From the EnvDTE module, I can't find anything which is really useful to do this. Also, found that IVsHierarchyDropDataTarget and IVsHierarchyDropDataSource interfaces in the VSIP provide support for drag and drop, but I have no idea to hook them up with the IDE's solution tree so that we could catch the event. Please help on this. Thanks very much. Ivan Hi Ivan, This particular interface is implemented by the hierarchy implementor. Basically, the project hierarchy consists of a number of interfaces, like IVsUIHierarchy, IOleCommandTarget, IV ...Show All
Visual C# String to bool Conversion
Hi, I am a beginner of C#, let alone programmin in general. I was practicing some for loops and if statements. So I came up with the following code: using System; namespace ConsoleApplication1 { class For { public static void Main() { int sum; int i; Console .WriteLine( "Hello and welcome to the randomonitator" ); Console .WriteLine( "You have two choices, (1) or (2)" ); Console .Write( "Pleace select a choice: " ); string enter = Console .ReadLine(); if (enter = "1" ) { for (i = 0; ; ) { sum = i * i; i++; if (sum > 500) { break ; } Console .Wri ...Show All
Visual Basic Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum. I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displayed when I hover the mouse over the breakpoint which shows a yellow icon in place. Can anyone here tell me what I should do to correct this Click on the Menu item for Build then select Configuration Manager. Here you can set the configuration for each project in your solution. In order for the ide to debug your ...Show All
SQL Server Entering Notes/Comments/Remarks to Report
Hi, there, We intended to create a report that allows users to enter remarks, comments or additional notes in supporting the report. Can it be done in SSRS FYI, we are using SQL Server 2005 Enterprise. Thank you. Regards, Yong Hwee You want to annotate within the report, or you want to add extended properties to the report If it is the first, then there is no way without changing the RDL or annotating the exported format. If it is the second, then you can use SetProperties/GetProperties to write/retrieve extended properties (including your annotations) programmatically. ...Show All
Smart Device Development Lost Focus After Landscape rotation
i am Work in Dvorak Sip form Dvorak i call FullScreen KeyBoard in Any Application such as Word,Excel,SMS..... i Set Mouse in Specific Field and Show Dvorak Sip then i call Full Screen KeyBoard and conver Device to LandScape (Before Call FullScreen I Get Focus for Specific field ) when Hide Full Screen after write text ,and return to dovark sip i am Call g_pIMCallback->SendString(DataSTR,wcslen(DataSTR)); to set data in Word Document ,work fine but in new Contact Dialog when set focus in Name Field and save HWND for This Filed and show my SIP and Convert Device To LandSacpe the focus Lost (disappear) , this menas when rerurn to New Contact To Call g_pIMCallback->SendString(DataSTR,wcslen(DataSTR)); no ...Show All
SQL Server MSDE fails to install; cnfgsvr cannot start the instance service.
Windows XP, SP2; MSDE 2000 Release A - on some installs of the XP SP2 MSDE installation fails, the section of the install log that applies is: Executing "C:\Program Files\Microsoft SQL Server\80\Tools\Binn\cnfgsvr.exe -V 1 -M 1 -U sa -I "INSTANCE" -Q "SQL_Latin1_General_CP1_CI_AS"" MSI (c) (60:64) [19:21:20:734]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg Setup failed to configure the server. Refer to the server error logs and setup error logs for more information. MSI (s) (B4!F4) [19:21:33:546]: Product: Microsoft SQL Server Desktop Engine -- Setup failed to configure the server. Refer to the server error logs and setup error logs for more information. Action ende ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spining cube issue ( dissapears )
Hello, Trying to understand 3D world with the help of XNA. Finally managed to draw cube on screen. Now I want to rotatet it - it actually does, but at some point of rotation cube dissapears and reappears again! Any help is appreciated.. code is below. Thanks, ErnisJ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; using Microsoft.Xna.Framework.Content; namespace Another3dTest { public class Game1 : Microsoft.Xna.Framework.Game { GraphicsDeviceManager graphics; ContentManager content; Matrix worldMatrix; Matrix viewMatrix; Matrix project ...Show All
Visual Studio How to detect if a DebugLaunch call succeeds?
When calling DebugLaunch in the code below, the HRESULT returned is always S_OK, whether or not the launch actually occurred. For a contrived example, for any project type, create a new text file, rename it to .exe, and set it as the program to launch in the project properties. The launch will show a dialog with an error message about the file not being an executable, and the launch will fail. However, the HRESULT will still be S_OK. This would happen with all the other failures I can get VS to have in launching as well. Is there a way to find out if the launch actually worked I can’t look for mode changes, because the launch could be without the debugger. BOOL bCanLaunch = FALSE ; VSDBGLAUNCHFLAGS fla ...Show All
Game Technologies: DirectX, XNA, XACT, etc. AccessViolationExcpetion
I have a really weird and annoying error appearing. Basically, I'm following the Hazy Mind engine tutorials for XNA, and I can't get post processing working correctly. I get this error occouring An unhandled exception of type 'System.AccessViolationException' occurred in Microsoft.Xna.Framework.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. This does not always happen in the same place though, if I turn off code optimisation, it happens in the line above. I have run Windows Memory Diagnostic and my memory seems fine. Here is the code public void ResolveAndRender(GraphicsDevice myDevice) { myDevice.ResolveRenderTarget(0); myDevice.SetRenderTa ...Show All
