Paulo Sérgio's Q&A profile
SQL Server Collapsing/Shrinking Rectangles?
Is it possible to have rectangles shrink when the textboxes that they contain are empty No, Rectangles cannot shrink based on their contents. They are always the size defined in the report definition. -Chris ...Show All
.NET Development How do I enable useUnsafeHeaderParsing from code? (.NET 2.0)
Hi, We have several webservers that do not follow the correct RFC specification when performing some specific HTTP web requests, in order to communicate with them we need to enable unsafe header parsing. Changeing the webservers to respond correctly is NOT an option in our case. According to documentation, adding the following lines to the app.config enables the unsafe header parsing. <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing = "true"/> </settings> </system.net> This works nicely for regular applications, however, the problem is that our .NET code is exposed and run as ...Show All
Visual Studio Express Editions Port number being added to uploaded file's filename (extension).
If i upload the file "test.txt" the server receives the file as "test.txt21" 21 is the default port number for this program. Here is the code that builds the URI: Dim connectURI As String = Nothing Dim UserName As String = txt_login.Text Dim Password As String = txt_password.Text 'Build FTP address e.g. ftp://anonymous:anonymous@127.0.0.1:21 connectURI = "ftp://" + UserName + ":" + Password + "@" + serverString + ":" + portString Console.Write(connectURI + Environment.NewLine) 'Connect and create connection object request = CType(WebR ...Show All
Visual J# Why is these text comparisons not working
In my little program I have a richtextbox and a button. When clicking the button this code is run and when I debug I see that my in the richtextbox entered text is indeed in the txt variable. But when I for example enters 'hej' the first if statement is skipped, why txt = hej so txt=="hej" ought to be true! But isn't. private void Button_Click( Object sender, System . EventArgs e) { String txt = new String (); txt = richTextBox.get_Text(); if (txt == "hej" ) Button .set_Text( "OK" ); else if (txt == "q" ) Application .Exit(); else { Button .set_T ...Show All
Visual Studio Express Editions Prefixes for tools
Hi! Does anyone know where I can get a list of the prefixes for all the tools in VB.NET 2005 Express For example: "lbl" label or "txt" text box http://www.visibleprogress.com/vb_coding_standards.htm#control_tags_page http://www.visibleprogress.com/vb_naming_conventions.htm ...Show All
Visual Studio Team System Need a fix to area bug
I am running Visual Studio Team Foundation Server Beta 3 Refresh and have discovered that if a user without sufficient permissions tries to create an Area in the Areas & Iterations dialog that an error is given to the user but the Area is still created. It appears that the Area was not completely created though, it shows up in that dialog list, but is not available to be used by work items and it cannot be deleted by anyone. When I (from a global administrator account) try to delete the area, it gives me this message: "TF50309: You do not have sufficient permissions to perform this operation. Node cannot be deleted.". Is there ...Show All
Visual Basic Try...Catch statement Question
I have a Try...Catch statement that contains 12 Operations inside it. On the catch I want to display a msgbox that tells exactly which operations failed. I was looking through the exception methods and couldn't find one that worked. All of the methods provided relative information but nothing specific. The reason I want to pinpoint exactly which operations failed is so that the user can email the error message to me and when I get it I will know exactly how to fix it. Thanks. Is there a way to show information like a breakpoint shows For example my breakpoint details say: At Form1.vb, line 129 character 13 ('Char1_Read', line 25 ...Show All
.NET Development GridView wont display records if LIKE is used in Query
I have an Access Query named "TestQuery". The Query selects users with "678". Condition is: Phone LIKE "678*". Any time the dataset that is used by GridView1 is assigned to "TestQuery" it doesn't return any records. (Even though in Access it does). If I modify "TestQuery" and make the condition anything that doesn't include a LIKE it works. Am I missing something Vincent Fournier If I change the Criteria on the Access Query to: Phone LIKE '678%' like you recommended it doesn't select any records when I run the Query within Access but it does in the GridView. When the Query is: Phone LIKE '678*'. & ...Show All
Visual Studio Team System ArgumentNullException Value cannot be null. Parameter name: menuService
I now get this message anytime I try to run (debug/release) a unit test. I've given up trying to get my complicated solutions to work again (they worked fine for weeks but now crash). I can easily reproduce this problem with a new solution. After a clean reboot, I create a new C# Solution/project. I add the following public method to the class: public string tryUnitTest() { return "This is a test of the Unit Test." ; } Next, I right click and choose "Creat Unit Tests..." pick: "create a new Visual C# Test project..." OK It builds a unit Test project containing the default test for o ...Show All
Visual C++ Hided classes
Hello. In this moment i'm developing a little framework with DirectX, which is formed by a series of class which have got public and private members. Now if i compile the lib and use it into my project, the compiler is able to see public and private members, while i'd like to hide private members. Is there a way mabye with precompiled headers Other things Thank you i've tryied it and it works very nice. I've understand how to do but my little framework it's organized into a strange mode and for implement the "hiding" of private members i have to rewrite allthing. What to do ...Show All
Visual Studio Team System False positive CA1051:DoNotDeclareVisibleInstanceFields on ComVisible(true) structures
I think DoNotDeclareVisibleInstanceFields should not be raised on ComVisible(true) structures. Alex Hi Alex, why do you want this rule not to fire on ComVisible structures Are you trying to satisfy a contract where there has to be a public field COM interfaces allow properties as well so when your class is exposed to COM you should be able to call through the properties. Regards, Jeffrey ...Show All
Windows Forms When to use User32.dll and how?
Can someone tell me more about User32.dll How does it work and how can I use it I know that I must have this on my program: [DllImport( "User32.dll" )] But all the rest is that what I can't understand. So can you explain some things to me or just give me some link to website which tells more about it. I'd like to know what I can do with this. I've seen (and tried) Jelle van der Beek's example of drawing on screen itself and I'd like to know more about User32.dll. Thanks! User32.dll is the source of many of the most common Windows API's, that allow you to interact with the operating system at a lower level. In general you should not use ...Show All
Windows Forms When's Terrarium going to work?
By that i mean - being able to add your own creatures into the game. Or has Terrarium died out now I only discovered this last week and find it fascinating! Built my first test creature and disappointed that I cant see it being eaten by Naka + Mari. Does the server get reset every now and again Microsoft's Terrarium server hasn't functioned correctly for, hmmm, it's been so long I can't remember. I'm running a public Terrarium server at www.davidandangela.ws/Terrarium . I'd be happy to have another client as there are only a few clients running right now (only one or two at a time, I'd like to ge ...Show All
Windows Forms How to get the current row record from a datagrid after sorting, using C#
How to get the current row record from a datagrid after sorting, using C#. The sample code is in VB.Net and the BindingContext in C# is a property instead of a function. Please help. Check whether you use the same form for datasource when binding the datagrid and retrieving the current row. if you use DataSource & DataMember then you need& ...Show All
Windows Live Developer Forums Welcome!
Hello and welcome to the MSN Spaces Development forum. On Monday, December 12 2005, we announced the first in a series of APIs that will allow developers to build applications that interact with MSN Spaces programmatically. This forum has been created to provide a place where developers can discuss the these APIs with members of the MSN Spaces team as well as other developers in the community. Welcome! -- Dare Obasanjo Program Manager - Communications Services Platform MSN/Windows Live Hi, Is there any web-site where to find some docs I didn't find anything on http://msdn.microsoft.com/msn ...Show All
