cehor's Q&A profile
Visual Studio Express Editions Serial port Communication in vc 2005 express
hi, When I try to compile and run serial port example code given in msdn(http://msdn2.microsoft.com/en-us/library/system.io.ports.serialport.aspx) with visual c# 2005 Express edition, sending part works properly. but receiving part does not work. please help me to solve receiving part. regards dctdct ...Show All
Visual C++ VC++ 2005 Win32 redistributable
I would like to make a single file, redistributable "Hello World" program. Is there a way of compiling any depenent files/DLLs into the helloWorld.exe program #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { printf("Hello World!!!\n"); return 0; } OR #include "stdafx.h" #include "iostream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Hello Object World!!!\n"; return 0; } *** please test (must run on a computer other than the one used to compile) I am not sure I understand. I think you are asking how to create an executable that does not need any other files and therefore does not ...Show All
Visual Studio Express Editions Reading info from html doc
Is it possible to read info in a html doc and copy it to a textBox control. I would like to be able to open a webpage in a WebBrowser and copy the info inside of the webpage to a textBox in my application. Is there other way to get specific html, with out beeing though "id" The HTML that I want to fetch doesn't has id. Could you explain me what's the "WebBrowser Control" Thanks in advance, Fred FR ...Show All
Visual Studio Tools for Office Properties Question
I'm looking for a way to make my property browsable outside of the visual studio environment. For example, I have a property within my windows control called Interval. If I set the browsable attribute to true I can access the property through the properties window when I use the control in other projects. What I am trying to do is make the property visible in the InfoPath properties window. I have all the COM necessary to make the control workable in InfoPath I'm just not sure how to get this property visible at design time. Any help would be appreciated. TIA, Eric I don't know how (or if you can) actually 'hook' into the InfoPath context menu, but how about just handling the right-click o ...Show All
.NET Development Updating Adds the same record to all rows in the Database instead of just one?
Hello. I'm trying to update a single record in a database to add new data, but when I hit my update button and the event runs, it adds that record to ever record in the database overwriting the current data in the database. I'm not sure how to work around this problem. Any help would be greatly appreciated. Thank you. You lost me on this one. Adding to the datatable is completely different from adding to the db. You can add a zillion records to the datatable and if you don't call Update (or some other command object method) then nothing will be sent back to the db. If this is a new record, than an INSERT is the command you'll want. The whole strategy you are using though is going to be a challenge. I'd recommend just configuring an adp ...Show All
Visual Studio 2008 (Pre-release) Dynamically opening and closing channels not defined by App.config
Folks, I'm working on an application (game, actually) where I need to be able to create transient channels... some of the clients will start listening on and sending to a given mesh based on where the player is in the game. So, when I define in app.config the endpoint for net.p2p://ulyssesagenda/chat I'm fine because the peer mesh address of that channel never changes, and I'm only using a single instance of IChat to receive incoming messages. What I need to be able to do is, at runtime, open an INavigation on net.p2p://ulyssesagenda/nav/galaxy1 or net.p2p://ulyssesagenda/nav/galaxy2 or whatever. In other words, I need to be able to dynamically create instances of these classes that implement the mesh interfaces, and I need to be a ...Show All
Visual Basic is it allowed to install Visual Studio 2005 non-express editions on more than 1 PC?
At the moment I'm using VB 2005 Express. I'm considering upgrading to the standard or professional edition. However, now I'm able to use the express version on, for example, a pc at work and a laptop at home. Does this also apply to the payed versions Note: I'm the only programmer, so only one edition will be used at a time. Regards, Eric Good question. It depends on the end user license asgreement (EULA), which will depend upon how you obtain the copy of VS2005. However, I purchased the Professional upgrade retail package, and from that EULA it states (in section 2): a. General. One user may install and use copies of the software to design, develop, test and demonstrate your programs. Testing doe ...Show All
.NET Development .NET 2.0 or 3.0 which one do I need?
Hi, is 64-Bit development possible with .NET Framework 2.0. If no which Visual Studio Version supports the 3.0 Framework Thanks, Hello, Yes, it is possible with .Net 2.0. (VS 2005 supports 2.0 AND 3.0). Basically, .net 3.0 is 2.0 on steroids. That is, .Net 3.0 = .Net 2.0 + WF(workflow framework) + WPF(presentation framework) + WCF(communications framework) Hope this helps ...Show All
Visual C++ Scrollbar position calculation
Dear All, I'd like to implement a custom scrollbar. What's the logic behind calculation the thumb position and size, according to the number of items and page size Try: FirstItem = ((TotalItems - ItemsPerPage) * ThumbPos) / ScrollbarMax if (FirstItem < 0) FirstItem = 0 (or hide the scrollbar) ...Show All
SQL Server Pie Chart Customization to improve readability
Hi I have a pie char report which is diplaying data based on different categories. I have almost 30 categories and because of that data is not readable. I was just wondering what sort of customization or change I can do into my pie char report to make it look more readable. I would appreicate if someone can help me here. Best Regards Amit Have you considered an approach where the chart shows aggregated data and the detail data is shown in a "data table". Check this article for more information and samples: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsql90/html/MoreSSRSCharts.asp Particularly, take a look at Figure 17 in the article. -- Robert ...Show All
Visual Basic Calling a sub and NOT recieving focus to the sub caller
Hello, and I am trying to write a program that hopefully in the future will sell (That's just background info, not the problem) so I'm not going to be super-duper-specific about the program. The program will do very basic authentication (simply retrieving a user list from the registry and comparing it to the user-supplied username) and will call a sub in another form when the user is authenticated. I've got the authentication to work, but is there a way to call a sub in another form and give the other form focus (ex. call Form1.MySub from Form2 and give Form1 focus until the user closes the form or another form - just an example) If someone could help, that would be great! I think it worked, except now I'm ...Show All
Visual C# Q: Creating a simple keylogger
Hello everybody, is there a way to create a simple keylogger in c#. This means to record every key pressed and write them down in a file....More or less that's it! Any ideas. With all the respect, chire I highly doubt that it would be illegal, unethical maybe I don't like people snooping on my data but that's not to say he doesn't have a valid use for this. Anyways I would suggest that you look into writing a filter driver to intercept the data from the keyboard on it's way to the operating system, this has the benefit of getting all data before the os does you'll capture all keys pressed on the keyboard, however you will have to create two different installations of this driver one for ps2 ke ...Show All
Windows Forms Number of nodes in a tree view
Hi, Is there a limit on the maximum number of nodes that will be displayed in a tree view Thanks! Is there any way that I can change this limit Or if I can't alter the limit, then which control should I use In my application I can have any number of nodes. Thanks! ...Show All
Visual Studio Team System A copy file problem in UnitTest.
I have got a problem like this: As we know,if we create a unittest for the public method and when we execute the test,it will automatically copy the assembly from bin\debug into the TestResult\username\out.However I want to copy another file,a xml file in bin\debug into the out folder,is there any automatically way I do not want to use the File.Copy to do this because if I do this,I have to set a file path. Thanks for any help. You can also make use of the DeploymentItemAttribute which can be applied to test metod. This allows you to scope deployment on a per-test basis, which may or may not be what you want. Regards David ...Show All
Software Development for Windows Vista IE7 protected mode issue
Hi, I have an an application that fetches data from temporary internet folder. But Since IE7 works in protected mode(by default) ,I am not able to fetch the content properly. So, is there any way in which my application can fetch IE data without going into the IE context i.e without switching to low integrity level Please reply ... You can find all you need in this doc: http://msdn.microsoft.com/library/default.asp url=/library/en-us/ietechcol/dnwebgen/protectedmode.asp ...Show All
