Duane Haas's Q&A profile
Visual Basic Getting Line no. & Column no. of the current cursor position in the Rich text box
For the project of COMPILER, write now if someone can tell if we can get the Line no. & col no. of a char in a richtextbox, (multiline ofcourse) i m accessing the chars (for parsing) like as follows [ Code: 1]rtf1.text.chars(dex) i need to tell what line & col does the user's cursor is, how m i gonna do it i don't know, i tried to get help with the intellisense, but won't find it anywhere in short, I want to know the LINE NO. & COL NO (as it apopears n VB.net in CODE view) of the Rich Text Box the user is writing code in dmAN1, CHECKED YOUR CODE, IT WAS CORRECT FOR THE FIRST LINE, BUT IN THE NEXT LINES [2ND 3RD & SO ON], IT WASN'T ACCURATE I CHANGED IT WITH THE FOLLOWING ----------- Dim Pos ...Show All
Visual Studio 2008 (Pre-release) CustomControl templating bug?
Could someone try this and let me know whether you get the same errors. Create a new WinFX CustomControl. Modify the template in generic.xaml to include CornerRadius on the Border. < Style TargetType = " {x:Type local:TestCustomControl} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type local:TestCustomControl} " > < Border Background = " {TemplateBinding Background} " BorderBrush = " {TemplateBinding BorderBrush} " BorderThickness = " {TemplateBinding BorderThickness} " CornerRadius = " {Templat ...Show All
Windows Forms All Controls disappear from [Designer] and more...
Hi all, Currently i have a problem with the designer, below is my case: I have total 2 projects in a Solution just namely A and B . While i'm focusing on B project, and come back to the A project. I found that all controls in one of the form (occasionally is the main form) [design] in that project (A) did not load. I shocked and found out that some of the A form's properties value also being set to blank or default, such as: Form's Text become blank , Load event value become blank , WindowState value that used to be Maximized also become Normal . I checked the A.Designer.cs . Luckily, everything is still the same (i suppose). Tried to run it, and breakpoint it. The program did go through the A.Designer.cs, but those ...Show All
Visual C# Move to a next window after pressing a button
Hi, Basically, the title says it all. How can i move to a next window after pressing a button. I'm trying to make a calculator. Thanks in advance! well, if I undrestand correctly, you wish to open another window in your application correct (another form) if so, simply create an instance of it and show it to the user. Example: Form2 theSecondForm = new Form2(); theSecondForm.Show(); //or: theSecondForm.ShowDialog(); the showdialog() puts the form in question into the model dialog meaning that the previous forms opened are not accessible until this form is closed and only then can you access the other forms as well as continuing execution of code. Is this what you are after ...Show All
Microsoft ISV Community Center Forums Help with interface?
Hey Just completed my set of macros that i need to fully automate a process i am responsible for in work. However, i am a bit lost as to the best way to run them i.e. link them to buttons in excel etc. Is is possible to design some sort of interface in VBA and have it load with the spreadsheet Normally i will be recieving a spreadsheet containing reams of data which have to be sorted and updated. This is what my macros will achieve. But what is the best/most efficient way of loading or applying those macros to a different set of data each month Any help is much appreciated Cheers EDIT: I have since managed to design a form in visual basic and have all my sub ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can Xbox360 controller use on PC for XNA Game?
Can Xbox360 controller use on PC for XNA Game I want to write the code about Input.So I need the xbox360's controller. Can I just plug the xbox360's controller into PC and run the XNA Game Or Should I connect to Xbox360 to run XNA Game for input Yes, you can use the controller on the PC (the corded version). Theres an special version of the controller which is boundled with a driver for Windows. This driver are also available to download from Microsoft. Take a look at this sites: http://maximumpc.com/2006/02/xbox_360_contro.html http://mattbrett.com/archives/2005/11/configuring-your-xbox-360-controller-for-windows/ ...Show All
Visual Studio 2008 (Pre-release) XLinq: Get XElement Line Number
Hi, Does anyone knows how I could read the line number of a particular XElement read from a XML file Regards chionhhm I have posted an example to http://blogs.msdn.com/mikechampion/archive/2006/09/10/748408.aspx ...Show All
Visual Studio Team System Contains operator for WorkItem HTML fields and substrings
I have an HTML field in my work item (Steps to reproduce). I want to query for items that contain a certain string in the field. I am finding that the query will find whole words only, but no substrings. For an example, the field contains the word 'testing'. If a create a query that looks for a work item that contains the string 'test' in the Steps to reproduce field I will get an empty result (using the Contains operator). I have to have the exact word in order to get a result. It looks like capitalization does not matter and the word has to be at least two characters long. Am I missing something I found the following know issue. http://msdn.microsoft.com/vstudio/teamsystem/tfsknownissues.aspx 8.2 Query for long-text fields that ...Show All
Visual Studio 2008 (Pre-release) Using UIA and XAML in automation test
I use UIAutomation in my test program. All the UI controls in my product are described in a Excel file. The test program reads the Excel file and knows how to find each control, so that in test case logic, no need to add any code for finding UI controls. The code looks like this: ...Show All
Visual Studio Express Editions SplashScreen
How can create a splashscreen in C# -Raitz- wrote: Im having some trouble with my splashscreen to. I made my splashscreen from. then I used the codes you gave. I think Im doing something wrong. Heres my code namespace WindowsApplication1 { public partial class Form1 : Form { Splash splashscreen = new Splash (); public Form1() { InitializeComponent(); splashscreen.Show(); Application .DoEvents(); } private void Form1_Load( object sender, EventArgs e) { Thread .Sleep(2000); splashscreen.Close(); } I have the using System.Threading; in the beginning This code is correct. ...Show All
Visual Studio Issue adding a Project Reference to a Project
I have an application that creates a new solution, Creates several Projects(A, B, C) then tries to reference project A in project C. I am running into an issue adding this reference. When I call the sub I am getting the following error: "Could not load file or assembly 'EnvDTE, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." I am not sure why the call is to EnvDTe v 7.0.3300.0 (VS 2003) when the only references in the application are to EnvDTE v8.0.0.0 (vs 2005). What can I do to resolve this issue Attached is the sub and the call to that sub: Call: AddProjectReferenceToProject(EntitiesProject, AssemblerProject ) 'All object pa ...Show All
Visual Studio Moving VSS Query
Hi all, I'm runnnig VSS 6.0 for source control but not quite family with all the available functions. Basically, two VSS databases have been setup on in two different servers. It has been a while I check in files into the first one, whilst the other one is totally new. I was wondering if I can point to the new VSS database from the same working folder to check in files into it Not sure if I would mess everything up. Please advise. Thanks TM You can, but the two servers won't know about each other. For example, a file that's checked out on Server1 will simply appear as a writable file to Server2. If you rename files then things will get even more confused. I'd recommend not doing this unless ...Show All
SQL Server Missing "Foreach File Enumerator and Foreach Item Enumerator"
Ever since installing SQL Server 2005 SP1, when using the Foreach Loop container in SSIS the Foreach File Enumerator and Foreach Item Enumerator are missing from the Enumerator drop down box. Anyone else seen this issue and know how to fix it thanks Eric My problem is the same, but the cause is not clear. When I run the C# code, I get the following two keys as rogues: {5ED60779-4DE2-4E07-B862-974CA4FF2E9C}: {bad19576-066d-4093-bbde-9c84e43587da}, which dont appear to be related either to lexmark or to macromedia flash. Funny thing is that these two same keys figure up when I run the code using my normal admin login too. I gave myself, the network service account and the "Users" group ...Show All
Software Development for Windows Vista Test Case 1 - embedded manifests and MSIs
I am able to embed a manifest into my executable with mt & a custom action, but it does not work when I put it in an installer. I can verify that the manifest is being embedded into the executable that I am building but when I create an msi, using a standard setup project, and install it, the executable no longer has the manifest. Do I need to run mt on the .msi Is the execuable being placed in the .msi before the post build events Or is there just something wrong with my setup project I'm actually having the same issue with my digital signature. My compiled executables have embedded manifests and are signed in post-build events, but when I build and install my setup project, they have neither signa ...Show All
.NET Development Copying tables from a dataset to a SQL Table
I have a dataset with 5 tables and there is a database in my SQL server 2005 with the same set of tables with no rows in them. I am trying to import the rows in my dataset to those in the database. This is the piece of code I have written: int tableCount = ds.Tables.Count; for ( int i = 0; i < tableCount; i++) { DataSet destSet = new DataSet(); SqlDataAdapter destAdapter = new SqlDataAdapter("select * from " + ds.Tables[ i ].TableName, destinationString); destAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey; destAdapter.Fill(destSet, ds.Tables[ i ].TableName); foreach (DataRow dr in ds.Tables[ i ].Rows) { destSet.Tables[ds.Tables[ i ].TableName].ImportRow ...Show All
