User Profile

Collapse

Profile Sidebar

Collapse
kuzen
kuzen
Last Activity: May 12 '08, 03:59 AM
Joined: Dec 18 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kuzen
    replied to Removing Apart Of String
    you probably got it already from the replies above, whatever, your code will look like this
    Code:
    string=textbox1.text.remove(47,10)
    I presume you wanted to remove char.s with indices 47-57
    the problem you're facing is caused by either the length of your textbox1.text is not 104(47+57) or even if it is, you're removing char.s with indices 47-104
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to Progess ...Message
    no, it's just a label, I called it ProgressLabel since that's what it shows
    Code:
    for i as integer=0 to 10000000
    'your analysis
    label1.text=i/100000 & "%"
    next
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to Progess ...Message
    here's how you can show that on a label, it might seem quite resource consuming but at low level progress bars and all other similar work this way I think
    Code:
    for i as integer=0 to 10000000 
    'analysis part
    ProgressLabel.Text= i*100/10000000 'or ...=i/100000 , obvious right?
    next
    and of course you might wanna use some rounding...
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to CheckListBox
    try this, should work
    Code:
    if checkedlistbox.getchecked(chekedlistbox.selectedindex) then
    ...
    end if
    See more | Go to post

    Leave a comment:


  • I didn't quite get your problem, show your code
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to Problem with Arrays
    Code:
    Public Class Form1
        Private Numbers(2,10) As Integer
        Private number As Integer
        Private UpperBound As Integer
    
        Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
            Dim sr As IO.StreamReader = IO.File.OpenText("Num.txt")
    
            For i As Integer = 0 To 19     'before there were 21 loops for 20 lines?
    ...
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to combobox multiple entry
    Code:
    dim Exists as boolean=false
    for i as integer=0 to your_combo.items.count-1 do
    if your_combo.items.item(i)=new_equipment_name then
    Exists=true;
    exit for;
    end if
    next
    
    if not Exists then
    your_combo.items.add(new_equipment_name)
    else
    msgbox("Already in the list")
    end if
    See more | Go to post

    Leave a comment:


  • IErrorInfo.GetDescription failed with E_FAIL(0x80004005).

    Hi
    Code:
    Main.Cmd.CommandText = "SELECT ID, NAME FROM NAMES;"
    Main.DA.SelectCommand = Main.Cmd
    Main.DT = New DataTable
    Main.DA.Fill(Main.DT)
    ComboBox3.DataSource = Main.DT
    ComboBox3.ValueMember = Main.DT.Columns.Item(0).ToString
    ComboBox3.DisplayMember = Main.DT.Columns.Item(1).ToString
    I get the error in the title and the debugger points to Main.DA.Fill(Ma in.DT). I change...
    See more | Go to post

  • kuzen
    replied to date format, Access 2002
    Thank you for fast reply, now it works.
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to date format, Access 2002
    Hi Stewart
    Thanks for the reply.
    Here's the query
    Code:
    SELECT C.NAME AS Имя,C.PROCESSOR AS Процессор,C.MONITOR AS Монитор,A.NAME AS Действие, P.DATE AS Дата, P.NOTES AS Замечания, U.NAME
    ...
    See more | Go to post

    Leave a comment:


  • kuzen
    started a topic date format, Access 2002

    date format, Access 2002

    Hi
    When querying data in a table on date, an error is reported stating the data types do not match (error code 3464). The column format is short date, the query considers that and how short date is expressed in my XP. What is the problem?
    Thank you
    PS. tested query samples would be great
    See more | Go to post

  • kuzen
    started a topic secured access db

    secured access db

    Hi all
    After I set a pwd for my access db so that there is no direct access, only through the application i'm developing, i can't get the connection string through a udl file. When testing the connection, it shoots an error claiming either the file is missing or has been opened exclusively by someone else. I've been told that this is a common bug of MS Office, is there any workaround you can suggest?
    Thank you
    See more | Go to post

  • kuzen
    replied to can't install Oracle 8i Client
    to Debasisdas

    Yes I do log in as the admin of the system. And the error is reported before I ever have a chance to browse and select a location for the installation other than C(I usually do that on D), still the Oracle installation application needs some place on C to put its temporary files.
    Any other ideas?
    Thanks
    See more | Go to post

    Leave a comment:


  • kuzen
    started a topic can't install Oracle 8i Client

    can't install Oracle 8i Client

    Hi
    I'm installing Oracle 8i Client on workstations connected to an Oracle server. Some PCs are not allowing installation claiming either I have no privileges or the system volume has no sufficient space for the OraInstall folder to put in the Temp folder. I am doing the work on behalf of the comp admin and there are some 8 gigs on C.
    Thanks in advance
    See more | Go to post

  • kuzen
    replied to To make dynamic labels
    in .NET
    Hi,
    I don' know what language you're using. Here is a version in VB
    Code:
            For i As Integer = 0 To n ' as many as you need
                Dim label As New System.Windows.Forms.Label
                Me.SuspendLayout()
                label.Location = New System.Drawing.Point(112, 96 + i * 96) 'you can change the location to your preference, just make sure they don't overlap 
                label.Name = "label"
    ...
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to Help on dinamic button creation
    in .NET
    I hope I did not misunderstand you
    Following is what I did in VB, seems to be working
    Code:
     
    For i As Integer = 0 To 5
                Dim Button As New System.Windows.Forms.Button
                Me.SuspendLayout()
                Button.Location = New System.Drawing.Point(112, 96 + i * 96)
                Button.Name = "Button" + i.ToString
                Button.TabIndex = 0
                Button.Text
    ...
    See more | Go to post

    Leave a comment:


  • kuzen
    replied to how to connect my oracleconnection
    in .NET
    Hi
    First of all empty field checking is a user machine process. You could use javascript, you can write it yourself or simply use visual required field validator for that.If there is an empty field, your application should never refer to the database.
    For this, check the page validity in the beginning of your button_click event:
    Code:
    If not Page.Isvalid then
    return
    else
    ....
    end if
    ...
    See more | Go to post

    Leave a comment:


  • kuzen
    started a topic Late binding
    in .NET

    Late binding

    Doing good?

    I have an arraylist my_arr where I save my objects.

    for i as integer=0 to my_arr.count-1

    label1.text+=my _arr.item(i).se t_name

    next

    It says that set_name property is not found for the type
    The problem is not in the property cuz when msgboxed it does show the name of a particular object.
    I think I just misunderstood late binding. Could u tell me what...
    See more | Go to post

  • kuzen
    started a topic Dijkstra's shortest path implementation
    in .NET

    Dijkstra's shortest path implementation

    Hi guys!
    The question actually relates to general programming, not to a certain language.
    For a driving directions application, when you compose a graph of a city with more than a thousand of points, how do you let the machine know what points are adjacent to a certain one? You know that the closest one is not necessarily directly linked. The only solution I yet see is storing successors and predecessors in the db. for each point. Or...
    See more | Go to post

  • kuzen
    started a topic missing paranthesis

    missing paranthesis

    Hi guys,
    Could you plz check this code out and tell what the problem is.
    Thanks in advance
    CREATE TABLE RESERVATIONS (
    RESERVATION_ID NUMBER(5),
    RENTER NUMBER(6),
    CAR_TYPE NUMBER(1),
    START_DATE DATE DEFAULT SYSDATE,
    FINISH_DATE DATE,
    TO_PAY NUMBER(6),
    CONSTRAINT RESERVATIONS_PK PRIMARY KEY(RESERVATION _ID),
    COSNTRAINT RESERVATIONS_FK 1 FOREIGN KEY(RENTER) REFERENCES CLIENTS(CLIENT_ ID),...
    See more | Go to post
No activity results to display
Show More
Working...