langev's Q&A profile
Visual C# Docking problem
Hi, I've got a mdi form with a toolstrippanel(+toolstrip) left and one on the right. I've also got a panel between the toolstrips. I want it to dock(fill) it, but when I do this, the panel is filled also behind the toolstrippanel instead of only between the toolstrips. Anybody how to solve this The containers of the toolstrips (any panel or whatever) should have the same z-index with the panel you want to be displayed in between. May be you are setting the dock property of the wrong containers. First select the toolstripcontainers dock property to right and left then insert a new panel on the form. After that if you set the dock (fill) property of the panel it should be in between the toolstrip con ...Show All
Visual C# Customize Solution Explorer context menu
I'm probably being dense, but I can't find how to customize the context menu for Project items in the Solution Explorer. It's got a whole bunch of SQL Server stuff I don't want in it ("New Mining Structure", "New Cube", I mean, wtf ) which is making it necessary to scroll to get to "Properties", and it's driving me MAD. Any help getting rid of these SQL items would be deeply appreciated. And, hello, people who designed this in the first place Ever heard of sub-menus Seriously. Mark, I posted a walkthrough of customizing the context menus in VS on my blog a bit ago ( http://blogs.msdn.com/ansonh/archive/2005/12/09/502020.aspx ). It should be the same steps in this case, except that you'll want to c ...Show All
Visual Studio 2008 (Pre-release) multiple animations within one EventTrigger
hi, how can i realize animations on multiple rectangles within the same event. I want to define this within a style in my XAML. My idea is, if a certain event takes place, multiple animations on different rectangles will be started. i tried the following: < ControlTemplate.Triggers > < EventTrigger RoutedEvent = " Button.MouseEnter " > < EventTrigger.Actions > < BeginStoryboard > < Storyboard > < ObjectAnimationUsingKeyFrames Duration = " 0:0:0 " Storyboard.TargetName = "rect _Normal " Storyboard.TargetProperty = " (Rectangle.Visibility) " > < DiscreteObjectKeyFrame KeyTime = " 0:0:0 ...Show All
Visual Studio Express Editions Problems downloading Visual Basic/Visual C++
I recently restarted my system, which had visual basic 2005 express edition, and i downloaded it with no problems. However, when i restarted the system and tried to download Visual Basic or Visual C++(from http://download.microsoft.com/download/C/E/3/CE3EB81B-12FE-4503-A566-0E0F49E4A5ED/vbsetup.exe ), nothing happens. I mean, it is a completely blank screen, and no download dialog appears. I tried to right click-save as, but the file was an html file. When i viewed the source, it just shows the <html> and a couple of other tags, none download related. I have internet explorer 7 beta 3, and i downgraded to 6 and temporarily disabled pop-up blockers and firewalls, but it still didnt work. What could be the problem ...Show All
Visual Studio 2008 (Pre-release) select in IEnumerable<>
Hi, is there a way to do similar: var userStates = from u in db.Users where u.UserID in (1,2,3) select new UserState {u.UserID, u.FlStateID }; the list (1,2,3) is an IEnumerable, IList or more general a "not in db"-collection. there are ways to join for sure but the performance is unusable. The join actually is not calculated in the db. thx, Jorg Blaumeiser The current bits do not allow that syntax. As you stated, you could do it as a join on the client side, but I understand the performance implications. The issue has been brought up and the team stated that they would take a look at it. You may wish to check the archives for more information. ...Show All
Visual C# private new void Dispose()
Hi! I've a class, inherited from SerialPort, i implemented IDisposable in my class, but in the Dispose method warning about this method hiding the inherited Dispose method from SerialPort class. The warning suggest that use the 'new' keyword, and then the warning disappear and my Dispose method work ok too. What's is the explication of this some link I'm looking for documentation that explain it. Regards. As an explanation, read C# Language Specification Standard Ecma-334 4 th Edition / June 2006 section 8.13 Versioning for why new keyword help. ...Show All
Visual Studio 2008 (Pre-release) Need guidance for a STS implementation
Greetings, I am quite new to WCF, and i would like some advices about how to implement a STS. I need a STS which will issue SAML tokens based on user credentials (Username and password). I think it is pretty standard but if there is a STS SAML QuickStart in WSE3, there is none for WCF. I am still trying to figure out what is the closest sample available out there from which i could start. I don't want to use InfoCard as my services clients are Web site applications, and i am using the Jan CTP version. I have seen a Federation sample in the SDK which is using a certificate to authenticate users and also i have seen that MS released the "Federated Identity and Access resource kit" in september. This last one looks pretty b ...Show All
SQL Server Trying to use the results of a case statement in my select list in my WHERE clause?
I am fairly new with SQL and still learning. I have used a case statemtent for a column in my select list and want to use the results of that statement's field in my WHERE clause but it is not working for me. Here is the code I have so far: SELECT l.loanid, p.investorid, l.duedate, case when pc.duedate >= l.duedate then pc.duedate end as RateDueDate , pc.interestrate FROM loan l inner join participation p on p.loanid = l.loanid inner join paymentchange pc on pc.loanid = l.loanid where p.investorid = '12345' and RateDueDate is not null order by l.loanid, pc.duedate I want to put the results of this case statment in my where clause like highlighted above but it is not working because RateDueDate is not an actual column in the table. ...Show All
Visual Basic Datagridview binding
Can I bind a populated datagridview control to a datatable In other words the datatable will contain the dgv's contents. design_omega, 'When its form loads, the program makes a DataTable object and adds some columns to it. It then uses the object's Rows collection's Add method to add arrays of objects to the DataTable. It finishes by setting the DataGridView's DataSource property to the DataTable. The DataTable does the rest automatically. Private Sub Form1_Load( ByVal sender As System.Object, ByVal _ e As System.EventArgs) Handles MyBase .Load Dim dt As New DataTable( "People" ) dt.Columns.Add( "First Name" ) dt.Columns.Add( "Last Name ...Show All
SQL Server Need help after creating SSIS project
Hi, I have created SSIS project that imports .csv file into sql server 2005. SSIS package is saved successfully but now i want the table created in sql server 2005. So, how to get the imported data in sql server 2005. Can any1 help me out Thanx n Regards, Ruja :) Hi Rafael, Yes i have the mentioned components in my package data flow. And when i execute package, i m getting the following error : Source - LogFile_csv [1]] Error: The "output column "Delivery Status" (40)" failed because truncation occurred, and the truncation row disposition on "output column "Delivery Status" (40)" specifies failure on truncation. A truncation error occurred on the specified obj ...Show All
Visual Studio Multiple Pages Report
Hi All, I have been assigned a task to create reports for invoices for the company. The requirements are as follows:- 1)Multiple invoices are printed at one time somewhere from between 30-400. 2)Each invoice should have 4 pages -first page is like a blank page with Order Number -second page is for the order details note: this page should be able to grow if the order detail is huge. -third page contains records for personalized orders and should appear only if the order was personlized -fourth page contains the internal comments if there was any internal comment on the order by the company again should be printed only if the internal comment is present. Can any one help me with this Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Easiest way to create a laser effect for a board game conversion?
Just as the subject says, I have a couple of projects in the works where I need a laser effect for board units. One thing that I'll need to do is have it reflect off of objects. If anyone have any suggestions/ideas I'd greatly appreciate it. Assuming you already know where you want to draw your lines and are just looking for suggestions as to how to draw them - you could draw the line segments using rotated and scaled sprites. Use a texture that is 1 pixel high and a small number wide (say 16 or 32, depends on how wide you want your beam), the texture should contain a profile of your beam (perhaps a gradiant in the alpha channel). Then use a bit of trigonometry to convert the line start and end points into angle and distance and ...Show All
Visual C++ hex version of atoi?
for anybody who dosn't know atoi (A to I) is a marco for converting an ascii character string representing a number to and integer data type. (Opositie of printf("%i",i);) Does anybody know if there's a hex version of the function convert "4A3D" to 19005 LONG val = 0; sscanf_s( "4A3D" , "%x" , &val ); ...Show All
.NET Development deleted
deleted ...Show All
Visual Studio Team System TFS Trial CALs
How many users can access the TFS using the TFS trial version Thanks Adam. I want to be certain I understand. My group has 6 licenses for Visual Studio 2005 Team Suite and 75 licenses for either Visual Studio 2005 System Developer or Visual Studio 2005 System Tester. My understanding is that each of those licenses come with 5 CALs for TFS. The Workgroup version of TFS limits access to only 5 CALs. How do I get all my CALs accessing the TFS Thanks for your help LouS ...Show All
