bob yoplait's Q&A profile
Visual Studio code and example xml tags
Has anyone noticed or observed that code and example xml tags seem to work properly when decorating a method, but when the tags are at the class level, none of your sample code seems to appear. Is this an issue that is being worked on Just thought I would pass along what I observed. John Here is a small sample. Didn't paste in the best but you'll get the idea. Also, there is no implementation in the class here that I pasted in, but there is in the actual class. Hope this helps. If I were to put this same documentation tags on a method of the class then the code sample will work. /// <summary> /// Represents a name - value collection in an enterprise library c ...Show All
.NET Development Visual Studios pages
I was doing a project and have some pages using VB as the script code and some using C # as script code. Would I be facing any issues in doing so or VS supports this. Any inputs would be appreciated. Thanks Hi there, one way you can achieve this is by creating the VB code inside its own workspace, and compile it into a Class Library DLL. You can then import this into your C# Application and invoke th ecode. That is one of the nice things about the .NET Environment. You are able to do quite a few things that you wouldn't have been able to do easily before. All of the code is converted to MSIL, which is then compiled to machine code by the .NET JIT Thanks, John ...Show All
Windows Forms how to know the size of a form when the user click the maximize button and the form is maximized
Hello everyone, I would like to know which event to use for knowing the size of the form when the maximized button is pushed and the form is maximized. Event resized is not invoked, and i do not find another event. Thanks. the event resize can be fired by using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace CS { public partial class maxsize : Form { public maxsize() { InitializeComponent(); } protected override void OnResize( EventArgs e) { if (WindowState == FormWindowState .Maximized) ...Show All
Visual Studio Express Editions Cant seem to find a more efficient way of doing this...
I have this code, and it is extremely inefficient, and I have searched, a read for hours and cant seem to find a better function for getting song lengths [code] inline ULONG GetSongLength(LPCTSTR szFile) { TCHAR szCommandString[1000]; TCHAR szResult[100]; wsprintf(szCommandString, TEXT("open \"%s\" type mpegvideo alias TempFile"), szFile); if (ERROR_SUCCESS == mciSendString(szCommandString, NULL, 0, NULL) && ERROR_SUCCESS == mciSendString(TEXT("set TempFile time format milliseconds"), NULL, 0, NULL) && ERROR_SUCCESS == mciSendString(TEXT("status TempFile length"), szResult, 100, NULL) && ERROR_SUCCESS == mciSendString(TEXT("close TempFile"), ...Show All
Visual C# Who know the best way to make an UNDO step for graphical application
Hello I developed a class related to graphic application . One of the class of this application is a drawing surface that has a collection of drawing object. Now I would like to extend the capability of this class to be able to undo and redo each step in such maner that I could set an undo level ( number of step that can be undone and redone in a stack style) . I come up with a class that inherit from collection base class, this work fine with a simple undo and redo step especially for adding and deleting the object . But with moving, rotating , sizing it doesn't work properly. The procedure that I did is, record the object (copy) with all properties just before it has been changed and add it /them to the collection class which I nam ...Show All
Visual C++ can I add a component that I have created to the toolbox?
Hi, I'm learning VC++2005, I wanted to create a component that I can drag and drop from the toolbox, when I use a windows form application. As I can drag and drop a button, I wanted to drag and drop an opengl window on the form. It is possible where can I find article about it I have serched a lot on google but didn't lucky... thanks Add a new header file to your project, say MyButton.h. Put this code in it: #pragma once using namespace System; using namespace System::Windows::Forms; public ref class MyButton : Button { public: }; Edit your project's main .cpp file and add this: #include "MyButton.h" Build your program, switch to the form designer and you'll s ...Show All
Windows Forms treeview click event
hy Im very new to c# and now im making a browser. In my browser i have a favorites panel with a treeview. Now i have found the MouseClick event from the treeview but how do i obtain wich node is clicked I now use this code: private void treeView1_MouseClick( object sender, MouseEventArgs e) { try { node = treeView1.GetNodeAt(MousePosition.X, MousePosition.Y).ToString(); } catch { } this .NavigateToUrl(node); } but it seems that var node is empty at all times! Can anyone help me with this Thanks in advance! Oh... I re-read your message. To access which node was selected, you need to look at the selected node for the treeview. This is also a tricky thing with windows programming which can really suck at ...Show All
Software Development for Windows Vista How to get(set) cursor position in my service before logon?
Hello, I noticed that an interactive service cannot run in vista any more. This issue is good to security, but bad news for me using an interactive service. My service is simple and needs only 2 functions - one is getting cursor position and the other is setting cursor position. These 2 functions can be implemented through one other user application after user logon. But before user logon, how can I do this job Thank you in advance. Sweating Egg;; Hello Matthew. I appreciate your kind support. I think that in Session 0, the cursor position check API should be allowed for 3rd parties to use. It's primitive and essential. Egg ...Show All
Visual Basic Date thing problem?
How do I make my progam in vb.net to check the date and time in regular inteval and having to compare those to a surtain string like: Dim datee As String datee = "13.06.2006" . I'd like to use the: Today and TimeOfDay (i dont know how to name them, strings maybe )... Any help about this because I was trying t figure it out but it does not work. I tried using timers and stuff but it didnt work, I also tried searching MSDN for that... I hope you know somethig about this, I want to apply for Coding4Fun and I'll probably need this for april fools day, for a prank to upload to Coding4Fun. The following will work. The reason you cant use timeofday is because it is down to the millisecond and trying to use a = compariso ...Show All
Visual Studio Internet Database connectivity with Visual Source Safe 2005 Explorer
Hi All I've installed Visual Source Safe 2005 successfully on our Web Server and created a database for our applications. I am also able to connect to the web server successfully via Visual SourceSafe (Internet Access) plug in from Visual Studio 2005. My problem is that I am unable to use the Visual Source Safe 2005 Explorer as a standalone interface on the client machines. When I open Visual Source Safe 2005 Explorer it ask me ("Open SourceSafe Database" dialog box) to connect to the repository \\testserver\applcations but it just keeps telling me "The Database \\testserver\applications does not exists, would you like to search for it ". Why can I connect to the repository via Visual Studio and not via Source Saf ...Show All
Visual Studio 2008 (Pre-release) Is the generated config file helpful?
Hey! I have generated a output.config file by using: svcutil *.wsdl *.xsd /language:C# The generated config file looks like this: < xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="DefaultBinding_IChatChangePub" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageS ...Show All
Visual Basic Dataset Designer Wizard ASP.NET- why is this different?
I want to create a Data Access Layer for an ASP.NET application. I have used the VB.NET dataset wizard extensively for Windows project. It is a lot convenient - meaning, it allows to select all the tables / views in one shot and it creates all the Data Tables and Table Adapters - in one shot However, ASP.NET's dataset wizard only allows you to add "One" table at a time. Why so Also, let's say, I create a "Dataset1.xsd" using VB.NET [windows project] and then add that as an item in ASP.NET application, will that be same as creating the same using ASP.NET - Meaning, does the Wizard do anything special while creating a new dataset if I did it through an ASP.NET project Vs VB.Net Windows project Check out these fre ...Show All
Microsoft ISV Community Center Forums Gantt Chart component/library
Hi, I am looking for a component or a library or a framework to draw Gantt Charts much like MS Project. Either a free or a paid solution will do. I need to be able to incorporate it with my .Net application (written in C# 2005). I have searched around and found several solutions which more or less come close to what I am looking for. But I would like to hear from someone who might have researched it in the past and know about some good components or libraries out there. Basically, I would like to simulate MS Project's project management charting solution, but in a simplified version. Thanks in advance for any pointers. Mehdi If you are looking for a Gantt Chart control to edit tasks in a project, ...Show All
Visual Studio ASP.NET crystal report parameter not set properly
Hi, I am working or crystal reports in Visual Studio 2005. I have created a report file .rpt in the windos application. Then I am trying to use the same rpt file in asp.net. It conatis a parameter @mpo, which is required by a stored procedure. I have used the following code to set the parameter. But at runtime it's asking me the parameter again. If I disable the prompting of the parameter from the reportviewer tasks, it gives message saying the parameter is missing. Not sure what is wrong with the code Please help. - Abhijit To set the parameter in page_load I have added following code If (IsPostBack = False ) Then Me .CrystalReportViewer1.ReportSource = "CrystalReport1.rpt" Dim pFiel ...Show All
Visual Studio Express Editions having trouble with lesson video's
I have been 4 days trying to figure this out,, I new to programing so I've been watching the training video's found at: http://msdn.microsoft.com/vstudio/express/vb/learning/ I'm watching lesson 09, and I have followed the lesson just exaclty as it was done in the video. My table will not update with any new or changed information, so I downloaded the project that accompanies the training video's and ran their example with the exact same results. Is there something with my computers that could prevent this, computer 1 is a HP Pavilion a1612n with Windows XP Media Center 2005. The second computer is Home built running Windows XP SP2. Both fully updated. Please someone explain why I found the problem for now... When I ...Show All
