cgian31's Q&A profile
Visual Studio 2008 (Pre-release) Modal Dialog Window Always Being TopMost Window Relative to the Parent Window
Is there anyway to make a dialog window appear always on top of the parent window If you change the dialog windows ShowInTaskBar property to false and you switch applications and then switch back, your application becomes unusable. The parent window hides the dialog window and you effectively can't do anything anymore as you can't get to the dialog window. I know there is a TopMost Property that I can set, but that makes the window the absolute top window (i.e. appear on top of every window open). How would I go about making the dialog window the topmost window relative to the parent window Thanks, Kevin ...Show All
SQL Server fastest way to do large amounts of updates
I was wondering what is the fastest way to UPDATE lots of recods. I heard the fastest way to perform lots of inserts in to use SqlCeResultSet. Would this also be the fastest way to update already existing records If so, is this the fastest way to do that: 1. Create a SqlCeCommand object. 2. Set the CommandText to select the datat I want to update 3. Call the command object's ExecuteResultSet method to create a SqlCeResultSet object 4. Call the result set object's Read method to advance to the next record 5. Use the result set object to update the values using the SqlCeResultSet.SetValue method and the Update method. 6. repeat steps 4 and 5 ...Show All
SQL Server Problem When From Sequence file insert into Oracle Destination table in SSIS Package
Hi , i was used the Follwing DataFlow for my Package.using Oracle 8i FalteFile Source -------------> Data Conversion --------------->OLEDB Destination (Oracle Data table) using above control flow to map the Source file to Destination . When i run the SSIS Package teh Folwing Error i got " Truncation Occur maydue to inserting data from data flow column "columnName " with a length of 50 " regarding this Error i i understood its for happening Data Length . so that i was changed the Source Column Length Exactly Match with the The Destination table. still i am getting this Error. pls any one giv ...Show All
SQL Server Configurations
I have read many posts about configurations. However, in practice, I cannot solve a problem that is bothering me. I have connection managers (that manage SQL Server 2005 connections) configured in a local package. I have ProtectionLevel = 1 (By the way, where do you state that you want it "DontSaveSensitive", etc ). When I deploy the package to another computer (using the deployment utility) though, I get the error "The AcquireConnection method call to the connection manager ... failed". Could someone tell me, very explicitly, how can I use configurations to solve this problem Or are there other ways to solve the problem ...Show All
Visual J# how can i remove the security warning in VJ#
Hi i have a web application which is code behind html ,upgrading from vj++ to vj#.The application uses wfc control to launch it.While trying to run ,it throws a security warning saying"This page contains components that are potentially unsafe,Do u wish to continue".The process proceeds when clicking yes button otherwise it does n t move further. this security warning looks strange ,when come to internet user.So how can i remove or avoid this security warning. regards praveen Hi Praveen, You can disable this warning by the following steps, 1.Go to InternetExplorer--> ...Show All
Visual Studio Express Editions KeyDown not receiving "Enter" key event
Not receiving the "Enter" keycode in form.keydown event Hi Goal: I have a child-form with several container controls: 2 panels, 4 buttons and 1 groupbox. All these have child controls. One of the panels' child controls consists of dynamically created "PictureBox"es. When a certain action is triggered "Move" the picture boxes should be moved using the keyboard "Left" and "Right" keys. Pressing "Enter" should end the "move". Problem: I have sucessfully achieved this , by creating a new project - "Test". The test project has a "Pan ...Show All
.NET Development Generics Collections
Hello I have a list that I want to change for some of their values. Here is a very simple sample: Dictionary<int, string> list = new Dictionary<int, string>(); for (int i = 0; i < 5; i++) { list [ i ] = i.ToString(); } foreach (int i in list.Keys) { if (i > 3) { list [ i ] = "*"; } } I get this exception : "Collection was modified; enumeration operation may not execute" Thanks a lot Mohsen Changing the dictionary will invalidate the enumerator over the Keys kollection. A workaround is to do int[] keys = new int[list.Keys.Count]; ...Show All
Visual C# value in a variable for string method
Hi, The Select() method of XPathNavigator takes an XPath expression in the form of a string. I have a string type variable 'name' which needs to be given to Select() method. How should I do it name = "John"; Ideally, I should have something like XPathNavigator nav = doc.CreateNavigator(); nav.Select("/root/level1/Name[contains(.,name)]"); Instead of name variable, its value should come into the Select() method. How should I do it Thank you. This should work. nav.Select(string.Format("/root/level1/Name[contains(.,{0})]", name)); ...Show All
Smart Device Development VB 2005 Smart device HRESULT E_FAIL COM failure
Attempts to create a new smart device app with VB 2005 compiled for PC 2003 or Win CE 5.0 result in an immediate error message of: "HRESULT E_FAIL has been returned from a call to a COM component." No other info about the error A console VB app ( not smart device) can be created and compiles correctly. Easy guys, just reinstall the compact framework !! http://www.microsoft.com/downloads/thankyou.aspx familyId=9655156b-356b-4a2c-857c-e62f50ae9a55&displayLang=es i solved it by this way !! Best Regards T.S.U. Gabriel Martin V ...Show All
Visual FoxPro Additional fields in table exported to txt
Hello, I need to output from a VFP 6 table to a text file. When I use "copy to mytext.txt delimited with ," I get an additional field before and after each of the original fields from the table. This means that in my new text file, fields 1,3,4,6,7,9,10,12,13 etc are empty fields that were not present in the table and fields 2,5,8,11,14 etc are the fields with data. Can anyone tell me how to avoid these "extra" fields please Thanks in advance, Paul. It sounds Like ypu want as CSV File... Why not use " copy to mytext.txt type csv " Dave ...Show All
SQL Server I'm retarded and need help with Derived Column or Script Task
I am moving data from an oracle database to sql server. Two of the source fields are dates, which sometimes contain values I know to be incorrect ('0001/01/01' and '1900/01/01'). I'd like to use either the derived column or script task (or any other appropriate one) to update these incorrect values (in both columns) to null before inserting into sql server, smalldatetime field. In sql 2000 dts, I would simply use a VBScript IF statement, but I'm somewhat clueless when it comes to .Net. Does anyone have any ideas or sample code that may help Thank you much. I found that the WROX press book &qu ...Show All
Visual Basic Reading rtf files
Hi again, right my problem is I have made a form of writing program that can have writing bold, italics, different font etc.. My problem is when is when I read a document from my applications rtftextbox it will only show the text of the file and no form of formatting but if I save a file with bold formatting and I open the document in notepad then the document will show with the formatting. So I think there is something wrong with my read function and I was hoping someone could help me as I'd be most greatful. Example code that would do me is if I wanted to read a document(.txt or .rtf dont mind) that had bold formatting, my read/open fil ...Show All
Visual C++ How to use CContainedWindow in ATL
i want to make a control like ListView in ATL. i think i should create the control based on SysListView32. but CContainedWindow do not provide me any method to manipulate the CListCtrl, like the CListView do. so i can i add items into my control i find that CContainedWindow is actually a CContainedWindowT<CWindow>, could i simply override the typedef like: typedef CContainedWindowT<CListView> CContainedWindow i think this will make the CContainedWindow act like the CListView, is it possible Thanks you two!!! Really, especially NNTP! i dont even know we have ListView_* marcos and LVM_* messages...what a ...Show All
Visual C# System.Web.UI namesspace compile time error
I am getting this error out of "using System.Web.UI;" declaration: The type or namespace name UI does not exist in the class or namespace 'System.Web' (are you missing an assembly reference ). I am using Visual Studio 2003 C# .NET designer. My system is Win2K Pro. I want to ultimately use class TableDesigner in my application. Accoring to the .NET Framework Class Library the requirement for TableDesigner class is NAMESPACE (!) System.Web.UI.Design.WebControls. In the assembly I should have "using System.Design;" statement. When I put it in it also gives me an error of the same nature that 'Design' is not recognized in 'System ...Show All
Visual C++ simple window
So why does this @#$ty vs c# fail to run any simple source code... //************************************** // // Name: A simple window // Description:It's a simple blank windo // w that you can resize. // By: kenshin // //This code is copyrighted and has // limited warranties.Please see http:// // www.Planet-Source-Code.com/vb/scripts/Sh // owCode.asp txtCodeId=10097&lngWId=3 //for details. //************************************** // #include <windows.h> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); char szClassName[ ] = "WindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance, HINST ...Show All
