prayami's Q&A profile
Visual Studio how can I disable the debugger?
Every time a program crashes or do something wrong it pops up a window that ask me what debugger I want to use. Its annoying... I causes me to exit from this game I'm playing - "Titan Quest" and I don't want it to pop up anymore... I am in the same situation, I am sick to death of it popping up everytime a program chucks the slighest error. Surely there must be a simple way to turn it off. ...Show All
Visual C# Just Learning how-to-use C# - Please can these warnings be explained
Hi I have justed started to use c# and with only a simple "Hellow World" programme I have the follwoing warnings. Anyone explain why Thanks. Graham Warning 1 Invalid search path 'C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' Warning 2 Invalid search path 'C:\Program Files\Microsoft Visual Studio\VC98\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' These are C++ warnings and not C#. They are telling you that the LIB environment variable set either in your User environment or the System environment are invalid. You need to change these to match the ...Show All
Windows Forms hyperlink in datagridview
I'm using a GridView in C#.Net 2005. One of the column of the GridView is Hyperlink Column. When i click the hyperlink i want some message to be displayed in another datagridview page and that should be retreived from database based on the link message. i know how to put the hyperlink to the text,but i dont konw how to retreive information based on that link. How can i achieve this Where should i write my coding Hi Shirisha, I assume you must have used DataGridViewLinkColumn to display your HyperLinks. In that case, in order to repspond to User Clicks on HyperLinks, you must handle the CellContentClick event. This event is distinct from the CellClick and CellMouseClick events, which occur when a user clicks anywhere in a ...Show All
Software Development for Windows Vista How can I get Workflow Status from Tracking DB without using SqlTracking and WorkflowStatus?
How can I get Workflow Status from Tracking DB without using SqlTracking and WorkflowStatus property, but by select statement from DB I'm not sure I fully understand your question but I'll take a shot at a possible answer. There is no single column that holds a current status so you need to compute it. Computing it can be done a couple of different ways depending on how you define status and what you want to show. For example you could just get the most recent record for the instance from the vw_WorkflowInstanceEvent table. Join to vw_TrackingWorkflowEvent on TrackingWorkflowEventId to get the text description of the event. You could say that if the table doesn't contain a value for Completed or Ter ...Show All
SQL Server long running packages
I need to execute a long running package (it takes about 16 hours to finish) to load a data warehouse for the first time with all historical data. This package it's a master package and execute other packages; I log the start time and the finish time of the package in a table to manage future incremental loads. I executed the package on sql server where it is saved, but after 8 hours it was running, a new package was started automatically. Then two more packages started .. each every two hours. I set the MaxConcorrentExecutable = 4, this could affect this strange behavoir Anyone could imagine wath happened Thanks Cosimo cosimog wrote: I need to execute a long running package (it ...Show All
.NET Development Creating a Search using VB.NET and SQL
Okay, I have ran into a problem with my Search engine for my database i created in VS.NET (phonelist.mdf). I have an <asp:GridView> setup for the results. I have been trying to read up on SQL and implement my own search but here is what i am running into. I launch the program and it runs fine until it gets to MyCommand.Connection.Open() . The error is InvalidOperationException was unhandled by user , The ConnectionString property has not been initialized. Here is my code for the search. <% @ Page Language ="VB" AutoEventWireup ="false" CodeFile ="phonelist_search.aspx.vb" Inherits ="phonelist_search" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T ...Show All
Software Development for Windows Vista WinForm IN ActivityDesigner
Hey I want to draw a winform IN the designer. Not as, when i click it opens, but directly in the Activity surface. Is this possible I can draw my own activities with a IDesigner class. But how should i draw the form In OnPaint in the ActivityDesigner class If yes...how Just need some directions ... possible/not possible. [Does this question need clarification ] Thanks in regards! Anders Jacobsen My (far out) idea was to try an experiment were i could control the visual looks (button enabled/disbaled, list filling, etc). directly in a workflow. Now i got this to work by drawing a image of the form i am controlling and when i change a property on the form (in the property window) i redra ...Show All
Visual Studio MSI Deployment Issues
I've successfully created my TemplateSetup.msi file. However, when installing my template from the setup.msi file, I get a popup stating: The file aAlpha.config could not be foundwithin the project templates. Continuing to run, but the resulting project may not build properly. This file is in a folder called Config. The folder is copied over successfully but aAlpha and the other config files located in that folder all pop up the same error message. I have config files located in the root of the website and they are also giving the same pop up message of not being found. I also get the message for my MyMaster.Master page, but the MyMaster.master.vb file is copied over without any issues. Does anyone know why this would be hap ...Show All
Visual Studio Express Editions displaying the value of a particular database field
First let me say that, as you might guess, I do not have much experience with Visual Basic. I have a database with 50 records (rows) and 35 fields (columns). My program calculates a value from a bunch of other input information and based on that value the correct field name is assigned to a variable. The records are bound to and listed in a combobox (that part works fine). When I select one of these records I want to assign the corresponding value, from the field that is specified by the variable, into another variable. Does that make sense and if it does - does anyone have any suggestions. Thanks to both of you. Sometimes I think it is the simple stuff I get hung up on. I have worked around this pr ...Show All
Windows Forms Force property grid to completely refresh.
I've implemented dynamic type information for a control class using ICustomTypeDescriptor. Specifically, setting one property to a certain value causes some other properties to become irrelevant so I omit them from the properties collection in ICustomTypeDescriptor.GetProperties(). The problem is that the PropertyGrid control that is displaying the properties for the object does not update to show these changes, even after calling Refresh() on it. I've also tried doing stuff like clearing the selected object from the property grid and re-setting it but it still shows the old set of properties. One strange thing is that resizing the control by dragging one of the resize handles causes the grid to update properly (setting the size via ...Show All
Visual Basic Seeing the registered sql server databases in XP
Hello guys! How can i see what databases are registered in XP, how can i do in VB to get that information on a textbox, for example thks in advance. I found this Class that works a treat when I needed to show a list of SQL servers on the network: Public Class SqlServerList # Region "ODBC32 API" Private Const SQL_HANDLE_ENV As Short = 1 Private Const SQL_HANDLE_DBC As Short = 2 Private Const SQL_ATTR_ODBC_VERSION As Integer = 200 Private Const SQL_OV_ODBC3 As Integer = 3 Private Const SQL_SUCCESS As Short = 0 Private Const SQL_NEED_DATA As Short = 99 Private Const DEFAULT_RESULT_S ...Show All
Visual C# Issues with C++ to C# migration
Im working on a device application (no this is not a device related question, just happens to be the context of my issues) and I continuosly get an error stating "Exception from HRESULT: 0x8005000A" Invalid Advise Flag. Any ideas on what this means or what I should be looking for I am also confused on the use of CreateEvent. This is something i ported over from the C++ app, (with some modification), but I do not know the signifigance of the method or what exactly it does. Any ideas This is what I've done so far class BBChannel : IChannelEvents { [ DllImport ( "kernel32.dll" , EntryPoint = "CreateEvent" )] static extern IntPtr CreateEvent( IntPtr eventAttributes, bool manualReset, bool initialState, ...Show All
Visual Studio 2008 (Pre-release) OnChildAdded/removed event
I have to know when my object (derrived from FrameworkElement) get or lose it's childs. How to implement it Are there any existing events might help with this case Thank you Actually the AddLogicalChild and RemoveLogicalChild derived from Canvas is marked as protected internal, so you cannot override them, the only way to do it is to sorta of hide them from the inheritance hiararchy, that's why I add the new keyword here. Sheva ...Show All
Visual Basic How to create a "Hardware Profile"
I need to create a "Hardware Profile" of the machince running my app. Specifically i need it to gather info about hardware pieces that aren't commonly upgraded such as the hard drive then combine that into a string and hash it for privacy since i only need it for comparision reasons. Any help on how to get manufacturers, models numbers, and serial numbers from hardware is appriciated. Thank you. EDIT: I made a small change to the search term i was using on MSN and may have found what i need WMI, but from what i could read i dodn't undsertand how to get the details I need, anyone know of any code showing implimentation of WMI for simular use as I want EDIT2: ok i did some more digging while waiting for a respo ...Show All
Visual Basic vb 2005 Tab(n) Printing
I an trying to set absolute positions when printing a schedule using Tab(n). which I have successfully used in vb6 i.e. (info(0,i); Tab(4) ; info(1,i); Tab(15);) an so on. I can print with Spaces and Format but each are text length sensitive which do not register correctly in the printed schedule. The numerous books do not seem to cover this point. Help would be appreciated. hemo If you are printing on the Console you may try positioning your cursor directly with SetCursorPosition: =============== Public Shared Sub SetCursorPosition (ByVal left As Integer , ByVal top As Integer ) Member of: System . Console Summary: Sets the position of the cursor. P ...Show All
