Mike Brown's Q&A profile
Windows Forms how to use picturebox
Hi! I have a question that how to use picturebox. If I want to load pictures from a file. My reference says something like; pictureBox1.Image = Image.FromFile( ); What would it be after FromFile Should I put file address of the pictures Thank you for help. I've been following this thread and have a similar picturebox question; although the implementation is a little different. I have a dataset which is rendered from a web service. The data contains employee information and also includes an image (bmp). I can successfully extract all employee information from the dataset and use in my mobile windows form controls, but I am having difficulty extracting the image from the dataset for use in a pictu ...Show All
Visual C++ bitblt Cpu issues
Hi, I am trying to implement a win32 screen capture application similar to VNC. Bitblt() function which i am using to capture the screen uses 100% cpu when the hardware acceleration is set to FULL. I tried Bitblt on HDC selected from CreateCompatibleBitmap & CreateDIBSection, but the results are same. Is there any way, that i can minimise the Cpu utilisation when hardware hardware accleration is set to FULL. Please help.. Thanks, --P V V R. Hi, Please find the below code part that does the Screen capture, for 8 bit mode. ..................................... . .. . .. . .. . .. // Set the uncompressed size of the dib DWORD dwDibSize = (DWORD) ...Show All
Visual FoxPro drop-down combobox problem
Hi I'm still struck with the combo drop-down part problem for nearly 2 weeks and need help from you. When the values of these 2 textboxes match with each other, the list of employee is able to display on the combo drop-down. But I have one problem :- The list of employee on the combo drop-down repeat unnecessary (even a few blanks) when i changes the values of textboxes. How to refresh the combo drop-down once the values of textbox changes Thank you. I put same values like company codes in both txtboxes. For example, txtboxA = ABCD and txtboxB = ABCD and narrow down the list of employees who works in ABCD. But if I change the values from ABCD to POIU, the result is that the list of employees in ABCD and POIU are to ...Show All
Visual Studio Express Editions Bug?: Unwanted C4819
For the following program (encoded in Latin1): #include <stdio.h> #ifdef _MSC_VER #define POUND 0xA3 #else #define POUND '£' #endif int main() { printf("%c\n", POUND); return 0; } I get the following message under Chinese Windows: test.c : warning C4819 : The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss The point is that the offending line is not designed to work with MSVC. I do not think it right to give such a warning. I found this when compiling a cross-platform project. It has code like above for other platforms. Earlier versions of MSVC do not report this error. The suggestion is useless in my case (won't work ...Show All
Smart Device Development Device Emulator 1.0 standalone with Windows Mobile 5.0 MSFP
Hello Everyone, Device Emulator 1.0 (yes, the same one that released with Visual Studio 2005), is now available as a standalone download from: http://www.microsoft.com/downloads/details.aspx FamilyId=C62D54A5-183A-4A1E-A7E2-CC500ED1F19A&displaylang=en This release comes along with the OS Image for Windows Mobile 5.0 w/ Messaging and Security Feature Pack (MSFP). Using this OS image with the emulator will allow you to demonstrate and play with technologies like Direct Push. Better still, you can now include the emulator and OS images in your online training materials Thanks, Anand for the Device Emulator Team For Internet connectivity, you will need to have installed the Virtual Switch (VMNet) Driver. Thi ...Show All
Visual C# how to make this function signiture pass a delegate
Tracking.UI.MainWindows. VendorOrderLegDetailsForm .DisplayVendorDetails( this .FindForm(), (BHFreight.Tracking.BusinessObjects. VendorOrderLegDetail )_OrderLegDetail, delegate UpdateControl); How do i pass a delegate to this function signiture.....I dont know if the way i am doing this is the correct way can some one help me out / Well I want this delegate to listen for a form closing event to fire.....when that form closes i want my delegate to populate a control i have with some data.....this is the function that instantiates my form...now when this form closes i think i need to call this event so should i add it like so.... public static void DisplayVendorDetails(System.Windows.Forms. F ...Show All
Windows Live Developer Forums MySQL, VE API, and around 1Million places to display
Man do i need help. i started off and got to this point and realised i was going in 2 opposite directions. i have a simple VE Map page using HTML/JS. i also have a PHP page that Queries a MySQL server and returns results. all i am looking for is how i would be able to do the following: allow a person to cruise(browse) the map in my simple page, and have 4 buttons to the side that would be toggled on/off to show 1 of 4 categories in my MySQL DB. obviously i realised with PHP it's server side and couldn't update on the fly. i am using a linux provider for this, which means no ASP.NET or any other gr8 MS jazz. the layout: MySQL-DB (name,address,type-of-place, lat, long). i currently dont have lat and long info (i'm guessing thats what everyon ...Show All
.NET Development RequireActionHeader element in policy
I have a service side WSE policy that contains <RequireActionHeader/> elements in a <mutualCertificate10Security> policy assertion. The <request> element has the signatureOptions attribute set to IncludeAddressing, IncludeTimestamp, and IncludeBody. If the incoming soap request contains only a digital signature of the soap body and the request does not contain <Action> SOAP header or a Timestamp, WSE throws an exception. Is it OK to remove the <RequireActionHeader/> element from the policy and the IncludeAddressing, IncludeTimestamp from the SignatureOptions to fix this The incoming request contains a SoapAction HTTP Header. How do I fix this Thanks for all your help, ...Show All
.NET Development XSL Query
i am trying to retrieve all of the hobby elements from the following xml file file but my xpath expression in my xsl file only seems to display the first hobby element. any ideas how i can loop through and display them all baring in mind that it may not be the same amount of hobby elements in the next xml file. XML File <cv> <hobbies> <profile flavour="Exhaustive"> <hobby>Running</hobby> <hobby>Football</hobby> <hobby>Golf</hobby> <hobby>Cinema</hobby> </profile> </hobbies> </cv> Hi, Here is an example that will point you in the right direction... < xml version='1.0' encoding='UTF-8' > ...Show All
Windows Live Developer Forums Custom Layer Past Zoom Level 17?
Hello people, I have set up a custom Tile Server to serve up some Hight Detail tiles as a custom layer: I have set the VETileSourceSpecification.MaxZoom property to 18, as my TileServer can produce tiles at any magnification. It all works fine at normal zoom levels, but once I soom past Zoom Level 17, where VE Tiles stop - then there appears to be just vast amounts of grey/gray Anyone have any ideas on how to allow VE to render my custom layer at a higher zoom level I don't care if the normal tiles don't display. All I need is for my custom layer to render. e.g. //Add layer tileSourceSpec = new VETileSourceSpecification(); tileSourceSpec.ID = "HighDetailLayer" ; tileSourceSp ...Show All
Visual C++ Link error LNK2019 redux
I reviewed the previous thread but couldn't resolve my issue using the info there. The errors I'm getting are: Error 1 error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function _main USBReaderC.obj Error 2 error LNK2001: unresolved external symbol _USB_1208LS_GUID USBReaderC.obj I found the lib file that contains the function and manually added it to my list of link directories to search, but that didn't work. Some other hopefully useful information: This is intended to be a simple Win32 console application I'm using to debug some things going on at a USB port. I'm running Windows XP SP2, the devel environment is Visual Studio 2005 Pro. I'm using the DEFINE_GUID macro which doesn't seem to b ...Show All
Windows Forms VS 2003, false data concurrency error
Hi I have a vs 2003 winform data app. All the data access code has been generated using the data adapter wizard and then pasted into the app. The problem I have is that I am getting a data concurrency error on mydataadapter.update() method. I know that there is no data concurrency problem as I am the only user testing the app. Obviously the error is misleading. What can I do from here to fix this problem Thanks Regards Thanks ken but it’s not two users using the db simultaneously, it’s only me. So there is got to be another reason. I have checked in my backend access db all field properties are set to required=no and allow zero length = yes. Any ideas Thanks Regards ...Show All
Silverlight (formerly WPF/E) How can i drawing text, which is repeating some Path.Geometry?
I'm using the <path> object (a line with BezierSegment geometry) and the <textblock> object with some "text" value. How can i drawing the line with text, which will be repeat the line geometry...i.e. the text geometry should be like on the BezierLine. How can i get it Is it possible now or are you'll planning do it in a next release As mentioned in this post , you can't do this with the current CTP. You will have to manually layout the text along the line using transforms to rotate the text. ...Show All
Windows Forms Stop Cut/Copy in Text Box
In my application I have a text box to store & display password data. Now i want to stop cut or copy that data from that textbox. How can I stop cut/copy of data from that textbox for some of it, you can perhaps take a look at the textbox keypress or keydown event. if the user pressed the control key as well as C or X then whatever is in the clipboard, remove it (ClipBoard.Clear()) as for paste well thats a tricky one ...Show All
Visual Studio ReportViewer in Firefox version 1.5.0.1
I have problem rendering the ReportViewer in Firefox version 1.5.0.1. The width of the ReportViewer is much smaller than expected and the data is just messed up. But the ReportViewer works fine in the early version such as 1.0.7. Any clue on that Thanks. Hi Brian, I forget to mention how we bind the data to the ReportViewer. Below is the code. You can find the DataType for each column in the DataSets section in RDL. Thanks. DataTable table; ... ReportDataSource source = new ReportDataSource ( "DefaultDataSet" , table); this .rptViewer.LocalReport.DataSources.Clear(); this .rptViewer.LocalReport.DataSources.Add(source); this .rptViewer.DataBind(); ...Show All
