Arsal Usman's Q&A profile
Windows Forms VS2005 - Form Design error !
Hello everyone ! Sorry for my english... I have a problem with my VS2005. When I make new project the form designer post this error : Une ou plusieurs erreurs ont ete rencontrees lors du chargement du concepteur. Les erreurs sont repertoriees ci-dessous. Certaines erreurs peuvent etre corrigees en regenerant votre projet, d'autres peuvent necessiter des modifications du code. Aucune donnee n'est disponible. Masquer a Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) a Microsoft.Win32.RegistryKey.GetValueNames() a Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) a Microsoft.VisualStudio.Shell.De ...Show All
Visual C++ simulate keyboard operation, but while compiling the program, it said: KEYBDINPUT and SendInput have not been defined.
I want to use the following codes to simulate keyboard operation, but while compiling the program, it said: KEYBDINPUT and SendInput have not been defined. Please tell me why and the head file needed to be added. KEYBDINPUT ki; ki.wVk = VK_RETURN; ki.wScan = MapVirtualKeyEx(VK_RETURN, 0, GetKeyboardLayout(0)); ki.dwFlags = KEYEVENTF_EXTENDEDKEY; // or KEYEVENTF_KEYUP, one of those must work ki.time = 10000; ki.dwExtraInfo = 0; INPUT ipEvent; ipEvent.type = INPUT_KEYBOARD; ipEvent.ki = ki; UINT nNumEvents = SendInput(1, &ipEvent, sizeof(INPUT)); I appreciate your help. If you have a desktop machine with a PS/2 connector, the easiest way IMHO to simulate keyboard input is to just build a simple microcontroller circuit to interfa ...Show All
Visual Studio MSCCI Get on multiple files isnt working for me...
I am creating my own editor app that integrates with sourcesafe and have had various issues. I am using VS6 and the app is an MFC MDI app. The various issues I had were that the HWND passed has to be valid otherwise it says it succeeds and returns SCC_OK but actually it didnt. Other things like local project paths MUST not have a trailing slash (all horrible stuff, shame it doesnt error for me). Those being all solved, I am now trying to do a multiple file get again it comes back SCC_OK but nothing has been got. If I use my code to get the files one at a time, it works fine. The same code also works in a console app so I was wondering if its the HWND problem rearing its ugly head or if its something else ...Show All
Visual C# Display HTML Document in an application form ?
hello any ideas how to display an HTML document on an application form with Visual Studio 2003 using Visual C# thank you ahmedilyas wrote: Where are you obtaining this HTML document from the HTML documents are stored in the hard disk by the way you are one of the best authers here and i always read your comments and replies and answers , thank you ...Show All
Visual C# how to add a " at the begining and the end of a string variable
Let s say I have a string variable called targ if the value of targ is: d:\Program Files\Common Files I need to produce this in code: " d:\Program Files\Common Files " So I want a string variable with quotations appended to it I tried this but nio luck: string targ = "" + targ + ""; Any help pls Thanks ...Show All
.NET Development how to use ssl with FTP ?
i have two questions : 1 - in some FTP Programs when i want to use SSL ,i found two options OpenSSL and Windows SSL , There is any difference 2 - i want to connect to FTP server so i create System.Net.FtpWebRequest object and use it to do that it is work with the normal FTP servers but i want to connevt to FTP Server request SSL and using specific port not the defualt port 21 i set the EnableSsl property fpr the FtpWebRequest object to true, and because the FtpWebRequest do not has a Port property i pass it in the url like this : ftp://123.123.123.123:1990/ but it not work what is the problem and how i can solve it Thank You Tammam_Koujan wrote: when i test my program with none SSL FTP site it i ...Show All
SQL Server How to specify a row filter on joined tables
I am using SQL Server 2005 to publish joined tables for SQL Mobile subscribers for merge replication and column level tracking. Using Management Studio I am trying to join tables and specify row filters on the joined tables. I.E. table 1 is joined with table 2. I need to define row filters for table 1 and row filters specific to table 2. An example would be: Table 1 is a customer table that I filter on a specific customer. Table 2 might be an orders table that I need to join to get the customers orders but I also want to filter for open orders only. When I specify the row filter for table 2 the join appears to be ignored and I receive the complete table 2 with the row filter applied. I have searched the online books and the we ...Show All
Visual Studio Express Editions How do I specify Data files for ClickOnce deployment?
Hi to all, I have an application that uses 2 CSV files. The application sucessfully runs on my development system, but bombs when Run after ClickOnce deployment. The data files, contacts.csv & bowl.csv, are located in a folder named Resources in the project. I right clicked each file and set the Build Action Properties to Content. I then opened the project properties and on the Publish tab, I clicked Application Files. I set the Publish Status for both files to Data File. I read the data using the following code: Private myPath As String = "..\..\Resources\" Dim SR As System.IO.StreamReader Dim txt As String = "" Dim FileURL As String FileURL = myPath & [Enum].GetName( GetType (CSVfile), FN) & &q ...Show All
Visual C# Strange behavior in catching COMException
Hello, Recently I got some strange behavior about handling COMException.Pseudo codes as follows: if (condition) { if (condition) { try { new a COM object; calling methods in COM object and other .NET assembly; } catch (COMException ce) { write message to a WinForm Message Console; //1* some other operation; //2* } catch (Exception e) { write other message to a WinForm Message Console; //3* some other operation; //4* } finally { some code here; //5* } } try { operations here using .NET assembly, including writing message to WinForm; } catch (VariousException) { doing exception handling; } finally { dong fina ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Deployment / strange Network Problem
Hello I have a problem with deployment of a xbox 360 game. Okay the problem seems to be the network connection, i get the message that the host (my xbox 360) cannot be reached. I tried a PING to the IP Address of my XBox 360 and it fails. So i checked the Subnet, the IP Address, everything looks fine. And than i figured out something really strange: I started "PING -t 192.168.0.2" (the IP of my XBox) and i got timeouts as before. Than i started the network diagnostic tool on the XBox - still PING timouts. From the moment on where the network diagnostics reached the ICMP test, the PING succeeded and i receive an answer. Unfortunatly when the network test is over, the PING fails again. Can someone help me Greetings, Ber ...Show All
Visual C# How to load images effectively ?
Hi guys, In my program I want to view thumbnails.. But when the original image size goes up the program starts to freeze.. In my method I directly load the original image to an Image object and then using the GetThumbnail(....) method resize it and pass to another Image object. But it seems this is not an effective way !! Is there any idea, or trick or something else to increase this performance I am open to any advice.. Best regards The documentation for GetThumbnailImage doesn't say how hard the method works on getting a good quality image. Probably as hard as possible. As an alternative, considering using Graphics.DrawImage to create your thumbnail with the Graphics.InterpolationMode set to Low. ...Show All
Visual Studio 2008 (Pre-release) Lots of ListView Items in my ListView = LAAAAGG....
My program is quite simple really, but for some reason, when I have a lot of items in my ListView, the program hates my computer, and slows the whole thing down kinda. When I have just a few items in there, it works just fine. But, when I'm getting an array of files from GetFiles(path, searchpattern, alldirectories) or whatever, and am putting it in the ListView, where there's ALOT of files listed in there, which I might need in my program, it slows it down. There could be over a thousand files in that ListView. I really don't know how many songs I have. But, what could be the issue here I am using the latest .NET Framework 3 (downloaded like 2 days ago), Visual C# 2005 Express Edition, and I'm running on Windows XP SP2 (latest updates, e ...Show All
SQL Server Changing connection string dynamically and Reports calling performance
Hi all, We've a web application (asp .NET) used by a different users mapped to different databases, and a single Server for reporting. We've define reports shared by all users because all databases schemas are same, and it reports deployment is not complicated. When the report is called, it’s queued in a separated thread, and we change the connectionstring of the shared report by SetDataSourceContents before calling the report service (using ReportingService. Render method) . Recently, we have a new problematic. We have implements a new web page that integrate the report result and it work fine. But the problem is that we have to queue all requests and the waiting time can be very important if a lot of request are queued .... I ...Show All
Windows Forms System.ArgumentOutOfRangeException when trying to assign .Text property of combobox
Some times (but not always) when I try to assign the text value of a combobox in my application (Code: combobox1.text = "") I get an exception. I can't figure out why.... Any Comments Here is the exception details System.ArgumentOutOfRangeException was unhandled Message="InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index" ParamName="index" Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.ComboBox.ObjectCollection.get_Item(Int32 index) at System.Windows.Forms.ComboBox.get_Text() at System.Windows.Forms.Control.set_Text(String value) at System.Windows.Forms.ComboBox.set_Text(String value) at VBNETClient.OPCClient._UpdateItem() in ...Show All
Visual Studio Team System Convert Project to Test Project
I have a seperate project that just contains NUnit tests that i have converted the syntax to VSTS unit tests. The tests won't show up in the test manager however. Do I have to recreate the project as a Test project How can I convert it <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids> Thats what I have in the VB Test project I just created. ...Show All
