Search:

Type: Posts; User: Rick H

Page 1 of 8 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    5
    Views
    1,535

    Re: VB6 OCX in C# - Mdichild form issues

    Thanks for the info - However I've tried changing the allowmergre to false and I also tried removing the MDIParent Toolbar altogether, but I've still got the same problem.

    The only solution I...
  2. Replies
    5
    Views
    1,535

    Re: VB6 OCX in C# - Mdichild form issues

    Yes, the MDIParent has a toolstrip.
  3. Replies
    5
    Views
    1,535

    VB6 OCX in C# - Mdichild form issues

    I have a graph component (ocx) written in VB6, on the graph there is a toolbar.

    I have added the graph to a C#.net application. The graph works fine with normal windows, however when its placed...
  4. Replies
    5
    Views
    902

    Re: [02/03] Simulate javascript click

    Ok, thanks for that. I'll have to give it some thought
  5. Replies
    5
    Views
    902

    Re: [02/03] Simulate javascript click

    Its reading another page
  6. Replies
    5
    Views
    902

    [02/03] Simulate javascript click

    I am converting an application that runs in VB.NET to ASP.NET (02/03)

    Part of the application, reads a webpage and simulates a click on a javascript button, in VB.net this is achived by:

    ...
  7. Re: Deleting a selected item from a ListView and Access database

    Where are you setting the db object?
    Also whats the rst for, its not used in your code
  8. Replies
    2
    Views
    532

    Store data in 2d array without 2nd index

    I have a function that reads data from a file and stores it in an array:


    For a = 0 To 15
    Get #file_no, , flash_bank_data()
    Next


    however I need to change the storage array to...
  9. Replies
    3
    Views
    698

    Re: Simulate javascript click

    I've sussed it now; for anyone else with this problem, this is the function you need:


    WebBrowser1.Document.InvokeScript("addToCart")
  10. Replies
    3
    Views
    698

    Re: Simulate javascript click

    Thanks Mendhak, I am using InternetOpen, InternetOpenUrl, InternetReadFile Api calls to read the html file, these do not have an document object.

    Can you give me a few pointers on how use the...
  11. Replies
    3
    Views
    698

    [Resolved] Simulate javascript click

    I am writing a program that does a stock check on some websites. The website uses a javascript function "addToCart"

    I have tried getting the html, then adding a call to the addToCart function in...
  12. Re: How to escape the semi-colon character in mysql

    Still no luck, I still get the "there is an error in your MYSQL syntax" message
  13. Re: How to escape the semi-colon character in mysql

    Thanks for the reply, I tried this, still no luck though
  14. How to escape the semi-colon character in mysql

    How do you escape the semi-colon character mysql?

    I am inserting data into a database using:



    INSERT INTO tbl_name (col1,col2) VALUES('hello','on error;');


    the problem lies in having an...
  15. Replies
    3
    Views
    4,754

    Inet stillexecuting issue

    I am using inet to read the html of some websites and return the data as a string. I am using the open url method.

    e.g


    html_source = Inet1.OpenURL(site_str & folder)


    The program thread...
  16. Using IFrames to redirect for search engines

    I want to change some of my files to .asp from .html. I do not have access to the .htaccess file so can not do a 301 redirect.

    I've read a META tag redirect is not a good idea as its not search...
  17. Replies
    9
    Views
    832

    Re: Can not divide in ASP!

    Thanks l12ngo, I'll try that
  18. Replies
    9
    Views
    832

    Re: Can not divide in ASP!

    I'm not sure of the type as its returned by

    Set rstFound = objConn.Execute("SELECT FOUND_ROWS() as foundrows")

    after doing a "SELECT SQL_CALC_FOUND_ROWS ...." MYSQL query
  19. Replies
    9
    Views
    832

    Re: Can not divide in ASP!

    Thats what I thought - originally I was trying to use Val() but this is not supported in ASP.

    However Cint does not do string to integer conversions, it converts a numeric expression to an...
  20. Replies
    9
    Views
    832

    Re: Can not divide in ASP!

    Fixed it! What a load of rubbish, only took me two hours


    <%
    ...
    if rstFound.bof = false then found_rows = cint(rstFound.Fields("foundrows").value)
    rstFound.Close

    page_count = found_rows /...
  21. Replies
    9
    Views
    832

    Re: Can not divide in ASP!

    Yup, the default for found_rows is zero.

    What is interesting is this works:


    if rstFound.bof = false then found_rows = rstFound.Fields("foundrows").value
    rstFound.Close

    found_rows=44...
  22. Replies
    9
    Views
    832

    Can not divide in ASP!

    This is driving me up the wall! I have been trying to get this ever so 'simple' code to work for the last hour!

    All I want to do is divide a number by 2

    this is what I have


    <%
    ...
    if...
  23. Re: Automatically close window - scheduled asp.net task

    Thanks for your help, I just wrote a simple VB6 app in the end. Its just an empty form with a timer (see below)



    Const READYSTATE_COMPLETE = 4

    Private Sub Timer1_Timer()

    Dim ie As...
  24. Re: Automatically close window - scheduled asp.net task

    I wrote the asp.net code in a text editor, therefore don't have any tools to compile a console app. I am downloading visual stuido express 2005 and will try this. Cheers
  25. Automatically close window - scheduled asp.net task

    I have written an asp.net page that takes data out of an access database and saves it into a MySQL database.

    I need to be able to set this up as a scheduled task on the server to run everyday @...
  26. Replies
    6
    Views
    896

    Re: Datagrid pages and sessions = confusion

    I want to be able to access the dataclass from another form. I thought you need the 'shared' option in order to do this?
  27. Replies
    6
    Views
    896

    Re: Datagrid pages and sessions = confusion

    The array is declared at the top of my webform


    Public Shared dataclass as Arraylist


    I am accessing this from another form using


    Webform1.dataclass
  28. Re: Slow database access over network

    Thanks Si,

    I've implemented those changes and the function runs approx 10% faster! The dbExecDirect parameter did not work though, it generated a 3001,Invalid argument error.

    Even with these...
  29. Slow database access over network [Resolved, now 10% faster!]

    I am having a problem with the peformance of the code below. This code works fine when ran locally on our LAN. But when run at our other plant it is very slow (the database is stored on our...
  30. Replies
    6
    Views
    896

    Datagrid pages and sessions = confusion

    I am developing a simple search engine but have come across a small problem with the datagrid pages (bear with me as I am a asp.net newb!)

    I collate the data to display into a structure, I then...
  31. Replies
    4
    Views
    1,016

    Re: Thread will not update textbox - Resolved

    Thanks, I'll give that a go
  32. Replies
    4
    Views
    1,016

    Re: Thread will not update textbox

    Thanks, how do you force a page refresh?
  33. Replies
    4
    Views
    1,016

    Thread will not update textbox - Resolved

    I am trying to teach myself multithreading in ASP.NET. I have created this simple example (see below) but I can not get it to work. The thread executes ok (checked with break point) but textbox1...
  34. Replies
    3
    Views
    2,538

    Re: Malformed url error when using inet

    Is the webbrowser control visual? I just need to read the html, not load the graphics in as this would be too slow.

    Cheers
  35. Replies
    3
    Views
    2,538

    Malformed url error when using inet

    I am using inet to read the html from various websites. Sometimes I get the error 'malformed url' - however if I paste this URL into a browser then the page loads fine.

    The url's in question have...
  36. Replies
    2
    Views
    875

    Inet control or similar in ASP.NET

    I want to be able to read an html page and scan through it for certain strings - I have done this before in VB6 (windows exe) using Inet. Is there a similar control or method in ASP.NET?

    Cheers
  37. Replies
    3
    Views
    511

    Re: paintpicture problem

    You need to use the scalemode propertys like this:



    Printer.ColorMode = vbPRCMMonochrome
    Printer.PrintQuality = 300
    Printer.ScaleMode = vbMillimeters
    Printer.PaintPicture picLabel.Image, 0,...
  38. Formating Date as 1st,2nd,3rd rather than 1,2,3

    How can you format the date so that you get something like

    11th Nov 11:52 rather than 11 Nov 11:52

    I want to be able to add the 'th' bit - I have looked at the format function but this does...
  39. Re: Transparent form icons at runtime

    I've finally found a solution to this!

    If you store the icon in a picturebox (set the picture property to the desired icon in the IDE) you can then change the icon at runtime and the icon's...
  40. Re: Transparent form icons at runtime

    Argghhh! This does not work in the compiled exe but works in the IDE and its a Microsoft bug!

    http://support.microsoft.com/kb/q190088/
Results 1 to 40 of 301
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width