AngryHank's Q&A profile
Visual Basic VB 8 or VB.NET 2.0
Just a quick question about what people are calling the new version of Visual Basic. Around the office we call it VB 8 and regard VB.NET as the worlds worst marketing decision. So how come Visual Basic was the only microsoft product that didn't ditch the .NET tag Was it just to confuse us when searching google for code When the .NET framework first came out every microsoft product got tagged with .NET. There was Windows.NET, Office.NET, Exchange.NET, Visual Basic.NET, and so on. Just curious if Visual Basic will ever drop .NET from its name along with the rest of these products. So any thoughts &nbs ...Show All
Visual C# Do application settings work across cultures?
I’m using the Application Settings (via the project properties for a C# assembly) in order to store default values for the application, but I’m finding that the auto-generated code doesn’t work across different regional settings. For example, if I use it store a float value called “Increment” with a value of 0.5 when set to an English culture, then the following code is generated: [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("0.5")] public float Increment { get { return (( ...Show All
Visual C# Pass by Whatever
Hi! I am confused by the insistence of both Java and C# that passing a reference type is not pass-by-reference but pass-by-value. I take it that since you get a copy of the reference, they consider it pass-by-value Then, what is passed in pass-by-reference A handle (pointer to a pointer) And, if so, isn't it a copy of the handle that's being passed As you can see, I am missing something. Please, lay it out simply for me. (Pass-by-value--I get.) Thx! AFAIK, a reference type is passed, but if you change the value within the method, then a copy is made. If you use the ref keyword, then the reference continues to refer to the same ...Show All
Smart Device Development How do I create a new application for Win Mobile 2005?
I just installed .NET 2005 beta 2, downloaded and installed Mobile 2005 SDK, trying to create a new project specifically for Windows Mobile 2005, but in .NET "New Project" wizard dialog in "Smart Device" group I can see only "Pocket PC 2003", "Smart Phone 2003" and "Windows CE 5.0". How do I create a new project for Windows Mobile 2005 Please help. Gennady Where did you download the Windows Mobile 2005 SDK Did you have VS 2005 open when you install the SDK Try to open a Visual Studio 2005 Command Prompt and type devenv /ResetSettings Let me know if it doesn't work. Thanks, David ...Show All
Visual C++ Code to compile???
Hi, I need my program in C to compile a .c file. I remember that there is a call of system to do that. Something like system("compile the file",file.c,file.exe) I dont remember how to do that. please can u help me :D thanks You can just execute the compiler from straight ahead assuming that you have the compiler binaries in the path. system("cl.exe a.c") should compile a.c. cl.exe is the compiler driver. You can test that by going to the VS command prompt and executing cl.exe yourself. Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server Migrating from Acess 2003 to Sql server - Function Val()
Hi folks I do a lot of work with address data. I have been using Acess 2003 as my database but now need to upgrade to SQL Server. My queries have been making extensive use of the Val function to order my queries on address columns. A typical address column might be: 12 The Avenue ....... by using Order By Val(AddressCol) I can sort these rows in ascending house number. I can't find anything in SQL Server that will acomplish this. Does anybody have any ideas. Thanks Paul why do you need to reference the val() function is there something in your column that you want to exclude Doe ...Show All
SQL Server Hiding the Find option in REPORT Manager - Viewing report
Hi, I want to suppress the "Find" option in Report Manager when I am viewing the report. Is it possible How can we do this Thanks in advance. You can do this by creating a custom CSS for the viewer toolbar, modifying the RSReportServer.config file to use this CSS, and setting the find section of the toolbar to display:none in the CSS file. I am planning on writing a blog entry for more details about this. ...Show All
Visual Studio 2008 (Pre-release) How do I animate a property of an ImageBrush ?
Hi, How can I animate the Opacity property of an ImageBrush in a StackPanel background For example, if the background is a SolidColorBrush, then when the event triggers, this works: <StackPanel.Background> <SolidColorBrush>Red</SolidColorBrush> </StackPanel.Background> <StackPanel.Triggers> <EventTrigger RoutedEvent="StackPanel.MouseEnter"> <EventTrigger.Actions> <BeginStoryboard> <Storyboard> <ColorAnimation Duration="0:0:1" Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)" From="Red" To=&q ...Show All
Visual C++ How to assign std::string object to CString object?
Hi, In my MFC program, I like to assign the content of std::string object (stdstring) to CString object(mystring), but it is not letting me do it. Do you have any idea for the assignment or conversion Thanks, vcboy std::string has a method called c_str() that returns the underlying char *, so you can do this: CString s(myString.c_str()) CString has GetBuffer to do the same, but with CString, you need to call ReleaseBuffer, std::string does not require this. ...Show All
Visual Studio Tools for Office Excel Interop from VS2005
We have three machines with visual studio 2005 -- two Professional and one Team Edition for Developers. Office XP is installed on each of these machines and the Office XP PIAs are installed on these machines. We installed the PIAs by running the included "register.bat" file from a command prompt where either the framework 1.1 or 2.0 version of "gacutil" is in the path. On the Team Edition machine, to use Excel interop we have the line: using Excel; In visual studio 2003 we had to use this syntax: using Microsoft.Office.Interop.Excel; On both of our machines with visual studio 2005 professional, the sy ...Show All
Visual Studio Express Editions Buttons and Data Sheets
This project that I am trying to create was fairly easy for me to do in excel, however not knowing vb well I am having a hell of a time doing it in vb but this is a very fun and learning opportunity. Now on to the next portion of my project. I want to create 2 buttons: One button that will create a column that will combine with column3-5 and be added to the equation of Column 6 The other will create a column that will be added to other columns of its type and then create a Column of its averages. example: Cell 1 Job name Cell 2 Cat name Cell 3 A numeric value created by button 1 Cell 4 A numeric value created by button 1 Cell 5 A numeric va ...Show All
SQL Server Setting the value of a Report Parameter Programmatically
Is there any way to set the value of a parameter from custom code I am working with a simple string parameter called @City (the name of a city, used in the WHERE clause of a query). I have tried a number of approaches that all wind up doing something like this, Report.Parameters!City.Value = "Fairhope" Visual Studio Report Writer returns this error when the report is previewed, "Property 'Value' is 'ReadOnly'." The City parameter is not marked "internal". I have tried it both normal and hidden; the result is the same. How can I set the value of a report parameter in code You should set the ...Show All
Windows Forms V-Scroll Bars in Panel or Group Box
Hi to ever budy. Could any one tell me how to implement v-scroll bars in panel or groupbox at run time Is it a possibility to do this if yes tell me some ways to implement this. Thanks a lot. SARZ ...Show All
Visual Studio Team System Can't reconnect to TFS using FQDN
I originally posted this in the General group, but this may be better here: I connected to our TFS Server with just the host name, and that worked fine (tfsdev01). Now though I've removed the connection and am trying to add the full name: tfsdev01.some.internal.domain.com. I can browse to the fully qualified site from IE ( http://tfsdev01.some.internal.domain.com:8080/Services/v1.0/ServerStatus.asmx ). When I try to add the server in the IDE though, I get the following error: TF31002: Unable to connect to this Tream Foundation Server... --------- From a different machine that I never connected to it before, I can ...Show All
Visual Basic How do I remove a string from the string collection without throwing an exception
'Load the collection with the filenames fro mthe server MyFileList.AddRange(MyFTP.GetFileList( "*.pgp" )) 'The code always returns a blank string, remove it For Each MyFile As String In MyFileList If MyFile.Trim = "" Then MyFileList.Remove(MyFile) Continue For End If Next In this case the collection has 4 items. the last one is an empty string. But the remove method causes an InvalidOperationException = "{"Collection was modified; enumeration operation may not execute."}" So how do I remove the string. Or do I just except the fact that it will throw an excpeti ...Show All
