hdp203's Q&A profile
Visual Studio Express Editions PDF viewing within VB2005
Hi there, May I know if we can import and view a pdf file from VB, and search text strings from within the file I want to build an application for spareparts database and I want to incorporate an exploded view of the parts, if I search for the part number, it will search through the pdf file (within the pdf drawing) and thus, will give me can give me query for my part database for more detailed info. Is this possible Thanks ChrisMoje, According to your question on import and view a pdf file from VB, I have the following suggestions: 1. There is a class in VB.NET called MediaTypeNames.Application Class that specifies the kind of application data in an e-mail message attachment. MediaTypeNames.Application.Pdf field specifies that ...Show All
Windows Forms Why does all properties get pushed into bound controls when only one property is changed?
Hi! I have a performance problem with Databinding. Why does all data-bound controls (TextBox'es etc) read it's bound properties when only one property is changed If I have many bound controls on a form, it flickers a lot when the DataSourceUpdateMode is set to OnPropertyChanged. I have an entity object that supports the INotifyPropertyChanged event and a collection that support IRaiseItemChangedEvents (just like the BindingList<T>). When a property has changed in the entity object, the collection raises the ListChanged event with a PropertyDescriptor argument for the changed property. Shouldn't that be enough for the databinding to just update the corresponding control It seems like the CurrencyManager is just listening on ...Show All
.NET Development xmlbulkload and namespace problem
I'm an xml thickie and after searching for hours I can't find the answer to a problem. I have a XML filefragment to load that (simplified) looks like :- <L:Record> <L:Field>fdgdfgfg</L:Field> </L:Record> I cannot get it to load thru xmlbulk load. If I modify it to use the default namespace <RECORD> <Field>fdgdfgfg<Field> <RECORD> then it loads with this schema <xsd:schema xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:sql="urn:schemas-microsoft-com:mapping-schema"> <xsd:element name="RECORD" sql:relation="RECORD" > <xsd:complexType> <xsd:sequence> <xsd:element name="Field" ...Show All
Smart Device Development Prevent Tab Page Change on Tab Control
Given the absence of many events for the TabControl component (understandable given that it is part of a "Compact" framework) how does one prevent the tab page changing when the user clicks on a different tab My issue is that I have some pre-conditions to be fulfilled before the tab page display (selected tab) should be allowed to change. I can't use a "Mouse click" event to stop the page change since that event is not available. Likewise I cannot hide the other tabs since there is no such property. At present I check the preconditions on the "OnSelectedIndexChanged" event, but by that stage the tab change has already been actioned. If the conditions are not fulfilled then I have to change the tab page back t ...Show All
Windows Forms Visual Studio 2005 SplitContainer Flicker
I've added a splitContainer to the form and placed a treeview control in one of the panels, but resizing the form causes a nasty flicker. I've tried doublebuffering the form, but no luck. Any idea's or tips.... Thanks in advance, Ok, I ended up inheriting all the controls I used and setting the doublebuffered property to true and not use transparency on any of the controls as well. It helps but makes it harder to get the look I'm after..... ...Show All
.NET Development Failed to create an IPC Port: Access is denied.
I have a service that registers a remoting IPC channel on startup and quite often I will get this error when the service is stopped and then restarted. It doesn't do it all the time but enough to be an annoyance and when the service is stopped I do unregister the channel. Anyone else experience this Thanks!! Hi folks, if you're running into this problem, I recommend running Filemon to see what's causing the underlying access denied. Set up Filemon to show only named pipe activity, then filter by your channel name to see only the channel you care about. This should let you see exactly where the error's coming from. You can get Filemon from www.sysinternals.com. Cheers, JJustice [MSFT] ...Show All
Visual FoxPro Errors running FoxPro Stored procedures in .NET windows app
Hi I want to run a stored procedure in user selected database which basically creates two new tables to be persisted in the same database. I am able to call this stored procedure but I keep getting the same error "One or more errors occurred during processing of command." There are no details of what the error is specifically about. I am able to run the same stored procedure using Microsoft Visual FoxPro 9.0 software. My Connection string is "provider='VFPOLEDB.1';data source='strPathName.dbc';password='';user id='';Mode=ReadWrite". Any ideas or suggestions are appreciated. Try If VFP7Connection Is Nothing Then VFP7Connection = New OleDbConnection(VFP7ConnectionDefinition) If VFP7Connection.State = ConnectionSt ...Show All
Visual Studio Express Editions Err WHile Coding!!! WITH PIC THIS TIME!!
how come how to solve this The declaration of the variable was made within the loop therfore it is not scoped properly. It can not be seen outside of the loop. In this case you should declare your variable Before the Loop...The you can use it in the loop and then again once you have stopped the loop ...Show All
SQL Server SSIS Package Execution Failed within ASP.NET Web Application
Hello All, I have a SSIS package which run well when stand-alone. However it was failed when executed from .NET web application. It just simply return Failure. Code snip below: Dim packagekgResults As DTSExecResult ......... packagekgResults = package.Execute() Environment: Windows 2003 Shared Server, IIS 6.0 Any idea Thanks in advance! Tina I have the same problem too. Please give us some feedback and possible solutions... This is a very important topic for major custom applications. Best Regards, ...Show All
Windows Forms creating a directory from .inf file
hi, i created a cab file using package & deployment wizard. dlls/ocx files are copied and registered correctly when the cab file installed from iexplorer. my question is, is it possible to create a new folder under user's windows folder as i know in .inf files 10 means windows folder, 11 means system32; but i want to put some ocx files into windows\mydir (or winnt\mydir), i tried "10\mydir" but it doesn't work. part of my .inf file is: [MyDLL.dll] file-win32-x86=thiscab RegisterServer=yes clsid={21917372-D60C-492B-AD2F-CB977D707882} DestDir=10\mydir ; <<< this doesn't work, the file installed under windows folder.. FileVersion=1,1,0,2 ...Show All
Windows Forms How to iterate through Windows Forms list box
To find the selected items in a mulit-selection list box, I have tried foreach(ListItem item in myListBox.SelectedItems) but "ListItem" is not recognized. How can I identify each of the SelectedItems in order to extract their value Thanks in advance You can use the same type you used when adding to the listbox. If you used myListBox.Items.Add("a string"), then iterate with foreach(string item in myListBox.SelectedItems). Andrej ...Show All
Visual Studio Crystal Reports for C# Express
Is Crystal Reports available for C# Express Help please. It does not come with the express versions and if you buy the full product (Crystal Reports XI release 2) it will not integrate with the express version either. You need to have at least the standard edition of visual studio 2005 to integrate full versions, and the bundled only comes with VS 2005 professional or higher editions. ...Show All
Windows Forms ToolStripRenderer
I am using the ToolStripRenderer class to apply custom styles (such as gradient background color) to toolstrip. In derived class i have overriden the OnRenderToolStripBackground method and used linear gradient brush to paint the background and it works fine. But i just want to know if doing this custom painting will affect the performance ( i.e. time taken to paint the control) that we will get without using the custom painting The code i have written in OnRenderToolStripBackground is as follows: protected override void OnRenderToolStripBackground( ToolStripRenderEventArgs eventArg ) { &nbs ...Show All
Visual Studio Express Editions error c2039
Hello people of Visual C++. I have the following error: .\mapa-semanal.cpp(9) : error C2039: 'Data' : is not a member of 'System' what's causing this error thank you for your atention. // mapa-semanal.cpp : Defines the entry point for the console application. // #include "stdafx.h" #using <mscorlib.dll> using namespace System; using namespace System::Data; using namespace System::Data::OleDb; int _tmain( int argc, _TCHAR* argv[]) { //Create the connection OleDbConnection * map = new OleDbConnection(); //Set the connection string map->ConnectionString = S " Provider=Microsoft.Jet.OLEDB.4.0; " S "Data Source=C:\\db\\map ...Show All
SQL Server radius search
I have latitude and longitude in my database, can anyone give me an sql query how I can make radius search based on that Thanks for your reply. But I am not sure if that will work for me: MyTable: has fields: ID, Zip,Lat,Long Assuming user entered UserZip=26511 and UserRadius=5miles. If these are parameters for my stored procedure, how should I write my stored procedure to return all the IDs that meet this criteria. I am not sure t if the ...Show All
