N_John's Q&A profile
SQL Server generate sp using wizards - have problem
When I change some tables dbowner (design table > table and index properties > owner) I can’t generate sp using wizards (tools > wizards > database > create stored procedures wizards). What is the problem (User dbo haven’t any problem) Yes I have rights to create proc in the Db, for example after login SQL query analyzer using my user (“Tharindu”) I can create, delete all sp and tables. But only problem is I can’t create sp using wizards. This error prompt, http://tharindu.50webs.com/err/error.htm ...Show All
Visual Studio 2008 (Pre-release) ListView, I would like somthing like SelectionMode.None ?
I know it’s a little odd. But is there a way to make the ListView “readonly”. I was thinking something in the line of: ListView1.SelectionMode = SelectionMode.None; I know I could just ignore the SelectionChanged event. But the problem is that the styling shows that an item is selected. Best regards, Thomas S. Andersen BTW, as a workaround I'm using this at the moment: ListView1.SelectionChanged += delegate ( object sender, SelectionChangedEventArgs e) { (sender as List View ).SelectedItem = null ; }; Drew: I can’t change the style, because our application will support (runtime loaded) customer styling. But thanks for the xaml paste, it ...Show All
Windows Forms CheckedBoxList
HI, I am using this checkedBoxList control and I really got stuck with adding values to each check box. Also when I add Items to the listbox, the check box is checked or unchecked only at a double click. First click it select the row and then checks the checkbox Is there way to change this that check the box at a click I am able to retrieve the text of the checked box but how do I assing a value to it and retrieve the value Or is it better generate check boxes dynamically Please help me with this control! Thank you. HI, thanks for the reply but i am not really sure if that helps me. All I want to do is Bind a Datasource to the checkedBoxList and Assing DisplayMember and ValueMember. So I can display string (eb. Name of books alo ...Show All
Visual Studio Retreive Project location
Is there a way to retrieve the location entered by the user when creating a new project similar to $safeprojectname$ ie File > New Project Or will I have to use EnvDTE to determine the path of the project Kosmo Hi Kosmo, IDictionaryService is used to access recipe arguments. In this case "LocalDirectoy" is not really an argument in your recipe but a VS expansion macro. If what you need is a recipe argument containing the path to the created solution then it looks like you should code a ValueProvider for this. We've have one in the Clarius SFT called "SolutionPathProvider" that does just this. The code for it very basic: public class SolutionPathProvider : ValueProviderBase ...Show All
Windows Search Technologies Hotkey assignment
I asked this question before, but it was somewhat hidden into another post of mine, so perhaps it wasn't noticed. The default hotkey in WDS 3.0 is Ctrl-Alt-M. In the previous version there was an option to redefine the hotkey. Are there any plans to re-instate that option I've seen there's still a registry key called 'Hotkey'. If I only knew how to set it ;) Thanks! Add my vote for a way to override the hotkey. The WDS 2.0 way was very usable; using Windows Key +S was my favorite. Tim ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Again - C++ DirectX Error
Hi, i moved back to the C++ due to .Net memory management( slow down my app), anyway.... i recompiled the DirectX's C++ examples (October 2006 SDK) and when i run the examples a error ocurs, in the tutorials(No DXUtils) the error location is more evident: *this error code is from the Vertices tutorial. The Error: Unhandled exception at 0x6604a92f in Vertices.exe: 0xC0000005: Access violation reading location 0x00f2b000. The Location: LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg ) { case WM_DESTROY: Cleanup(); PostQuitMessage( 0 ); return 0; } return DefWindowProc( hWnd, msg, wParam, lParam ); The error appears at the end of this function . (green arrow in debugger....) -> ...Show All
.NET Development Connection String problem with MSDAORA.1
Hi. I have two connection strings for my application, one using Microsoft ODBC Driver for oracle, and another using Oracle ODBC Driver. I am getting "Object not found error( ASP)" when I use MSDAORA.1. I am using oracle 8i. Thanks. Sandeep Chanda wrote: Hi Paul, Its every line which has a CreateObject call. I'm sorry but that isn't enough information. What object are you trying to create Code would help. In any event, if this can't be resolved in the next response or so I think you're going to have to follow David's suggestion since this isn't really a .NET question. As much as I would like to help you resolve the issue I'd rather not continue to breach the forum etiquette. ...Show All
Visual Studio 2008 (Pre-release) Update UI Thread from Background Thread - Control.Dispatcher
Hello All, Using the following delegate, and attempting to update the UI. There is no clear examples on how to pass multiple parameters though to the dispatcher. I keep receiving an exception (shown below). The code works if you invoke a method that only has one parameter, however it should work with multiple parameters. Maybe I am missing something simple. -------------- CODE FOLLOWS -------------- Public Delegate Sub MemberChatDelegate(ByVal member As String, ByVal msg As String) Public Sub UpdateChat(ByVal member As String, ByVal msg As String) ' Update UI Code here If Me.Dispatcher.CheckAccess Then ' Update UI Code Else Me.Dispatcher.Invoke(Windows.Threading.DispatcherPriority.Normal, New MemberChatDelegate(AddressOf UpdateCha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need a Push in the Right Direction
Greetings, I am not an expert game developer, but a hobbyist trying out XNA. I want to ask a graphical design question to the community as the best way to accomplish my task. What would be the ideal solution to my scenario Let’s say I have a cylinder or torus like object and the faces are textured with different materials so there are blocks of different patterns. I guess kind of like an Araknoid grid with the different colored blocks. I want to be able to destroy and remove blocks of this mesh object in the game. Should I make a "block" object and try to put a whole bunch of them together like Legos in an array and remove the object from the array if it is collided with I guess if I have one of these "blo ...Show All
Visual Studio Availability of the Premier Partner Edition CD
How does one obtain or purchase the Premier Partner Edition CD that provides a Vs2005 Ide "shell" that you can customize. Hi John, You'll want to fill out the partner engagement form at http://affiliate.vsipmembers.com/partnerengagement.aspx , and someone on our VSIP management team, will follow up with you. Sincerely, ...Show All
Visual Studio Express Editions form deactivates when using messagebox why? & how to work around this?
Hello, I am new to VB Express and programming. I am making a single form application and I am using the form deactivate event to signal when a user switches to another application. The trouble I am having is that when control is passed to a messagebox from within my application, the form deactivate event is triggered. Is there another event that I can use that won't trigger when a messagebox is activated but will trigger if my application loses focus or is there a way to to use the "if then" to bypass the code in the "private sub form deactivate" if control is only passing to a message box e.g. if messagebox(has focus) then dont do anything thank for any help. ...Show All
SQL Server SQL server connection error and cliconfg
Hi Folks; I had a problem with connecting to an SQL server remotely: ConnectionOpen(CreateFile()). Client unable to establish connection I then tracked the problem down to named pipes. I found a solution in cliconfg by changing the network protocol to TCP/IP however this is not satisfactory as the problem exists with dozens of computers and the lab administrator doesn't want to have to run this on ever single system. I made another attempt on the SQL server end by running SQL Server Configuration Manager for SQL Server 2005. I enabled "Named Pipes" and restarted the service. Unfortunately this did not resolve the situation. So is there something else I can do on the SQL server end or is there a command-line paramter f ...Show All
Audio and Video Development how to test Markup
I want to test all the display elements and attributes defined for the markup in the spec. So i would like to verify the behaviour of each element and its attribute by verifying its expected behaviour in the screen (i.e the UI). Since the total number of style attributes for each display element are large in number. I would like to test the behaviour of say first 10 attributes and then capture the UI (of the markup)as a bitmap. Load next markup and run the next 10 atributes and proceed to capture the UI as a bitmap. Then i can study each bitmap for checking the correctness of elements and attributes. So my doubt is - In the above manner is it posssible to test all the attributes in a single stretch. If this is not possible. Is the ...Show All
Visual Studio Tools for Office Problems performing the practice exercises in MSDN Article
Hello, I am brand new to Visual Studio and request up front your understanding. In your reply please don't assume that I know anything or that I will be able to decipher anything but step by step instructions. I am interested learning to use Visual Studio to put together basic Word2007 Ribbon cusotmization. I have installed a fresh copy of Visual Studio 2005 and Visual Studio Tools for Office Second Edition. In MSDN article: http://msdn2.microsoft.com/en-us/library/aa338202.aspx On (printed page 19 of 28) there is a section titled "Using COM Add-Ins to Modify the Ribbon UI. In the section there are two exercises demostrating what I want to try to do. The first demonstrates using a Shared Add-In method. I can not com ...Show All
Visual Studio Team System HELP: Accidently deleted an important project and I need it back!
[Originally posted under Version Control but it was suggested I ask this over here because I might have a permission issue.] Hi all, Here is the deal. I was attempting to move a project in TeamSystem to another project. I had everything checked in and I had a copy on my hard drive. I deleted the project with TFSDeleteProject.exe and then went to create a new one but when I set up my new Workspace and started to add my source I found my source was no longer on my drive. Ok. So I started to freak because this was approx 3 months work for me. We have nightly backups but I had left the backup to my systems team and they only backed up the databases. So I created a new install of TeamSystem on another machine and restored the databa ...Show All
