John_Wesley's Q&A profile
Visual Basic Dataviews - How to return just one column
I Have a dataview which I wish to return just one column form the Customers table, I am completely stuck on this and any pointers would be gratefully recieved > custDV = MyDataset.Tables("Customers").DefaultView Returns the full table in the dataview and I would like to create another view from this with just the CustomerID column. Thanks in advance Thanks guys for the responses, unfortunatel I am on 2003 with the earlier version of .net framework so I guess To.Table is out for me. Thanks ...Show All
Internet Explorer Development IE7 Forms Auto Complete Stopped Working
I’ve deleted by mistake the registry key: Software/Microsoft/Internet Explorer/IntelliForms/Storage1 As a result, IE7 Auto-Complete stopped working. I tried to fix the problem by recreate the deleted keys under IntelliForms: Create new Key: Storage1 Create new empty Value: C6FB044EC2BD401521D6B1082276415638196D8004 It didn’t work for me. How can cause IE7 to renew the Auto-Complete mechanism That was my ultimate solution, too. Now, all is OK. Interestingly, I also noticed that Outlook wouldn't work properly when I was having this problem with IE autocomplete. Outlook was apparently unable to manage the password for the IMAP connection to my mail ser ...Show All
Software Development for Windows Vista PerformTimerCallback called on cancelled task - bug?
I have a ListenNamedEventActivity that executes its childs in Execute(): foreach ( Activity branch in this .EnabledActivities) { branch.RegisterForStatusChange( Activity .ClosedEvent, this ); executionContext.ExecuteActivity(branch); } (each branch is a sequence activity) It cancels all other childs as soon as one completes: foreach ( Activity branch in this .EnabledActivities) { if (branch.ExecutionStatus== ActivityExecutionStatus .Initialized || branch.ExecutionStatus== ActivityExecutionStatus .Executing) executionContext.CancelActivity(branch); } executionContext.CloseActivity(); However one activity is a DelayActivity and I get the following exception after the workflow completes: Unhandled ...Show All
Visual Studio Team System Data Compare - Next Button Grayed Out
Trying to a Data Compare. After I select my 2 data sources, I go to the next screen where I select the tables/views. I can select all tables or select individual tables, but no matter what I do the Next button is grayed out. Clicking the Finish button just closes the wizard without doing anything. What am I doing wrong I am running the initial CTP that was distributed at Tech Ed. Do you the tables you are comparing have a primary key constraint or an unique index present If not we can not compare the data, because there is no order in which we can compare the rows between the two tables or views. -GertD "DataDude" Development Manager ...Show All
Windows Forms Any FormBorderStyle type without titlebar
Hey, I have no idea how I managed to get this result (it was a while since I wrote the code) but somehow I got my AboutForm, simple as can be with text and stuff, without a title bar in ANY FormBorderStyle enumeration. If I choose FixedSingle or FixedToolWindow I get a neat thin black border for example. Don't get me wrong, this is great I love it - but I can't replicate it! Nothing seems different in the public properties nor in the generated code. What have I done :) Cheers That's a pretty neat trick, you'll have to tell us how you did it when you find out. Use Spy++ to look at the style flags for the window. The WS_CAPTION style flag enables the title bar. You'd have to write code like this to turn it off: protected override Cr ...Show All
Windows Forms scrolling big image - poor performance
hello, I'm writing small graphics tool in which I need to scroll big image (approx. 5MB JPEG). I wrote control that derives from UserControl, gave it AutoScroll property and this is the point I'm stuck. after performing a scroll I must wait half a second for the control to refresh totally - what causes so bad performance image size is about 5000x5000 pixels. when I scroll the same image in Photoshop or Microsoft Paint, this problem doesn't occur. how to solve this problem no, I haven;t tried this. it's sure that memory usage is key issue here, but - as I mentioned - there are many apps that don't show this leak of performance. I have written a small app in Flash and it scrol ...Show All
.NET Development Exceptions and Invoke
Hello, I have found some problems while handling exceptions raised by methods, when the methods where invoked using the ‘Invoke’ method of the Control object. My application is a UI application but some of the UI methods are called from other threads than the thread that handles the UI (cross-thread invoke). For that reason I am using ‘InvokeRequired’ and most of the times Invoke (Synchronous invoke) to call the UI methods. The problem arises when the UI method called this way wants to handle exceptions. If I run the application inside Visual Studio (debug mode) exceptions are caught correctly as expected. If I run the application standalone, exceptions are not caught and the application sho ...Show All
Visual C# Getting applications Paths
Does the System Namespace has something like system.path I need print out the current cs files path.. because for some reason I'm trying to load some images in a program that I'm creating.. but for some reason.. It only works when I add in the full path to it. What path are you really after It's not very clear from your question. You have: System.Environment.CurrentDirectory for the current directory System.Environment.GetFolderPath(SpecialFolder specialFolder) for various system folders like My Documents, Application Data etc. System.Windows.Forms.Application.StartupPath for the path where the app's executable resides in ...Show All
Smart Device Development Legacy Win32 C/C++ Code to be used in CF
Hi, My problem is described pretty much in the title. I am using VS 2005. I have some code to use in a Pocket PC 2003 application and it is written in C/C++. What is the suggested way to do this I tried to use the DLL in a PPC project but since it is desktop DLL, i failed to do that. I tried to compile the code in a Smart Device project, i failed to do that too (couldn't find files like wincon.h, io.h, etc)...This code was written to be used in desktop applications. I think this must be a frequent problem that Smart Device developers encounter but I really couldn't find a way to solve this either through forum-search or google. Thanks for any help... Hi , "... Compile and start fixing compiler errors ..." Actually this is ...Show All
Windows Forms DataGridView Row Height DoubleLine
hallo, i want to give my CustomDataGridView a Contextmenue where the user can say the Row should be displayed in one Line / two line Mode.... i tried to handle the update from the Rows with a RowTemplate, but i think this would only work with new Rows. When i go through the Rows Collection an set each Height to the new Value this is very slow. i would be lucky for an advise Arnold Try someting like this: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Sample2 { public partial class DgvContextMenu : Form & ...Show All
Internet Explorer Development The requested look up key was not found in any activation context
Hi , I need help IN my 2003 pc i got this error when ever try to open any site (The requested look up key was not found in any activation context). any idea to the last post. your issue sounds like a memorie problem. not because you upgrade to vista. try downloading mem test or microsoft mem test. create the disk either floppy or cd. load into system and reboot pc. as for the other i am having the same problem but i only have ie 5 and it will not download any software. i was think it was viruses and / or spyware but i have run a few scans and i am not seeing anythig. don't know what is going on. and i can't get any updates to get 6 or 7. ...Show All
Visual Basic Change system time using vb.net
Does anyone know how to change the system clock using code. I want to be able to set the date and time in my code. Any thoughts Thanks!!! well yes the above does it pretty much except you need to place the code in the right place. So declare a datetime object globally as shown. Then in your plus button, add 1 hour (for example) to the datetime object stored globally: Me.theDateTime = Me.theDateTime.AddHours(1) for minus button, do the same thing but do -1 instead to take away 1 hour. Same goes for minutes, seconds, milliseconds, days, months and years. ...Show All
SQL Server SQL parameter Syntax
Guys, Wahts the right way to specify a parameter in an Execute SQL Task when the param is a varchar should I use apostrophe's around the or not I have two SQL tasks .. one where the query is specified like : WHERE FIA.BaseCurrency = Which SSIS likes and doesn't complain about...(the but then I have another query.. [below].. which SSIS complains about unless I have apostrophes around the So its like: AND FIA.BaseCurrency = ' ' So.. which should it be The problem for me here is that when I DO put the apostrophes around the I get no results back from the query... PJ The problem query: SELECT ForeignCurrency, RateFromFile AS YesterdaysRate --The ISNULL just protects us from situati ...Show All
Visual Studio Express Editions Problem with code. Y==1 not being recongnized.
Here is the full code: #include "stdafx.h" #include <iostream> #include <string> using namespace std; string username; string insert; int x=100; int y=0; int key= false ; int main() { y=0; cout << "Greetings, please enter your name. \n" ; cin >> username; cout << "Hello " << username << ", nice to meet you!" << endl; cout << "In just a few minutes you will be transported " << endl; cout << "to Island Cinder, where you will embark on " << endl; cout << "the journey of life. But first you will need ...Show All
Windows Forms About a button menu
Hi! In the toolbox theres something called "TabControl" if you choose that tool you'll get a menu with tabs, and each tab got their own page. And now here's the problem; I want to make a similar as the TabControl but instead of tabs using Buttons. So imagine i got a menu with buttons and each button got their own page. Just like this, the buttons is a menu, press one button and it shows some data: http://www.thrinker.net/button1.png and press another and it shows some other data: http://www.thrinker.net/button2.png how can i make it like that using many forms thanks! herman Hi and Thanks! I will take a look on all three sugestions. But here's another one for you, how do you make a popup Like ...Show All
