Edgardo Rossetto's Q&A profile
Visual Studio 2008 (Pre-release) Problem on Hands-On Labs (Building XBAP with WPF)
I am using the February CTP while doing the lab(Building XAML Browser Application with Windows Presentation Foundation) and encountered an error when publishing the application on my IIS. If I run it using my VS 2005, it just works fine but when I use IE to navigate to the URL ( http://localhost/XBox/XBox.xbap ) I get this Application Deployment Error - The application cannot be deployed. Any idea why I would appreciate your assistance on this. Can you please reply back with the full text of the deployment error Thanks, Karen ...Show All
Visual FoxPro creating tables
Hi all, When i try to create a table such as ==> CREATE TABLE c:\tab2.dbf ; ( year c(20),; enter_md i(20),; enter_do i(20),; enter_tot i(20),; exit_md i(20),; exit_do i(20),; exit_total i(20),; net_md_delta i(20),; net_do_delta i(20),; tot_net_del i(20) ) I get error message 'Field name is duplicate or invalid'... does any1 know why I realize they are similiar, but what is the problem Is there an easy fix Mike Too long of field names. This works: CREATE TABLE tab2.dbf ; ( years c(20), ; enter_md i, ; enter_do i, ; enter_tot i, ; exit_md i, ; exit_do i,; exit_total i, ; net_md ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to use bitmaps
Sorry for the dumb question, but I've been reading from platform SDK for hours but still cannot solve this problem: I have an array of RGB values and I want to create a 24-bit bitmap. Then, I want to do the reverse: from a 24-bit bitmap I want to get an array of RGB values. Every way I tried I get some error: is there any example Thank you, Ignazio Its fairly slow but have you tried Bitmap.GetPixel ( http://msdn2.microsoft.com/wbey6xyz(en-US,VS.80).aspx ) Otherwise, what other methods are you trying ...Show All
Windows Forms Replacing numeric enter with tab
Hi people! I want to replace default behavior of Windows form controls on keyboard events. I would like them to recognize enter key of numeric keypad as tab key. In mass keyboard data input, especially for numeric data, users prefer numeric keypad. It would bee very convenient to hit enter key to set next control in focus. I need this only for standard input controls: datagridview, text box, combo box, check box and buttons. I managed this partially by subclassing Windows form controls to handle WM_KEYDOWN, WM_KEYUP and WM_CHAR messages for numeric enter key. Datagridview, check box and button works fine but combo box won’t work ...Show All
SQL Server Re-Execution of For each Loop Container
I have a For each loop container and inside the same a group of text files are loading to a table using bulk insert task.If there are duplicate files i dont wish to load it into the table. Duplicate check can be done by script task but how do i skip the files and repeat the for loop for the next files. That means i want to skip some files and load the other files in a for loop. How do i do that. Can anybody please help me. So here is what you do Loop container has inside a Script task that checks for a duplicate file and a BULK INSERT task that does what it says on the tin. The script task and the BI ...Show All
Visual Studio Express Editions formating Numbers in Text Box
If I format ("##.0") or use VB express formating "f1" then when I type number like 45, text box willl show 54. How do I change that. Without formating function, textbox input works fine. Any help is appreciated! KCtin I just did something like this the other day. I had to display and HTML RGB color number and wanted to display leadin zeros, but in HEX. Format didn't seem to do that so I did this: HexStr = Hex(temp) Protected sZeroStr As String = "000000" Protected Const cStrlen As Byte = 6 TbHex.Text = sZeroStr.Substring(0, ...Show All
Windows Forms My latest pet peeve
Erm, just a thought...but PLEASE...*PLEASE* add a .Tag or .Name property to MenuItem ..i'd be in love then :( I've done this before, but then I sacrifice being able to use the designer to modify the menu. Does anyone know if the Menu designer can be forced to use a custom MenuItem instead of the normal framework MenuItem Thanks, Ro ...Show All
Visual Basic STRESSED! NEED HELP PART II
I aint normally this bad honest! lol. Thanx to Dman1 i have remembered how to link a button on one form to another form. However i want them to appear in the same space as the first form. For example now when i click btnNext on frmOne it does indeed link into frmTwo but the frmTwo comes up on a different part of the screen so you can see both frmOne and frmTwo. I want it so that when btnNext is clicked frmTwo comes in place of where frmOne is at that time. Please help! Hello, I think you specify the location, but aren't sure. You could instead make form1 invisible; is that an option ...Show All
Windows Forms Help! Number Pad Negative key not working in DataGrid ...
Hello.. When using a Windows Forms DataGrid, the Negative key (-) does not register when pressed. All the numbers on the pad work fine "0-9", including the "/" and "*" keys. Am I missing something here Also, the Negative Key along the top of the keyboard DOES work however. Thanks in advance - B Thanks- However - I do not  ...Show All
Windows Forms Owner Draw ContextMenu
Hello everybody, I have a problem. I can create owner draw menu but only MainMenu. Contextmenu doesn't want to be created. Can anybody write sample of it Sorry for my bad English. I believe you have to set the OwnerDraw property of each menu item to True. Then what I usually do is create one sub to handle all of the items for example: Private Sub MeasureMenuItem( ByVal sender As Object , ByVal e As MeasureItemEventArgs) Handles menuItem1.MeasureItem, menuItem2.MeasureItem Dim mnuItem As MenuItem = DirectCast (sender, MenuItem)   ...Show All
Visual Studio Express Editions how to import Bookmarks favorites file to treeview
hi i'm export my favorites links from internet explorer as html file now i want to import this ( html ) file to tree view on my form i can read form this file and get folder name and URL but i cann't make it as tree it's now in on level only i want to read from this file and make tree view in many level can you help me if you want to explanation pls tell me i'm also search for this code but i have an wxample it's show folder and url in bookmarks , but it's show in one level can any one help me to show in multi levle as tree this is my example http://www.segaaal.com/Read_Bookmark.zip ...Show All
SQL Server Basic Reporting Problem
Hi I am having a problem with reporting. I want to query SQL data using dataset using a query which looks lie this. slect thisparam,thatparam from tablex where thisparam = @thisparam thisparam is a user prompt. When the user leaves prompt value to be empty and clicks on view report i want to display the data select thisparam,thatparam from tablex else use the above statement with the parameters. Could someone help me with this. Should I user filters or expression. Thanks SQL NEW You can do this in your SQL statement: select thisparam, thatparam from tablex where thisparam = @ ...Show All
Visual C# Hook Windows Technique ? If you have experience , please help me
I use C# , I want to press ctrl+ right mouse click anywhere on the screen (or at least on my program interface), if the mouse position is on one English word , I will translate it into Vietnamese and display a little windows for Vietnamese meaning.The main task is reconise the word at mouse position . My project is a dictionary.I heard about Hook technique, I search it alot but I fail to do this task , it takes me alot of time ! Someone can help me thank you alot in advance This is what you need, click ! ...Show All
Visual C# how long can a string be
I have a pretty large text file, with very long lines. I am trying to read each line, match a particular field in that line (this is a comma deliminated text file) and then insert the coresponding field. I have done this and it works on most of the files. The problem is with the file that contains very long lines. It just screws everything up. It seems to either be having a problem reading the line as a string, or writing it back to a file. How long can a string be Is there some other method besides streamwriter/reader that can deal with very large lines of text Thanks. How long is a piece of string You ca ...Show All
Windows Forms Is there an underline control or clever workaround?
Hi, I'm looking for an 'underline' control or some clever way of creating a similar effect. I want something to look just like this Eclipse dialog (link below); http://home.swiftdsl.com.au/~spurrymoses/pics/eclipse_dialog.jpg There is an underline underneath to top section and then underneath the 'Enclosing Type' checkbox. I tried fiddling with existing controls and looking for something in the Toolbox References but couldn't work anything out. Will I have to write my own custom control here. That would probably good practice but I just want to make sure I'm not reinventing the wheel first. On the sam ...Show All
