JonathanV's Q&A profile
Visual Studio Team Explorer - Document attributes
Hello, I'm writing an add-in for Team Explorer, which adds a menu option to the context menu of the documents of team projects. It loads just fine, works like a charm, but I can't seem to find out how to fetch the URL of the document (just the (screen) name). I'm doing this by accessing the _applicationObject.SelectedItems.Item(1).Name attribute. That's about the only attribute Item seems to have. Any suggestions Muchos thanks, Jourik Feenstra Hi Jourik, SelectedItems.Item(1) returns an EnvDTE.SelectedItem class which has Project and ProjectItem properties to give you access to the underlying objects, d ...Show All
SQL Server Error: Timeout expired.
Error: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. i am using window 2000 server and MS SQL 2K DEVELOPER. i am doing .NET to connect to the server. This error occur when there are too many ppl connect to the server. May i noe how to solve/configure it. thx in advance As the error message states,your connection pool is full. YOu can either: 1. Increase the pool size, but I guess this will just solve the problem short-term :) 2. Do not use connection po ...Show All
Visual C# How can I code this?
I am writing a text editor. I would like to have a combobox with all the fonts, and I would like the font to change in the rich text box to the one the user selected. How can I code this Matt Use the following code to get all the Font Names in the combo box for (int i = 0; i < FontFamily.Families.Length; i++) { this.comboBox1.Items.Add(FontFamily.Families[ i ].Name.ToString()); } ...Show All
SQL Server clr integration....
sir here are the functions on my test application... <Microsoft.SqlServer.Server.SqlFunction()> _ Public Shared Function WeekInYear( ByVal dt As DateTime) As Integer Return DatePart( "ww" , dt, FirstDayOfWeek.Monday, _ FirstWeekOfYear.FirstFourDays) End Function <Microsoft.SqlServer.Server.SqlFunction()> _ Public Shared Function HttpPost( ByVal uri As String , ByVal parameters As String ) As String Try Dim urlRegEx As New System.Text.RegularExpressions.Regex( "http://192.168.1.23:81/.*" ) Dim p As New System.Net.WebPermis ...Show All
Windows Forms VS.Net 2005 Crashes on Overriding BackColor, ForeColor properties of User Control
I'm working on a User Control and everything was working fine. Then i added code to override the FORECOLOR & BACKCOLOR properties and after that when i rebuild the solution and tried to add the control in a sample Windows Forms and the moment i do this the VS.Net 2005 IDE crashes and closes without any warning / error message as to what happened. This is very annoying. I have been trying to resolve this since 3 days but no solutions so far. Can anyone help me out in here...... -Jay With all due respect, i can understand why the CLR would behave that way, it makes sense. But the least that VS2005 shou ...Show All
Software Development for Windows Vista Share large data between workflow and application
Hi, there My problem is that I want to share data between the workflow and application. Here is the problem more simplified: I have created a state workflow and I have one public variable, I handle the “stateInitialization” event and I have putted here a code activity pointing to the “InitState” function. It looks like this: public sealed partial class Workflow1: StateMachineWorkflowActivity { public int myValue = 1; public Workflow1() { InitializeComponent(); } private void InitState(objec ...Show All
SQL Server RMO: Replication between SQL Server 2005 amd SQL Server 2005 Express
Hi! On an existing MergePullSubscription (Subscriber: SQL Express) I call the SynchronizeWithJob() method. But each time, the following exception occures: ExecutionFailureException: The specified pull subscription is not configured with a synchronization agent job. But how do I configure synchronization agent jobs in SQL Server 2005 Express I had a similar problem, When you add a reference through Visual Studio and under the .NET tab select "Microsoft.SqlServer.Replication" it is actually adding the RMO assembly. The only way I found to get a hold on the MergeSynchronizationAgent object is to ...Show All
Windows Forms prevent flicking while opacity is enabled
Alrighty....to start, I've tried the SetStyles and setting the TransparencyKey to try and simulate a layered window, but neither work. In my software I'm implementing a zoom feature. I have some controls that I programmed myself (they implement Control and override both the Paint and PaintBackground events). When I zoom, I initialize a new form and display it, and change the parent of my custom control. This works well, until I set the opacity of the form to something other than 1. I have 6 custom controls. When my zoomed control is hovering over the other custom controls, and the custom controls redraw they flicker. First they draw at 1.0f ...Show All
Visual Studio Express Editions Need VB help advancing from beta1 to beta2 with a project I was working on...
Can anyone help me with some project differences between beta 1 and 2.. Here is the biggest problem I have. I can't view forms in the designer. Code executes though the way it should when I compile and run. I just can't make modifications to the forms. Here is the jist of most of the problems I have... Warning 1 Method 'System.Drawing.SizeF.op_Implicit' not found. That points to this line of code... Me .AutoScaleDimensions = New System.Drawing.Size(5, 13) And then there is this... Warning 5 'System.Windows.Forms.RaftingContainer' is obsolete: 'This class will be removed after Beta 2, consider using ToolStripC ...Show All
SQL Server General Question
I have a general question about transactions and commands that are replicated in a Transactional replication. My screen shot says: A total of 5 transaction(s) with 85 command(s) were delivered. I know what a transaction is, but what is a command I am assuming a transaction is begintrans committrans, correct Hi, example BEGIN TRANSACTION UPDATE SOMETable SET SomeColumn = 'SomeValue' Where SomeotherColumn ='SomeCondition' UPDATE SOMETable SET SomeColumn = 'SomeValue' Where SomeotherColumn ='SomeCondition' COMMIT 1 Transaction(scope) 2 Updates / Commands HTH, jens Suessmeyer. --- http ...Show All
SQL Server Bar graphic chart is not in the same order with data table
Hi All, I have a very simple bar-graphic report that has the following data: Sale Region Total Sale A 1,000,000 B 350,000 On the table, the data is sort by the Sale Region, so the A would come before the B. But on the bar-chart, the B is always displayed before the A. If it is a vertical bar chart, and then the B is on the left, the A is on the right. And if it's a hoz. bar chart, the B bar is on the top, and the A bar is on the bottom. I try to modify the RDL to make the bars displayed in order, but failed after many tries. Here is the RDL code that I wrote in an attempt to make ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are there any MDX examples of frustrum and occlusion culling about?
well by examples i'm realy looking for something that uses frustrum followed by occlusion culling in c#. as i'm trying to find out how i would take the result of frustrum then feed it into occlusion culling. inorder to get the final render. i'm also very new to c# and MDX. and here's one on frustum culling from chad http://www.c-unit.com/tutorials/mdirectx/ t=45 In general though frustum and occulsion culling are reasonably advanced topics and just copying code as a beginner will probably cause you more pain that gain. Good luck. ...Show All
Architecture XP or XPE for POS application
Hi, Not sure if this is the correct place to post this - apologies if it's not. I'm developing a custom POS application in VB.Net 2.0 for no more than 4 terminals. The touch terminals all have P4 processors with 512 MB RAM and 40 GB HDDs. I'm just wondering if there are any advantages to installing XP embedded (or XPE for POS) instead of XP Professional. Because of the limited number of clients, it would be more expensive to buy the developer tools for XPE and then license each client rather than just buying 4 copies of XP Pro - I already have VS 2005. Because the terminals are reasonly well specced and they will only by ru ...Show All
Windows Forms Can it be done in Whidbey? (Video streaming)
Hi, I need a way to display a Video in .NET Windows Forms (and I'm wondering if Whidbey will be able to help when it comes out). What I need to do is: 1) Take a DVD video stream from file, "process it" byte by byte (alter it) and save it to another file (call this the "output" file). Obviously the DVD file could be massive ...Show All
Windows Forms datareader
hello is there is a method to count the number of rows in the datareader thank you for the time You know, with limited experence with ADO.Net you might be better off just using a data adapter instead of a datareader. Basicly to do it it with a reader you will have to take these steps Create a data table with the same schema  ...Show All
