chrislal's Q&A profile
Visual Studio Team System Unsafe Modifier
Hi All, How to know if a class have the modifier Unsafe Thanks, You don't, it isn't stored in metadata for that class. But the assembly will request SkipVerification security permission. ...Show All
Visual C# program exit????
i trying to learn c# but when i try start/debug it. i say The program '[3864] WhatDay1.exe' has exited with code 0 (0x0). it does whit all the labs so fair help me plz what does this means and how to fix it that means everything ran ok ( Error code 0) I believe the 3864 is the process ID nothing to fix. ...Show All
Windows Forms textbox
Hi everyone. i am new to this vb stuff and i was wondering if anyone can help me out, the problem is that i have a textbox and want to convert the input to uppercase, which is fine but when i type the text into the box at runtime it's back to front. as i say new to this and sorry for being a pest. regards and respect karmamonk ...Show All
Windows Forms Eliminating flicker in transparent controls
Hello all, I am working on an application that requires transparent controls. I have used Bob Powells method (http://www.bobpowell.net/transcontrols.htm) and it works just fine. However, it is not possible to use double-buffering. This is mostly not a problem, but for some controls that I use (e.g. a transparent gauge-type thing drawn with GDI+ that changes frequently) there is&n ...Show All
Visual Studio 2008 (Pre-release) Subscribe to DependencyProperty changes in code?
I have a class called Playlist . Playlist exposes an ObservableCollection called Entries and also exposes a DependencyProperty called CurrentEntry . Now I would like to build a control called PlaylistView that will display the entries in the Playlist and highlight the CurrentEntry . My idea was to build a control based on ItemsControl and have a public property of type Playlist . When the Playlist property is set, the ItemsControl s' ItemsSource would be bound to the Playlist . Entries collection. But whenever the value of Playlist . CurrentEntry changes I need to update update the items styles accordingly. What's the best way to do t ...Show All
Windows Forms DataGridVeiw Control(columns)
Hey, I am trying to amke it so when you clcik on button1 then on datagridveiw1 it will add another column, and the header text of the column will be whatever text you have put in textbox1... I can do all of this except for the adding colums part, I tryed different ways of code to do this but I cant figure out how without getting errors, so can someone help me out Thanks :) EDIT: oh, and I am using Visual Basic 2005 express Hi there, I have found that the below way works for me (& it seems to work with bound and unbound DataGridViews). Basically I have copied and pasted the event handler for a but ...Show All
Visual Basic LastPosition feature
Dose vs 2005 have 'LastPosition' (right click menu item). If no are there plans to add one. That was really handy feature in vb6 the functionality is still there via the shortcut - hold down ctrl and press the - key. Cathal ...Show All
SQL Server No grouping?
Hi to all! To count(something), it is usually required to use a group by function, however, that is not applicable in this case: I would like to select records that have similar values for 'col2' and 'col3', given a certain 'col1', and how many records each 'col1' returns. The following example hopefully makes it clear. The table: Col1 Col2 Col3 ------------------------ s1 A B s1 C D s2 A B s2 C D The result should be: col1 col2 col3 Expr --------------------------------- s2 A B 2 s2 C D 2 I had figured out the not-working-query: SELECT *, count(col1) FROM table as t1 INNER JOIN table as t2 ...Show All
Visual Studio Please help with MSBuild
hi.. im trying to automate my build process.. so ive found this MSbuild thing.. it looks like itll do what i want.. which is build the various components of my apps with net1.1 compatibility. so.. can anyone help me.. i have no idea where to start. basically i just want to start with a simple .net app, build it with ms build, maybe have it reference a vb6 dll. anyone shed any light on how id do that cheers. Hi, We are working on providing support in MSBuild to target .NET 1.1. Please see the following for some details: http://www.gotdotnet.com/codegallery/codegallery.aspx id=22a73 ...Show All
Visual Basic Storing a form in a dll
In my project I have four forms. Is there a way to store a form in a dll file instead of storing it in the exe file. I want to be able to call the form to show just like I would normally. If there are any links on how to do this in vb.net that would be great also. Thanks. Hmm that was too simple. Maybe that is why I never thought of that. I'll give it a try. Thanks. ...Show All
SQL Server Problems Linking to Oracle Server
Has anyone successfully linked to an Linux Oracle server running 9i We are unable to get the link working.....have installe dvarious drivers and still get connection refused. Any thoughts ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Orthographic Projection using DXUT CModelViewerCamera
I was wondering if there is an easy way to obtain an orthographic projection with the DXUT camera class CModelViewerCamera I have unsuccesfully tried the following configuration: D3DXVECTOR3 vecEye(-1.0f, -1.0f, -1.0f); D3DXVECTOR3 vecAt (0.0f, 0.0f, 0.0f); g_Camera.SetViewParams( &vecEye, &vecAt ); g_Camera.SetProjParams(45.0f, 1.0, 0.0f, 10.0f); I'm not aware of there being any built in method, but CModelViewerCamera derives from CBaseCamera , so you could conceivably specialize it further and add in orthographic support. If you follow the trail, CModelViewerCamera::Set ...Show All
Microsoft ISV Community Center Forums Can not connet to BSM server
I just finished installing BSM Server, however I can not connect to the server. I keep getting an error: " Connecting to server http://localhost:46786/ has failed. Any ideas on how to troubleshoot this problem. Thanks in advance! Hi, Actually, your best bet would be to post this question to the BSM newsgroup as the product team does answer questions there and there is also a FAQ available. http://office.microsoft.com/en-us/assistance/HA100602251033.aspx If they aren't able to help out let me know. -brenda (ISV Buddy Team) ...Show All
Visual Basic Disabling CausesValidation on cancel button in vb 2005 not working
Hey all, I'm trying to get a cancel button on a form to not raise validation events. Looking it up on msdn it seems simple enough I just set the CausesValidation property on the button to False and it should not fire the validation event. However, it's not working. I've looked at the different ways to change AutoValidate on the form but none of them give me the desired results and all the msdn material I can find leads me to believe that the form should keep it's default of EnablePreventFocusChange and that only the control (cancel button in this case) should I have to change anything. I'm not sure if this is a bug in vb 2005 or if ...Show All
Windows Forms BindingNavigator - how to emulate 'DefaultValuesNeeded', 'RowValidating', or isNewRow?
As availabile to DataGridView (DGV), how can one emulate 1. 'DefaultValuesNeeded' -- want to seed the default values 2. 'RowValidating' -- Trap errors 3. IsNewRow -- Determine if its a new row so certain validations can be ignored. JS My Solution was to hook my own save routine in the toolstrip and also added an event handler to when the add new button was clicked. In the add new button, i updated the text boxes with default values. In the save routine, i was able to run all my validations prior to the update/accept. ...Show All
