Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kshea

  1. kshea

    Cell color in the combox column

    Hello, I have a Combox column in the datagrid. The cell data is populated from a excel file. If the data is not in the combox drop down list, the cell color will change to red. How can I turn off this feature, not change the color? Thank you in advance!
  2. kshea

    Update datagrid combox dynamically

    Hello All, I have a datagrid with 2 column that are all combox. The data grid properties have been setup while the form are loaded. Now I want to update the data source of column 2 based on the first conlumn. Is it possible? I tried to reset column combox datasource property, but no effect. Can...
  3. kshea

    Keep selection status cross pages

    Never mind, I fixed. Thanks for asking, Jim!
  4. kshea

    Keep selection status cross pages

    Let me try to be more clear.. The first page has radio button 1 &2 which is a radio button list control. The default is radio button one gets selected. If user selects radio button two, then go to second page, I want to keep the previous selection when coming back to page one. What I did is to...
  5. kshea

    Keep selection status cross pages

    Hello All, I have a web form with 2 radio buttons in the radiobuttonlist control, this form can extends to second page and user can go from one page to another. In order to persist the radio button selection status, I persist a flag value using session/cache when loading the second page, then...
  6. kshea

    Insert Into Table

    Hi All, For example, Table A and B are identical except Table A has an extra column. 'Insert Into A Select * From B' will work. But not for all the cases. Does anyone have a clue? Thanks in advance!
  7. kshea

    Question about Interger.MAX_VALUE

    Hello All, I am trying to compare a long value with Inter.MAX_VALUE*2, like long lNum = Long.parseLong("222"); if(lNum <= (Interger.MAX_VALUE*2)) { // Do something; } But the if condition always return false. Interger.MAX*2 will give me an int, converting int to long is widen conertion and...
  8. kshea

    Disable a button in a dialog that host ActiveX control

    Hello Everyone: I have an ATL COM application. I created a dialog box (modal) that host ActiveX control (implementing class CAxDialogImpl). I tried to do disable buttons in the dialog like this: HWND hwDeleteButton = GetDlgItem(IDC_DELETEBUTTON); hwDeleteButton ->EnableWindow(FALSE); I got...
  9. kshea

    How to get HTML Doc of the open browser

    Never mind. I have solved this problem.
  10. kshea

    How to get HTML Doc of the open browser

    Hello All: I have an ActiveX control application using ATL to get the current opened browser html document using IWebBrowser2::get_Document(IDispatch **ppDisp), then use IHTMLElement, IHTMLBodyElement, IHTMLTxtRange::findText to find search item, search the keyword(s) and do highlighting and...
  11. kshea

    Access the object of an application DLL on HTML page

    Hi Everyone: I’m trying to check if an application is installed correctly while loading an HTML page. I created a CAB file (including the application DLL file) and embedded this cab file on the HTML page by using the <object >tag. I wonder if I can use VBScript to access the object in the...
  12. kshea

    How to convert some special characters

    Hello All: I have an application that navigates to a site by a URL that is dynamically created. The URL will append the user input. I need to convert some special characters such as %, #…. Does any one know any API could do it? Thank you in advance.
  13. kshea

    Put Regread code to HTML

    Thank you tsuji and PH. Your reply helps a lot. kshea
  14. kshea

    Put Regread code to HTML

    Hi All: I’m trying to check the registry value when loading an html page. Is it possible to put VBScript - RegRead coding inside HTML page? Thank you in advance
  15. kshea

    How to get regitry key value

    Hi All: I'm new to VBscript. Does anybody know how to get a registry key value? Can I use APIs like RegOpenKeyEx, RegOpenKeyEx, RegQueryInfoKey, RegCloseKey... If so, how to declare them? Thank you in advance.

Part and Inventory Search

Back
Top