Pedro_Ignacio's Q&A profile
Windows Forms Lock second form as active??
I have an application with two forms. The application launches and the first form opens maximized. You click options from the main menu and the second form opens. I have the second form set to always be on top, but I would like to make it so that you can't click anything in the first form until you close the second. Can some please tell& ...Show All
Visual Basic Problem with Socket?
It is possible to create a client/server system with sockets without having that to define an IP to connect itself to the server I have a system in vb6 but I am not obtaining to translate into net 2005 Thanks http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnadvnet/html/vbnet08282001.asp The link is to a 'chat client' application using sockets - a good place to start. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Having a cpu usage issue...
My app is direct3d9 using a small oop framework i made. When the application is running (windowed) my computer has ~15% cpu usage. When i focus another window on top of that one or i minimize the window, cpu usage goes all the way up to 100%... very annoying i really dont know wat the prob is. I think it has smthing to do with the main loop: while (msg.message!=WM_QUIT) { if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } else { Render(); } } I have also tried this: while (g_bRunning) { while (PeekMessage(&msg,NULL,0,0,PM_ ...Show All
Windows Forms Need a fuction to avoid strange characters in e-mail
I'm writing an application where POP mail is one functionality. Not a big problem, but the mail including headers comes as quoted_printable, which means extended ASII characters are displayed like =E9 etc. Does anybody know of a method to parse e-mail messages and convert these codes to the correct characters To moderator: I am an Asp.Net moderator ...Show All
Visual Studio Team System Changing the site for multiple web tests.
I know I can change the context for multiple tests when running from console mode by typing 'set Test.Webserver1=http://bla'. Is there a way to do change the context while running the tests inside of visual studio other than one test at a time Thanks, TomK Tom, I assume you mean running webtests by themselves, not within a load test. The easiest way is still to set an environment variable. After setting the environment variable, you will likely need to restart VS before running the tests. If you are talking about running web tests inside a loadtest, you can add a context parameter to the load test with the same name as t ...Show All
SQL Server Inconsistent package failures
I'm debugging my first SSIS package and is getting inconsistent results. The package does not always complete successfully. When the package does fail, it fails at different tasks that accquire database connections. Any of the following error message would show up: [Execute SQL Task] Error: Failed to acquire connection "FORGE.FMC". Connection may not be configured correctly or you may not have the right permissions on this connection. [OLE DB Destination [6374]] Error: The AcquireConnection method call to the connection manager "FORGE.FMC" failed with error code 0xC0202009. [Connection manager "F ...Show All
SQL Server Matrix column visibility
Hello, I have one column group and three static columns. I'd like to control static column visibility property depending on a field value. I.e. Hidden: =Fields!GroupId<>5. But I'm not able to find visibility property in column object. Neither in properties explorer nor RDL documentation. I'm only able to set hidden property in textbox objects. I have RS 2005. Thank you for any idea. Jirka Nouza Currently, the visibility of static matrix columns cannot be controlled. We are considering to lift this restriction in a future release. -- Robert ...Show All
Visual C# CSV/Flat file parser with grid preview ?
I need to code a flat file parser (CSV, delimited, fixed-width), with visual preview in a grid. Does anyone know of any good demos/examples illustrating this in C# (in particular with the grid preview functionality). Thanks, Andy Hi I think this link will help http://www.csvreader.com/csv/csvdemo.zip . Cool ...Show All
Windows Forms Double Data Entry for verification
Can anyone help me for double data entry there i can find one example with source code. I'm not sure I understand what you mean by "double data entry." Can you provide more info ...Show All
Windows Forms Why won't my properties show up in the designer?
I have been trying to get my properties to show up the designer's Properties window. This used to work (I used to have to use browsable(false) to prevent properties from appearing), now I can't get properties to show up at all. Here's the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace WinForm_Test { [ DefaultProperty ( "Text" )] public partial class ImageButton : UserControl { public ImageButton() { InitializeComponent(); ...Show All
Visual C++ Odd HWND Behavior
Hi, I'm using MS Vis Studio .NET 2003 and I am experiencing some odd behavior with HWND pointers. I have the following code in my application HWND hWnd; hWnd = CreateWindow(nom_app, "Reco Fr", WS_DLGFRAME, CW_USEDEFAULT, CW_USEDEFAULT, 200, 200, NULL, NULL, inst, NULL ); Sometimes CreateWindow will return a good HWND, however other times it will return something like this: hWnd {HWND__} { unused=<undefined value> } HWND__* I also get the same odd behavior when I reinterpret_cast a System::IntPtr to a HWND as follow ptr = CreateWindow(nom_app, "Reco Fr", WS_DLGFRAME, CW_USEDEFAULT, ...Show All
Visual Studio How to work with Framework 1.0 in Studio 2003
Hi Friends, I am supposed to work on an application written in framework 1.0. I have VS 2003 installed on my PC with Framework 1.0 as well as 1.1. I wish to work on framework 1.0 with VS 2003. Is it possible to do so or i need ot go for VS 2002 installation. If framework 1.0 with VS 2003 is possible, please share the configuration that needs ot be done. I tried opening project in build 1.0 version in VS 2003 & it asks for upgrading. Please give your valuable suggestion. Thanks Regards, Saurabh application Developer, Wipro Thanks for the help David. Can you please resolve one more query. I wanted to check the size ...Show All
Visual Basic File I/O to read a specific line
Hey guys, In need of help. I need to read a line from a .ini file (specifically the 4th line). What it is, is a path to a database which I want to implement as the connection file in my vb window forum --> crystal reports so crystal viewer can pull the data from that database. [CONFIG] ReportDirectory=E:\appdata\ MainframePortNumber=1111 ClientsDB=E:\appdata\clients.mdb ProviderDB=E:\appdata\provider.mdb So I need VB to read the 4th line and it has to pull E:\appdata\clients.mdb and set it as the database path for crystal reports. Can anyone shed some light :) thanks. As a answer on you question how to read the 4th line: Dim r ...Show All
Visual Studio Express Editions HTML from website
Hi guys, I'm trying to get the source from a website from a VB program, and even though this is my second post, the two questions are sort of unrelated. I'm trying to figure out which header files I should be using when i run this chunk of code: ' Create a new WebClient instance. Dim myWebClient As New WebClient ' Download home page data. Console.WriteLine("Accessing {0} ...", uriString) ' Open a stream to point to the data stream coming from the Web resource. Dim myStream As Stream = myWebClient.OpenRead(uriString) Console.WriteLine(ControlChars.Cr + "Displaying Data :" + ControlChars.Cr) D ...Show All
SQL Server Can't Attach Database using SQL Server Management Studio Express
I am having a problem Attaching, well actually not being able to see a database when attempting to attach it. I suspect this is more of a security issue rather than a problem with Management Studio, but I can't figure out what is happening. If I copy a database to Documents and Settings\All Users\... and attempt to attach I can see the file in the selection tree. This also is the case if I copy it to Documents and Settings\Default User\... But if I copy it to Documents and Settings\ADynarski\... which is the account I normally log into, when I expand the folder in the selection tree, nothing is visible. And the same thing occurs if I copy ...Show All
