trun_gup's Q&A profile
Visual Basic Printing - skip a page
I'm using the PrintDocument's PrintPage event to do my printing. All works fine, but I can't figure out how NOT to print a page of a multi-page document. Even if I never call DrawString inside the PrintPage event for a particular page, a blank page is sent to the printer for that page. Say you want to skip page #3. When the 3rd PrintPage event fires, just render the contents of page 4... ...Show All
.NET Development String.IndexOf Method (Char, Int32) - Accepts out of range index!!!
Hi, It seems that String.IndexOf(Char, Int32) accepts a startIndex that is outside of the string range, if its only off by one! the following compiles and runs just fine (it returns a -1 though) string hello = "Hello World!" ; Console .WriteLine(hello.IndexOf( '!' , hello.Length)); please note that hello[hello.Lenght] is out of range! now my question is, do i rely on this behaviour or is this something that should not be happnenig that i should not code against Thanks. aghoneim IndexOf just checks if the startIndex is greater than the string's length. I believe the framework is pretty consistent in that respect. If there's no possible way you c ...Show All
Visual C++ pdh.h - Error Occured
When I include the pdh.h header file I recceive the following error: error C2040: 'HLOG' : 'void *' differs in levels of indirection from 'struct _HLOG' The error occurs in the header file. Any idea what could I be doing wrong Thanx in advance The only programmers that are better than C programmers are those who code in 1's and 0's..... Programm3r Well thank you pintu ... Let me provide more information: Firstly I have included alot of header file, and it includes: #include <windows.h> #include <winbase.h> #include <winuser.h> #include <sql.h> #include <sqlext.h> #include <stdlib.h> #include <mbstring.h> #include <exception> #include <odbcinst.h> #include <sh ...Show All
Smart Device Development updating web reference thru UI
how can i do this i was thinking they wont be able communicate like at the IDE once i change the IP, it will automatically refresh/update the WS.. so it works the same way on the client ...Show All
Windows Forms How to change the color of textbox after set enable to false?
Hi, I am using VB.Net 2005, after I set my textbox enable to false, how can I change the background color and font color of the textbox If I just change the font color property of the textbox, it doesn't seem work. Thanks a lot. why not "replace" the textbox (or combo, datetimepicker etc.) field with labels if you want to disable them. Labels are not editable. Label colors can be adapted. Just place a label over the control you want to disable and hide the control. For enabling hide the label and show the control. ...Show All
Visual Studio how to open files created by VS2003 in VS 2005?
It is a simple C++ project created at home by Visual studio 2005 I went to school and try to open them in Visual studio 2003 and i failed Does anyone know the solution There are changes between the formats of the solution and project. I am not aware of a vs 2005 to vs 2003 converter but the easiest pain is to create a new solution and project in 2003 and manually add the files to the project. There are going to be things that might not work though... ...Show All
Visual Studio Tools for Office MS-WORD AUTOMATION ERROR : "The message filter indicated that the application is busy."
Hi, I am getting this error while creating word application instance from vb.net/c# for web applications. Dcomcnfg is configured as per microsoft instructions for the same for the permissions. But still I am getting error: {"The message filter indicated that the application is busy." } If any one can provide the resolution for the same that will be a great help. Thanks and Regards, Ashish Complete Exception detail as below: - exc {"The message filter indicated that the application is busy." } System.Exception + [System.Runtime.InteropServices.COMException] {System.Runtime.InteropServices.COMException} System.Runtime.InteropServices.COMException System.Object {System.Runtime.InteropServices. ...Show All
Visual Studio Team System Unshelve shelveset when files locked?
I tried to unshelve another users shelveset and one of the files in the shelve was a .exe and it said the file was locked so I could not get the shelveset. Is there a way I can get the files out without having it try to checkout (lock), as I need that file for my testing. Thanks. Overwriting files without checking them out is against philosophy of TFS (tracking all changes on server). How could you check in changes that you've unshelved if the unshelve didn't check out files You would need also to do get /force every time to clean your workspace. I see two possibilities: simple powertool that "unshelve" changes outside of workspace (the same way James described) (imho hacky and n ...Show All
Visual Studio Team System SQL server management studio error
Hi When I try to create a maintance plan, it stops with a message box saying Guid should contain 32 digits with 4 dashes (xxxxxxxx....) Whats wrong Our next SP will address this and it will require tools to be installed and would not need Integration services and no more you would need to delete and recreate jobs. Thanks, Gops Dwarak ...Show All
Community Chat Vista WoW, but I got problem with Vista's IE7
I runnning dual OS, XP and Vista, both I running IE7, which on Vista side, is ship together with OS. While the IE7 on my XP behave very good, on Vista, whenever I using IE to download the attachment on Hotmail, Yahoo, or whatever, that normally not using download manager, which using IE's built in downloader, and yes, my IE7 will stop responding, everytime will be like that whenever I try to download some small attachment, what might cause the problem I don't want to reinstall or do restore or something, just hope to fix my IE7 on my Vista, thanks. p.s. Vista really really Wow! Check out the windows vista help and support site, better place to get help about any problems like that. http://windowshelp.m ...Show All
.NET Development .Net 3.0 installation
Hi, I have VisualStudio .Net 2005 with Framework 2.0 installed in my system. My requirement is to install .Net 3.0 to work on WPF . I downloaded dotnetfxsetup.exe from MS site [ redistributable package - 2.8 MB ] . While installing it tries to refer internet for another download. I donot have internet connection so I need to download entire stuff from another m/c and move to my system to install. How to get the downloads. Please provide me the link. Thanks & Regards Vijay I did the following Step 1: [ downloaded and installed ] http://go.microsoft.com/fwlink/ LinkId=70848 Step 2: http://www.microsoft.com/downloads/details.aspx FamilyId=5A0AE4CD-DC7 ...Show All
Visual Studio Team System Still a bit slow opening projects
Hello, As mentioned before, the import schema process is extremely fast now, which was pleasantly surprising, however opening an existing project with lots (>5,000) of objects still takes a long time. This is also without using source control and so I'm guessing it would take up to 10 minutes to open if I put my project into TFS / VSS. Is there any way to speed up the opening process, e.g. by disabling particular schema checks when first opening the project I just put the project into TFS and was surprised to see it wasn't much slower than being unbound, so that was interesting :-) It still does take about 4 minutes to load up though, so does anyone know any uneccessary startup checks I can disab ...Show All
Visual C# Recursive function error
Hello, I wrote a function to that reads a file in a folder and then does something. the function is recursive in case of subdirectories. just like that: public void ProcessDir( string sourceDir, int recursionLvl) { TextWriter tw = new StreamWriter (textBox2.Text + "\\FileNamesGen.txt" ); HowDeepToScan = domainUpDown1.SelectedIndex; if (recursionLvl<=HowDeepToScan) { // Process the list of files found in the directory. string [] fileEntries = Directory .GetFiles(sourceDir); foreach ( string fileName in fileEntries) { // do something with fileName tw.WriteLine(fileName); } string [] subdirEntries = Directory .GetDirectories(sourceDir); foreach ( s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Right forum? Where to obtain the source code for the XFest 06 Exploiting D3D 10 - Adv Tech talk by Shanon Drone
Is the source code available I tried searching the forums and the web to no avail. Shanon just pointed out that the code samples he uses are the same D3D 10 samples found in the DirectX SDK, so no "secret sauce" involved. Just download the SDK and you're all set! ...Show All
Windows Forms Program Icon Question
Hi, just a question about what VB Express allows concerning icons. I made an icon (.ico file) which after deployment displays fine for the start menu. However, it does not display in the actual program. Is this a limitation of VB Express or is there a trick to display a custom icon in the actual program (upper left corner & task bar) I am asking this because I got an icon I downloaded from somewhere to display in the program (don't ask me how) and now I can't get it to not display. Any ideas Thanks, Daniel I have already selected my icon through the project application properties. My icon shows up on the start menu. But what you mentioned about the form sounds like what I need. I want the icon to sho ...Show All
