Javad Khadivi's Q&A profile
Windows Forms event handling in visual basic
is there a road map to event processing in VB which events are spawned by processing other events What I am trying to accomplish. input text box corrrect data before user can continue to next input field. seemed like correct thing to do was use validating event to accomplish this. seems this event gets fired on entry to a textbox. Why would you want to validate data that is empy or almost certain to be changed. Seems this should be fired on exit not entry. did some looking about and found some sequence of events Enter, GotFocus, Validating ... created textbox which gets focus on form load, which caused Enter, GotFocus, Validating, GotFocus, Validating, GotFocus, Validating, .... The form has not even loaded and valida ...Show All
SQL Server Adding new column to Flat File Source Connection
What is the best way to deal with a flat file source when you need to add a new column This happens constantly in our Data Warehouse, another field gets added to one of the files to be imported, as users want more data items. When I originally set the file up in Connection Managers, I used Suggest File Types, and then many adjustments made to data types and lengths on the Advanced Tab because Suggest File Types goofs a lot even if you say to use 1000 rows. I have been using the Advanced Tab revisions to minimize the Derived Column entries. The file is importing nightly. Now I have new fields added to this file, and when I open the Connection Manager for the file, it does not recognize the new columns in the file unless I click Reset Fiel ...Show All
Visual C# Event NullReferenceException
I am getting a NullReferenceException when I fire an event. I know I should check for the NullReferenceException before I fire the event, but when I do that the event does not fire at all (obviously). And the event is suscribed to in another class. Any help would be appriciated, here is my code: public class Main_Configuration : System.Windows.Forms. Form { public delegate void DebugEventHandler ( string debug_message); //declare the AE Button Event Handler public event DebugEventHandler DebugMessageToRuntime; private void DIOLabel_Click( object sender, System. EventArgs e) { this .DebugMessageToRuntime( "Entering DIO Configuration Form" ); } } ...Show All
Visual C++ Hexadecimal Representation of an object?
Hi, I would like to get the hexadecimal representation of an object and display it as a String, how would this been done using C++ .Net (VS 2003) Thanks! Well yes, there are ways to do this through the marshalling classes. I've only done it in VS2005 (.Net 2.0), though. I haven't got 2003 installed now, so I can't really be of much help with an approach for that platform. My suggestion, however, is that you try searching for serializing solutions. Those are often made up by functions which retrieve the binary representation of an object. ...Show All
SQL Server Difficulty in writing a DateTime to a table
I'm developing an application in VB 2005 Express using SQL 2005 Express. I need to put a timestamp into my table each time I create a row... The following is a snippet... Dim DDate As [SqlDateTime] = Now() Dim TheQuery As String = "INSERT INTO Groups (PC_Name_Stamp, OperatorNo, Group_Type, Date_Time) VALUES ('Development', '2', 'Test',' " & DDate & " ')" Which won't work as I am attempting to concatinate a SqlDateTime into a string. My best guess is that I need to somehow to use a DEFAULT value in the table that persists so each time a row is created the datetime it was created is saved with the row, rather than being re-calculated each time the table is opened. There are probably seve ...Show All
Visual Studio Team System Can't Delete Orphaned Version Control Folder
I'm having trouble removing an orphaned version control folder. I've tried TFSDeleteProject but it returns: The project 'test' was not found on the Tfs Server. I've tried some of the tricks found in this group regarding creating the folder under the reporting service but it didn't help. I've tried recreating the Team Project under the same name without creating a source control folder so I could hopefully reattach the orphan to the Team Project to be able to delete with TFSDeleteProject but it returned: Module: Initializer Event Description: TF30207: Initialization for plugin "Microsoft.ProjectCreationWizard.VersionControl" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: Dupli ...Show All
Visual Studio Express Editions how can i program this! using vb?
1.) ********** ********* ******** ******* ****** ***** **** *** ** * 2.) * ** *** **** ***** ****** ******* ******** ********* ********** I already do that! thanks! like this structure * ** *** **** ***** and ***** **** *** ** * but i don't know! what to do this structure! ***** **** *** ** * and * ** *** **** ***** ...Show All
Visual C++ MFC Accelerators
Hello, Does anybody knows a short and easy was to manipulate a MFC application Accelerators NOT using the resources, for instance how can I make "Ctrl C" doing print instead of copy tnx I think you have the following options: Work with an accelerator table created at runtime (See "Using an Accelerator Table Created at Run Time" at http://windowssdk.msdn.microsoft.com/en-us/library/ms646337.aspx ). Find a way for saving these data in a file. For instance, try the UpdateResource function which should allow you to save the accelerators back to your EXE or DLL file. In order to apply new accelerators, try CFrameWnd::LoadAccelTable function. Do no use accelerator table but maintain your own key table ...Show All
SQL Server Encryption and query performance
I am trying to implement encryption but have run into some serious performance issues. I am required to encrypt the SSN in our database. In and of itself, this is not a problem. The problem comes in because there is also a need to be able to query the table based on the SSN. Since the SSN is encrypted, the query basically performs an index scan, decrypting each value as it goes along. As a result, the query for one record out of 10 million records in the table takes three minutes. It needs to occur immediately. If I could encrypt my SSN parameter and then compare it to the encrypted value in the column, it would work fine. Unfortunately, everytime you encrypt a particular value, the resultant encrypted value is different. Hence, I have ...Show All
Visual Studio Team System Can't get access to reports if the data source is in an other cluster
We have different clusters of SQL 2k and SQL 2k5 server instances. If the report manager (2k5) and the data source are in the same cluster - there's no problem. But if the data source is on the 2k cluster I get the following message. Fehler bei der Berichtsverarbeitung. (rsProcessingAborted) Es kann keine Verbindung mit der xx-Datenquelle hergestellt werden. (rsErrorOpeningConnection) Um weitere Informationen zu diesem Fehler zu erhalten, navigieren Sie zum Berichtsserver auf dem lokalen Servercomouter, oder aktivieren Sie Remotefehler. I'm working an a Client Computer. Hey there, Try one of the SQL forums to get an answer to your question - they definitely have more knowledge about this. This f ...Show All
Visual Studio Region Coloring
Is it possible to have #region #endregion in a different color I couldn't find it under "Tools>Options...>Environment>Fonts and Colors". ...Show All
Windows Live Developer Forums Is it possible to plot a route with no instructions?
Hi, 1. Is it possible to plot a route using map.route() and have it display with no instructions (so I can use my own custom push pins and text) 2. Is there another way to plot a route manually using a series of points and having them "attach" to local streets Thanks! To drop the current pushpins on your GetRoute you set a callback function and have to delete all pins, then add the ones you want to be on the map back again: map.GetRoute(locations[from],locations[to], VEDistanceUnit.Miles, VERouteType.Shortest, onGotRoute); function onGotRoute(route) { map.DeleteAllPushpins(); //add any pins back } John. ...Show All
Windows Forms listbox if statment
Ok, So i would like to make it so that when no one selects something from the listbox, that i can pop up something and tell them like a messagebox. Thanks in advance Forgive me. I just thinking the other question at the same time. Sorry. Markku ...Show All
Windows Forms WebBrowser Control Displays HTML Tags Instead of Formatted HTML
Problem: When passing well formed html to the webbrowser control (IE6 SP1 on Windows 2000 SP4), either via a string or a stream of characters, the control does not render (interpret) the html, but displays the raw html source. I have done some research on Microsoft's website and came across an article that described the problems that I have encountered ( http://support.microsoft.com/kb/323569/en-us ). The only surefire solution mentioned in the article is to save the HTML to a temporary file and then load that into the WebBrowser control. My client would prefer not to go this route, so I am investigating to see if anybody else has came up with a solution to this problem. Investigation Results: 1) Is the html well for ...Show All
SQL Server TRANSACTION
Hai, I want to ask about LOCKING and TRANSACTION: 1. If i want to lock a tuple when 1 user read it so the other user can't see, what should i use And how to make the lock 2. Does Implicit and Explicit Transaction really - really different in using them In the result also 3. How do i implement the LOCKING and TRANSACTION in programming language (such as VB 6) *The last question, i don't know where to ask. Is it here or in he VB forum* Thank you, Febbo 1. If i want to lock a tuple when 1 user read it so the other user can't see, what should i use And how to make the lock --That happens automatically within a DML operation, if you are updating values in the database row level lock ...Show All
