Pranav Sanghadia's Q&A profile
Visual Studio Sandcastle: File names
I need to have references from other documents to the html.files that are created with sandcastle, so the names of the html files needs to be consistent every time i Build a new help file.. I was thinking of using the namespaces as file names.. In the Output/html folder,how do I change the name of the files from using GUIDs to namespaces The filenames with GUIDs are added in AddGuidFilenames, could I simply extract the namespace from the api/@id attribute and use that as file name or is there a better way I've had a couple of similar requests for the help file builder. I'll be adding a project option to allow selection of either GUID filenames or "friendly" names based on the member name. ...Show All
.NET Development Table does not appear to update after UPDATE statement
I am trying to update a table (asps) in MS access with the code below. However even though it complies and appears to execute, the table is not updated. Both ID and recID are double. I am working in ASP .NET C#. Any ideas Thanks private void Button1_Click( object sender, System.EventArgs e) { OleDbConnection conn = null ; conn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source=C:\\Inetpub\\wwwroot\\WEB\\afterschoolprograms.mdb"); string strEditCommand = "UPDATE asps SET "; strEditCommand += " NAME = "; strEditCommand += " WHERE ID = "; using (OleDbCommand cmd = new OleDbCommand(strEditCommand, conn)) { cmd.Parameters.Add( ...Show All
.NET Development How to sign a Compiled assmebly
Hi All I need sign a compiled assembly. I don't have source code and I don't know if this assembly is delay signed. If this assembly not signed with public key before, can we still sign it and how we do that thanks, Alan I hope these resources help you: http:/ / msdn2.microsoft.com/ en-us/ library/ ms243141.aspx http:/ / msdn2.microsoft.com/ en-us/ library/ ms247066.aspx http:/ / msdn2.microsoft.com/ en-us/ library/ ms235305.aspx http:/ / msdn2.microsoft.com/ en-us/ library/ h4fa028b.aspx http:/ / msdn.microsoft.com/ msdnmag/ issues/ 06/ 07/ CLRInsideOut/ default.aspx http:/ / msdn.microsoft.com/ library/ en-us/ cpguide/ html/ cpconDelayedSignin ...Show All
Visual Basic What Installer to Use to Distribute VB Application
I'm new to programming and have just completed an application I'd now like to distribute to folks for testing. Can someone please recommend an installer application (either free or payware) I can download to package the application for installing on someone elses computer Thanks for your time! Doug Just out of curiosity, why do you want the application to be located under the Program Files folder (Yes, I know there are plenty of valid reasons for this, but I the most common reply that I've gotten so far is "because...because... I don't know" ) Best regards, Johan Stenberg ...Show All
Visual Studio Express Editions Forms size changed after converting to VB 2005 Express
I recently installed VB 2005 express on my new Vista OS machine. I coverted my VB 2000 projects (written on my XP machine) to VB 2005. Now all my Forms are too big to fit on the screen. What can I do to change the size of the forms so that they fit on the screen again, besides starting from scratch and redoing everything. Steve Yes!! Good Call!! I had set both machines to have the same resolution and color but somehow my new machine had either altered itself (another monitor showed up in my screen setting, not sure what that’s all about yet) or I did not save my setting properly. Saved me a lot of work Thanks Steve ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot get a list of Lobby aware applications (C#)
Good evening all, I just cannot seem to get a list of Lobby aware applications registered on my system. I know there are two games that are listed on dxdiag's Network tab, and shown as Lobbyable applications. But when I execute: Microsoft.DirectX.DirectPlay.Lobby.Client.GetLocalPrograms() and try to attach to a listbox, nothing happens. The array is empty. Any idea why I have DX9 installed. Is it backward compatibily issue or something I'm missing Regards, Shuhrat That's look you trying to start AOC :) I am using pointer to structure, so, those interfaces aren't familiar to me but I notice that you totally missing session info. Search for : DPLCONNECTION_CREATESESSION DPLCONNECT ...Show All
Visual Basic Parse email addresses from string
I am attempting to extract the email addresses from the body of an email. I download the email to my app, extract the subject etc but i now want to also extract all email addresses from the body of this email. I have been trying the following code using regex but i only get results if i enter an email address alone in the textbox, as long as i combine it with other text i get no results. My Code so far ---------------------------------- Dim textstring As String = TextBox1.Text Dim emailpattern As String = "^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|[ccc](([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\] )$" Dim r As New Regex(emailpattern, RegexOptions.IgnorePatternWhitespace + RegexOptions.Igno ...Show All
SQL Server Exotic Unpivot Transformation
I totally give up. I need to import an csv file with system monitor performance counters into a sql server 2005 database example csv format: "(PDH-CSV 4.0) (W. Europe Daylight Time)(-120)"," Server1 \Memory\% Commited Bytes In Use", )"," Server2 \Memory\%Commited Bytes In Use" "07/18/2006 10:08:57.295","24.701095057336488","30.701095077776488" and I want it to transform it into: Time ServerName Memory\% Commited Bytes In Use 07/18/2006 10:08:57.295 Server1 24.701095057336488 07/18/2006 10:08:57.295 Server2 30.701095077776488 I have two problems: I need to trim the servername from the column values I need to insert an extra column ServerName and put those server names in it I ...Show All
Visual Studio Line Charts
Okay... I feel really ridiculous for having to ask this but I can't seem to find the answer anywhere I've searched. How do we get more than one line on a line chart I'm tying to graph a boolean variable over time. I'd like one line of trues per second, one line of falses per second, and one line that's a grand total of both. hi all, you can do one thing,take the 2 fields on X-axis and make them a group.In the summarized fields take the 2 fields and for the third field's sum,so finally it becomes ON CHANGE OF fields(i.e.X-axis field) and SHOW SUMMARY(i.e. third field's sum).This will solve your problem ...Show All
Windows Forms Textbox focus in tabpage?
I have two tab pages.In the first tabpage I have some textboxes also in the second tabpage. I wont to get focus on Textbox3 (in tabpage2) when I enter the tabpage2 but it wont do that. This is my code: Private Sub TabPage2_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabPage2.Enter TextBox3.Focus() End Sub What is the problem Thank you! Instead of setting the focus using TabPage2_Enter, try using the SelectedIndexChanged method like: <code> private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if(tabControl1.SelectedIndex == 1) textBox3.Fo ...Show All
Windows Forms Problem when creating custom control
Hello everyone. This is my first post here. I just joined today. I created a custom windows control with a Tree View inside of it. On the load event of the control, I fill it with categories structured as a tree from a MsSql database. I created also a OnClick event for the control, and pass it to the OnClick event of the Tree View. Then I use the control in a web form like a directory structure, so when the user clicks on one of the nodes of the Tree View, it gets data related to the node selected and then it displays the data somewhere else on the form. The problem is that when I use the Click event and check the selected node (TreeView.SelectedNode), it is selected AFTER the click event, so when I firs ...Show All
Visual Studio Team System Workgroup vs Domain or both?
I hope that someone will be able to advise me on a VSTS installation scenario we are considering We have 4 remote sites that we would like to connect to the main central repository, geographically the sites are in 2 different continents. The main VSTS install we would like to host in a secure datacentre with the 4 sites connecting via proxy servers hosted in the local offices. We will not have connection to an AD domain in the datacentre so this will have to be installed as a workgroup but the local office proxy servers will be connected AD domains, what is the best way to handle permissions, is there a way we can enable the domain accounts to create projects etc What are the potential pitfalls with this scenario Or would the best w ...Show All
Windows Forms How to change color of caption bar of windows form
hi all I would like to change color of caption bar of windows form. i changed backcolor property but it wont work. all time i get system color any one can help me hi akbar thanx for ur reply but this solution will change the caption bar color of all the windows. i want to change the caption bar color for my application only. ...Show All
Microsoft ISV Community Center Forums Trying to write a VERY VERY simple routine BUT GOT STUCK !! ::) = Brain Ache !!
Hi, I'm affraid I bit off more than I can chew and It's a while since I programmed. 1/ The routine is set in an open Excel worksheet which has 5 fields/columns per row 2/ The routine reads 1 row at a time, splits 1 field, does some ifs and appends 6 new fields per row 3/ I'm stuck with the Loop 4/ I'm stuck with the IFs especially bracketing 5/ I'm stuck with the output writes I'd really appreciate if you could just wiiiizzz through it and ellimate the mistakes. For you 5 mins for me 5 days. Here it is .... Sub TeamPerformance01() ' TeamPerformance01 ' Name Fields in open worksheet ActiveWorkbook.Names.Add Name:="Date", RefersToR1C1:="=Sheet1!C1" Columns("A:A").Select ActiveWorkbook.Names.Add Name:="T ...Show All
Software Development for Windows Vista Multiple Updates of Rules with WorkflowChanges
Hello, I have a WebService and call that: public void Execute() { ... try { this .workflowInstance = this .workflowRuntime.CreateWorkflow( typeof (Workflows. wf_ReglesSite ), this .namedArgumentValues); UpdateRules( this .workflowInstance, this .RulesFile); } ... } The UpdateRules fonction is like that: private void UpdateRules( WorkflowInstance instance, string fileRules) { XmlTextReader reader = new XmlTextReader (fileRules); WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer (); RuleDefinitions rules = serializer.Deserialize(reader) as RuleDefinitions ; WorkflowChanges changes = new WorkflowChanges (instance.GetWorkflowDefiniti ...Show All
