WHats wrong's Q&A profile
Visual Studio disappearing controls ( VS 2005 SP1 with Vista Hotfix )
Hi there, I am using VS 2005 SP1 with the Vista Beta hotfix. I am running Vista Business RTM version. I have created a form with a tabcontrol on it. I have added multiple pages and some controls on each page. I have saved the project, exited and then reloaded, some of the controls have disappeared. For instance 2 lables and textboxes disappeared. I can find them in the controls list but they do not show up visually on the form. No matter what I do they do not display, unless I delete them and then recreate them. This has happened with other controls as well (toolstripbutton). Any help would be appreciated. Thanks, Garth. Gabriel, Not sure what you mean, I am very new to VS 2005 and programming in general. ...Show All
Visual C++ Doing File I/O
Are there any drawbacks to using regular libc functions like fopen, etc under Visual Studio for deploying a console Windows application I am having great difficult finding even basic information on MFC functions, but the standard C functions like printf and fprintf, etc. seem to work fine. Also, is there a disassembler built into Visual Studio I want to look at the resulting code generated by Visual Studio and make sure that it does not phone home to Microsoft. If necessary, please let me know where to put the 0x90's to prevent this from happening. Thank you. The functions like fopen eventually call underlying Win32 functions - in this case OpenFile - so there is a slight "overhead" in using f ...Show All
Windows Forms cancel navigator add new on double add -using no null allowed exception
hi how can i cancel when the add button is pressed twice, i get no null allowed Public Class Navigator Inherits BindingNavigator Private Sub BindingNavigatorAddNewItem_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click If BindingSource IsNot Nothing Then Try BindingSource.AddNew() Catch r As NoNullAllowedException MsgBox( "Please finish edit the current new row first." ) End Try End If End Sub Set the bindingnavigators AddNewItem to none so your code runs instead of the built in code. ...Show All
SQL Server sql 2005 install error. MODIFY FILE failed. Specified size is less than current size.
I installed sql 2005 a while back. Then I recently found out my file system was fat32 (I don't understand why the hardware people did this...) and I had to convert to NTFS. Naturally the sql service no longer worked so I uninstalled inorder to reinstall now I can't reinstall it I keep getting this message native_error=5039, msg=[Microsoft][SQL Native Client][SQL Server]MODIFY FILE failed. Specified size is less than current size. I'll try to post the full log in a new post. I think the problem is coverd on the following knowledge base article: http://support.microsoft.com/kb/932593 ...Show All
Visual Studio Tools for Office Issue with the menu "Microsoft Office Word Tools" in Visual Studio 2005
Hi When I open my word template in VS 05 and click on the menu "Microsoft Office Word Tools", I have no submenu. I can't add then a XML Schema to the template. I tried the fix of word, I removed the vsto for c#, reinstalled it But the menu is still empty. If anybody would have an idea it woudl save me lots of time Thanks You're quite welcome - I'm relieved to learn it worked :-) You need to be aware that Normal.dot is where the user stores customizations (toolbars, macros, styles, keyboard shortcuts, formatted AutoCorrect entries, AutoText...) As a developer, this may not be a problem for you. But in case you want to keep any of this stuff, a lot of it can be recovered using Tools/Template and Add-ins/Orga ...Show All
.NET Development Parsing HTML
Is there any functionality to parse HTML tags in .NET. There is extensive support for XML, but I haven't found much for HTML. They are similar, but sometimes, HTML is not as strict, as in, not having an end tag, etc. What I'm looking for is similar functionality to the java class: import javax.swing.text.html.parser.*; Can anyone shed some light on this Thanks. .NET Framework itself does not provide a HTML parser class. However, you may use SgmlReader or .NET Html Agility Pack as I already answered in this thread . ...Show All
Visual Studio Team System get list of files changed after a specific label
How can you get a list of all the files under a team project that have changed since a particular label was cut on that team project Labels are good to use when you want to tag the set of versions of files used to produce a particular build, for example. If you don't know whether you'll need to service the build (i.e., produce updates and bug fixes), then a label provides the ability to branch it later (by specifying the label as the version to branch) if you need to, without losing track of what was in that build. If you know you are going to be servicing a release, such as a v1.1, supported beta, etc., then you may as well start with a branch. Which book did you read Buck ...Show All
Visual Studio Express Editions Automatic end brackets
I am using Visual C# Express. Is it possible to have it automatically put an end bracket in when I enter a beginning bracket for instance, when I enter: for(int t = 0; t < something; t++) { Then when I press enter, it automatically puts the end bracket in, and puts my cursor between them. I have looked through all of the options, and haven't found a feature like this. It would be very helpful. SharpDevelop does this automatically, and other than that one thing, I like Visual C# Express much better. If anyone has any ideas, I would appreciate it. Have a look at this post. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=753176&SiteID=1 Scott ...Show All
Visual Basic Help removing menu item.
I have code that scans a config file and when it finds a certin line it adds a new drop down menu item to File --> Configure --> "New Item Added" For example in the config I have a line that equals: Test = "Sample1" When the program loads and find the line with Test = "Sample1" it will add that item to the drop down menu under File --> Configure --> Sample1 this works perfectly. Now I also have an option to delete this item out of the config file and I am trying to get it to remove from the drop down menu. When you click the delete option you get a dialog box with a drop down that lists the items you can delete from the drop down menu that were loaded from the config file. When you select the item ...Show All
SQL Server Masking Password text in SQL Reporting Services
I have designed a form and created two parameter fields to accept username and password from the user. Based on the values entered above, I am validating inside a stored procedure. I am unable to mask the text the user enters in the password field. I could not locate any mask property. Anybody can help me I strongly suggest you find a different way to get the user's credentials -- parameter values get passed around in clear text and are logged in the execution log, so you are endangering the credentials by harvesting them with report parameters. Also, there is no way to mask to entries in a parameter field. ...Show All
Internet Explorer Development Happens with Apache 2 / Perl as well
Pages using PHP sessions and external javascript in the head portion of the html document and which served from IIS 6 to IE 7 are not refreshing properly (displays blank on refresh). I have a full description of it here including the minimal source to create the error. Description, source and work arounds that may shed light on the problem: http://durge.roswellpark.org/ie7Bugs/ I think it has to do with the fact that IIS does not report content-length header on pages served as PHP. If I manually create my own content-length header it works. This problem did not happen in IE 6 and will affect all php sites served from IIS 6 to IE 7 that use sessions. Here is an example < php session_start(); ><html> <head> <script type ...Show All
Smart Device Development Can't create an extension menu
Hi, (didn't get luck in " Smart Devices General " forum, maybe in here.. ) I created an extension menu (in the outlook), but It doesn’t appears in the menu.. I did the following: registered in : KEY_CLASSES_ROOT\CLSID\{GUID} and in HKEY_CLASSES_ROOT\CLSID\{GUID}\InProcServer32 and also under: LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContectMenus\Inbox\Read_View\ I have also signed my code, but as I said, I cant see the menu item. target devices are Cingular2125 and Samsung Blackjack any help will be appreciate.. Oren Since the mail application is runn ...Show All
SQL Server How do I capture @@ROWCOUNT from a stored procedure?
Greetings, I have a stored procedure that does updates. The sproc is called from an “Exec SQL Task”. The sproc returns the number of rows that were updated using this technique: RETURN @@ROWCOUNT How do I capture the sproc’s return value (number of rows) in a package-level variable I eventually want to log this value. The sproc is not returning a result set. I’m new to SSIS so any general guidance would be appreciated. Thanks, BCB Thanks for your reply. I found it was easy to capture the @@ROWCOUNT to a variable once I started returning it as a result set rather than the sproc return value. Thanks for your tip. For some reason I was never able to capture the @@ROW ...Show All
.NET Development How can I detect available SQL server instances in the neighboring network?
I'll include this in my installation program so that it's easier for users. Any idea Thanks Hi Lyle, After you have navigated to the feedback item at the address specified by the link, you need to sign in. If you have not signed in at this site before, you may be required to register. But once you are finally in, there should be a "Vote Now" link in the Rating box. You can specify a rating between 1 and 5 based on the importance of the problem as you see it. Regards, David. ...Show All
Visual C# Drag-and-Drop HTML Link
Hey there, I'm trying to drag and drop an HTML link (an image link). When I drag and drop the link to my code, I got the target of the link. How can I get the source of the image instad of the target of the html link in C# For example, I have the following link in a web page: <a href=" http://msdn.microsoft.com "> <img src=" htt://www.aaaaaa.aaa/bbb.JPG " width="100" height="100" title="MSDN Link."/> </a> When I drag and drop the following link from the IE (I click on the image and drag it to my program), I got as a result http://msdn.microsoft.com .. What shall I do to get the " htt://www.aaaaaa.aaa/bbb.JPG " as a result instead of the target of the link In ot ...Show All
