Giugio's Q&A profile
Windows Forms Custom Cursor, showing up only in...black
I tried: this .Cursor = new Cursor ( Application .StartupPath + \\Images\\UI\\Cursor.cur ); to get a cursor, this is one from windows by the way, I used one that I wasn't using, so that I could tell the difference, but apparently... on form load, the cursor is black, not the blueish color it should be, it does this with every cursor I try too! Is there a form property interfering.. Languages: C# & VB .NET 2005 I think i do not address it clearly. I mean if using following code this .Cursor = new Cursor ( Application .StartupPath + \\Images\\UI\\Cursor.cur ); The cursor will be paint with blank&write(black & white picture, not just black), if there are other color ...Show All
Visual Studio Team System Automated Testing in VSTS
Any suggestions on a test language to use for regression testing I understand VS2005 has automated unit testing, but I am looking for the best tools to create automated box level tests. I run a white box test team. The application we will be testing is being developed on VSTS. It's a large enterprise application with over 3000 fields. The new app will be based off of an app we've been working on for 5 years and was written in VS6. We're all new to VSTS and my task is to determine the best way to create and run auto tests on our new application. I've considered Rational Robot, and Win Runner. I thought I'd see if someone has investigated other tools for this need. Some auto tests that I hope to have ...Show All
Visual C# Enumerator on a linked list
Hello everyone! I'm trying to get an Enumerator to work on a linked list but I'm not sure how to do it. MSDN documentation says that at first the enumerator should be positioned before the first element/node in the collection. Any tips on how to do that in a linked list I thought about setting it to null but then when the MoveNext() method is called I can't do current = current.Next since current is set to null. Should I save the firstNode, then in the MoveNext check if current is null and then do current = firstNode. Seems a little bit messy. Any tips Thanks in advance! -Marlun Hello and thanks again! =) I see why your version is better, I've not worked with this before so thanks! How can an Iterator o ...Show All
Smart Device Development UPnP Programming
Hi all! I'm working on programming a UPnP software and I'm facing a problem about invoking UPnP devices actions. I use the UPnP API that the Microsoft Platform SDK provides. It's the use of the IUPnPService::InvokeAction which fails. Here is the definition of the fonction : H InvokeAction(BSTR bstrActionName, VARIANT varInActionArgs, VARIANT* pvarOutActionArgs, VARIANT* pvarRetVal); where : * bstrActionName : Specifies the method to invoke * varInActionArgs : Specifies an array of input arguments to the method * pvarOutActionArgs : contains a reference to an empty array * pvarRetVal : contains a reference to an empty array You can search more information about this if I've not explained very well the definition. After execution, the functi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX 8, Direct3D, Combining the Common Files with MFC CView?
Compiler: Visual Studio.NET 2002 Hi Everyone, I am learning DirectX 8. (I want to use DirectX 8 as this comes as standard in Windows XP install. If I write a program I know my ludite-XP-using-friends will be able to use it without having to download a new version of DirectX.) I am writing a program that uses DirectX 8 and am trying to combine the Common Files into a MFC application that is based on the CView class rather than the CFormView used in the MFCFog example. The program I will write will be single document (as opposed to multi-document). In the Fog example a derived class is created, of the type: class CMyMFCAppForm : public CFormView, public CD3DApplication { }; I am trying to set up a class of the form: ...Show All
Visual Studio Express Editions progress bar....please help
can anyone please help with this progress bar Dim i As Integer Dim TrackLength As Integer = 100 Dim TrackPosition As Integer = 0 Dim TrackPositionPercentage As Integer = 1 Bar1.Value = 1 If TrackLength > 0 Then TrackPositionPercentage = CInt (TrackPosition / TrackLength * 100) For i = 1 To 100 Bar1.Step = 1 Next (i) End If Cheyenne, For illustration: For i = 1 To 100 Bar1.Value += 1 Next (i) It's going to appear to go from 0 to 100 instantly ...Show All
Smart Device Development Cannot access SSL on windows mobile 2003 PPC
Hi! I am trying to access a ssl based application from handheld. I have imported the certificate as well on the device. It gives me a protocol error on my live server where as the same works on my test development environment. Live env web sites are configures on different ports. Are there any specific way I call the application like "servername.domainname" etc Its able to access the SQL server ce agent from the IE on device. Anybody had any idea or faced this in the past Any help would be truly appreciated. I can provide more details if required. Thanks, Shilpa What's the protocol error you're receiving If port number is different than you may need to use the same port while connecting from your smart device ap ...Show All
Visual Basic Printing in VB.NET
Does anyone know how to print i vb I have information some textbox on a form which i want to send to the printer. Stop, step back a bit, take a deep breath. The problem is that you are using a piece of code without any understanding of any part of it. Hacking on it is not going to get you anywhere, very slowly. Start again: you want to print the text in the text box Add a Button, a TextBox and a PrintDocument object to a form. Add the following code to the form: Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Me .PrintDocument1.Print() End Sub Private ...Show All
SQL Server Test linked server connection SQL 2000
I’m trying to resolve an issue and wonder if anybody has ever run into and possibly had a resolution for. I wrote a custom conflict resolvers to manage data at the column level. What I needed to do to achieve this was to use a remote query to the mobile subscriber that raised the conflict. I’m trying to put in a rule that if there are any issues connecting to the subscriber I want to use the default conflict resolver and move forward. Here is my issue, it seems there is no way I can test a connection without getting a critical error that I can’t seem to trap. Example I was trying to do Select * from [linkedserver].[database].[dbo].[incident] If @@error <> 0 use default conflict resolver ...Show All
Windows Forms Using Animated Gif image in C++/CLI
Hi, I'm trying to use an animated gif image in a form within C++/CLI. I looked at picturebox control but the image stay still, no animation. I browsed the NET to find any clue to my problem and got a few articles stating the fact that I have to make somekind of class that would rather display one at a time each frame found in my GIF. Any clue or easier way, any example on how to do it Thanks in advance, Stephane Hi again, Just a little note. On another thread, someone made me realize that I was using the wrong property to specify image filename. Instead of using "BackGroundImage" property, I realized I should rather use "Image" property and then ajust size to pictureb ...Show All
Visual Studio 2008 (Pre-release) Many-to-many relations query
I have two tables (Customers, Departments) and an association table (Customers_Departments). I would like to create an asp.net gridview related to a Customer and with an entry foreach department with a checbox which indicates if the Customer belongs to the Department. Which is the best and more efficient query to fill the gridview Any help appreciated, thanks Good article, thanks for suggestion. I was thinking to something like this: int customerGuid = Int.Parse(this.Server.Request.Params["Guid"]); var x = from d in db.Departments left join cd in db.CustomersDepartments on d.Guid equals cd.DepartmentGuid where cd.CustomerGuid equals customerGuid select new ...Show All
.NET Development How to create a file watcher window service to look in a folder for new file??
Goal of the filewatcher window service: to look in a folder named ‘Watcher’ for a particular type of file. Whenever a new file arrives in the watcher folder, service should pick up the file, read contents, then delete the file from the folder and move it in another folder named ‘Processed’. I am using filewatcher’s oncreated event for this. Whenever a file arrives, the oncreated event is fired. The problem I am facing is that the service is not able to read the file. The exception received is: The process cannot access the file '\\WATCHER\abc_1959537.xml' because it is being used by another process. I tried to manually paste the files in ‘Watcher’ folder as well as in automated manner by a console application the result is same. ...Show All
Visual Studio Visual Studio.NET 2005 c#: class library how to use it in a project?
Hi, I've made a class library called: counter. Now I want to use counter.dll in my project yahtzee. How can I say to my form.cs that he must use that dll (soon more than 1). And how can I call the functions that are in my counter.dll thx You need to add a reference to that class library to your project. You might want to consider posting questions like this to the Visual C# General forum. Sincerely, ...Show All
Smart Device Development how to create file
hi how to create a file at sd or mmc card The develop platform is c# .net cf 2.0. the sample code is better. thank you I was going to post that... :-) Ilya - is there some class (like driveinfo) for the .NET CF that we can use to determine if there is a storage card available ...Show All
.NET Development How to consume webservices if you dont know where they are.
Hello, this is my situation. I have a page, where I need to load a list of products in a dropdownlist. That list of products may come from differente webservices, for now, lets suppose that all the webservices have a method called SelectProducts() and that it returns a dataset. The problem is that I may have many providers of the webservice so I got a table with this information user, pass, domain, endpoint, typeofauthentication. I dont have too much experience with webservices, I have created and consumed webservices but I have to add the reference in VisualStudio 2005. The idea I have is that I must create the webservice locally and then change the webservice.uri property and thats it but I dont know if its so simpl ...Show All
