DanAg's Q&A profile
Visual Basic HTML Editor in Visual Basic - HELP
Hello everyone and anyone who is reading this. I would like to know how to build an HTML editor in Visual Basic. I really dont know where to start. If anyone could tell me how, or tell me what I need to know, any help would be very appreciated and will not go unrewarded. Thank you. wf.service@sbcglobal.net Original Poster" "I would like to know how to build an HTML editor in Visual Basic" Levyuk :"There is a way to edit a html page directly without having to program anything. " In my eyes these are two different things. It's sort of interesting but "guy" rather obscures that you're talking to a woman, and I appreciate the distinctiv ...Show All
Visual Basic VisualStudio 2005 BUG
Am developing a forms app using vs2005. All going fine till decided to publish via ClickOnce…. Having published to ClickOnce, now every time I try to debug (F5) the app after doing a code change or opening up the Publishing Project Properties, get “The operation could not be completed. The process cannot access the file because it is being used by another process” Try again – then get “Visual Studio could not copy a support file to this location: Q:\Development\Visual Studio 2005\Projects\projectname\projectname\bin\Debug\projectname.vshost.exe. Please verify the path exists and is writeable”. (projectname changed to protec ...Show All
SQL Server SQL Server 2005 Management Studio can't be found
Sorry if someone already covered this, but I can't find anything about it. I just installed (3 hours ago actually) SQL2005 Standard Edition (from the Launch event) on my machine, and i don't seem to have a shortcut to the SQL Server 2005 Management Studio anywhere. I looked for a likely executable, but couldn't find it anywhere. This wouldn't bother me as much if I could use Enterprise Manager from 2K, but SQL2005 will not allow it to register. How do I get this going There are people here that want to inspect it's features, etc. I haven't got anything to show them. By ...Show All
.NET Development BackgroundWorker a 'One trick pony'?
If one uses the ComponentModel.BackgroundWorker and drops it as a component, it gets wired in and one can use it to do non GUI work on your form. All is fine... But what happens if the action it performs is a common occurance and one needs to reuse the object after it has performed its operation There is no reset method that I have found. As far as I can tell, it would be better to programmatically create the worker instead of dropping it as a component. (Unless you are dropping it onto a dynamically generated dialog). That way you can place the common initialization code into a method to be reused. Are my assumptions correct Please prove me ...Show All
Visual Basic 101 Samples Windows Forms (VB2005 Express): AttachDBFilename hardcoded!
In the WinForms samples related to data, (CreatingMasterDetails, UsingBindingNavigator,...), if you install the AdventuresWorks in a directory diferent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data , (what will happen if you system root is in D:, if you have one non english system, or if you copy the database to another folder), then you will receive the error: " You do not have the Adventure Works database installed ". Then you will try to fixed the right path in the app.config, or maybe reinstall the database, or attached it, ... The problem is not in the database, neither in the app.config. The fact is that the A ...Show All
Visual Studio Team System Test projects and private/protected members...
I watched a Channel 9 video showing some Team System stuff and they included showing off unit testing. When the speaker was asked about private and protected members, he said they had something for him, but he never actually said what it was. How is this possible I don't want to have to make methods public and wrap a property around every field just for testing. This blog could help: The inner works of private method testing in VS Team System ...Show All
Windows Forms When to get data from the database
When should I get the data for both ComboBox drop-downs and the actual data to be edited. Right now I'm doing it in the Form constructor. The WFT suggested the Form Load event...but the bindings happen after the Load event so the controls were not updated properly. Kyle! The most likely thing I can think of that would cause the binding not ...Show All
Visual Studio Team System Cannot Create Team Project
I have just installed team server and all its pre-reqs, single server install. I have installed this on a Virtual Machine. After all this, I installed VS 2005 on the machine and tried to create a Team project. The error I am getting is "Unable to connect to server" When I try to connect to http://servername:8080/default.aspx i get the following error: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this spec ...Show All
Visual C# Checking if a specific handler exists
I was wondering if there was a simple way that I can check to see if a specific handler exists for a control. I know I can simply create and set a boolean variable to true once I create the handler, but I was hoping that there was a simple way, without the use of additional variables, to check whether or not the handler has been created: My control is a TreeView, and is called tvRobot. I create the BeforeSelect handler, tvRobot_AlwaysBeforeSelect, within another event. The problem is, is that I have two handlers for the BeforeSelect event, both of which get created and destroyed throughout the program, so I can't simple check t ...Show All
Smart Device Development Context Menu
Hello guys, I'd like to add some entries to the Windows CE context menu programatically. This means that the 1st time i run my application it should add the entries to the context menu, abd then i'll be able to start my application by holding the pen on the screen and selecting the right entry. Anyone has an idea Thanks Hi Pierre, You can use the SHMENUBARINFO to create the context menu and load the menu bar. ...Show All
Windows Forms replacing a column of the dataset
Hi, I want to replace a column of a dataset with certain string depending on the numerical value returned in the dataset. When I try to replace that column cells with appropriate strings, it says that I cannot store string in the column that is supposed to store Int16 type. My datagrid should be printing that string and not the number, is there any&nbs ...Show All
Visual Studio Is it possible to get the CodeElement of a projectItem, when the item is not the active document?
Hello, I have some problem with the following code: EnvDTE. Document doc = item.Document; // EnvDTE.CodeElements els = doc.ProjectItem.FileCodeModel.CodeElements; EnvDTE. CodeElements els = item.FileCodeModel.CodeElements; either way my FileCodeModel is null, since my Document is not the active document. Now my question is, if anybody knows, if it would be possible to get the code element even it is not set to active document. Best Regards, Hasan Hi, You first need to guess if the projectitem has an open window via ProjectItem.IsOpen(view), and if not, open a window with ProjectItem.Open(view), which ...Show All
Visual Studio How do I add an entry to the Menu in the Solution Explorer??
How do I add an entry to the "Integration Srevices Project" Menu in the Solution Explorer When working with Sql Server 2005, I opened a new "Integration Services" project of type "Business Intelligence" project. When I right click on the project name in the Solution Explorer, I get a menu with (Build, ReBuild, Clean... ). How can I add a new entry to this menu I created a wizard as described in http://msdn2.microsoft.com/en-us/library/7k3w6w59(VS.80).aspx but I can't find where to locate the vsz file. Note: In the document above, it's mentioned that in order to run the wizard, I need to go th ...Show All
Windows Forms Adding Child Forms to User Settings
I'm trying to persist the child forms of an MDI app to the user settings and it doesn't appear to be possible, at least as far as I've found. Is there a way to do this in the desinger, or will it require a custom setting implementation Brad It works for me (in Beta2), and works the same way regardless of whether the form is an mdiChild or not. In the Properties window for your control, e.g., a textbox, expand the (Application Settings) property. Click the ellipsis (...) button in the (PropertyBinding) field. This raises the Application Settings for 'textBox1 ' dialog. Scroll down to the pro ...Show All
Visual Studio Make a tool window always display on startup.
How do I force a tool window to display even when in the previous session I had closed the ool window. There must be some point in some interface where I can set the tool window to visible and it will display. However, I would like it to stay closed after it's been closed in the session and then not re-appear unless explicity enabled or visual studio 2005 is restarted. Same way the start page works. Thanks, Darren By default, all tool windows will appear on restart if the window was visible when Visual Studio was closed. The Start Page makes its self the topmost window when it is shown, and you ...Show All
