User Profile

Collapse

Profile Sidebar

Collapse
SenileOwl
SenileOwl
Last Activity: Oct 22 '08, 03:36 PM
Joined: Feb 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SenileOwl
    started a topic Find the name of the element
    in XML

    Find the name of the element

    I'm very new to XML and I'm trying to find a way to refer to an elements name. The main goal is to create a table of contents.

    I am using a key to grab all of the elements that have the attribute (class='heading ')
    Code:
     <xsl:key name="TOCnames" match="//*" use="@class" />
    I then cycle through the node, displaying the name attribute. <xsl:value-of select="@name"/>.

    ...
    See more | Go to post

  • SenileOwl
    replied to SQL query in .NET with DATETIME issues
    in .NET
    yes I am using SQL. I've now decided to bag it. I cannot find the cause of the difference. So I'm using the plus one second and minus one second. Seems to work great and I'll try to solve the other problem later.
    See more | Go to post

    Leave a comment:


  • SenileOwl
    replied to SQL query in .NET with DATETIME issues
    in .NET
    Alas I don't have access to the SQL Server to use the Query Analyzer to check my query language (I assume that was the Query Analyzer you were referring to) The closest I can come to it, is calling the tables into Access and then querying it there. Unfortunately I can not use the same functions (i.e.CONVERT) as I've used in vb.net. Is this normal? Have I missed something really important?

    As for using 101 and 103. I've tried them...
    See more | Go to post
    Last edited by SenileOwl; Jul 11 '08, 10:14 PM. Reason: Clarification

    Leave a comment:


  • SenileOwl
    replied to SQL query in .NET with DATETIME issues
    in .NET
    Alas, I know what I'm doing different than everyone else, but I'm not sure why that is affecting everything. I'm also not willing to change my ways yet.

    You see, I learned to program from a "Teach yourself VB.NET programming" book. Unfortunately the book taught me that to connect to the database, I had to let .NET do it for me. So unlike the rest of the true programmers out there, I don't know how to create my connection...
    See more | Go to post

    Leave a comment:


  • SenileOwl
    replied to SQL query in .NET with DATETIME issues
    in .NET
    Thank you for your replies.

    Unfortunately, I keep getting the same thing. I tried to convert to varchar, but the table was still blank. I tried the format, but it wasn't' "a recognized function." I also tried to put the @LoginDate in '' but it quit recognizing it as a parameter. I also tried changing the parameter type to DateTime, but I still received a blank table.



    I tried < and >in...
    See more | Go to post

    Leave a comment:


  • SenileOwl
    started a topic SQL query in .NET with DATETIME issues
    in .NET

    SQL query in .NET with DATETIME issues

    I'm working in vb.net. I'm trying to create a query for a table adapter that will filter data. The query is
    Code:
    SELECT CommitteeId, CommitteePostion FROM MemberIndexApp WHERE ((UserName = @UserName) AND (LoginDate = @LoginDate))
    The table lies in a SQL Server and the LoginDate's type is DATETIME.
    Right now, the query is returning nothing. I'm fairly certain the problem lies in the DATETIME format surrounding the LoginDate. The...
    See more | Go to post
    Last edited by SenileOwl; Jul 10 '08, 04:05 PM. Reason: Clarification

  • SenileOwl
    replied to Autonumber SQL database null problems
    in .NET
    Ok, now I feel sheepish and somewhat relieved. I had changed the ID field from an autonumber to a regular number. Because the program was giving me brand new errors I didn't think about refreshing my database connection. Once I did. The errors - or at least that one - disappeared. Thanks to all who read this.
    See more | Go to post

    Leave a comment:


  • SenileOwl
    started a topic Autonumber SQL database null problems
    in .NET

    Autonumber SQL database null problems

    I'm working in VB.net 2005.

    I am trying to write some rows from one table onto a second table. The ID field in the original table is an autonumber, the field in the second table is just a regular integer. The code I've written copies all of the information over including the value of the ID field.

    When I display the new table in datagridview, I can see that for all nine rows of the new field there is a value in...
    See more | Go to post

  • SenileOwl
    replied to Display changes in dataset
    in .NET
    I know this is late and probably no one will care, but thanks for your help. I ended up getting new marching orders and took it a different route. I will be creating a table to store the data that I want about the changes, then I'll be creating a list of checkboxes, so that the user can decide exactly which changes he/she wants kept. Wish me luck!
    See more | Go to post

    Leave a comment:


  • SenileOwl
    started a topic Display changes in dataset
    in .NET

    Display changes in dataset

    I'm working in vb.NET. My program will be updating databases. However, the user does not want the program to make changes to the database until the user is ready to close the program. At which time, the user would like a short summary explaining all of the changes he/she has made to the dataset. I know I can use .haschanges() to discover if the user has made changes, but is there some way to be able to describe exactly what the user has changed...
    See more | Go to post

  • SenileOwl
    started a topic Call a Subroutine
    in .NET

    Call a Subroutine

    I'm working in Visual Basic .NET 2005

    I'm creating a program that could potentially hold 50 or more subroutines. However, I will only be calling three or four of the subroutines at a time. I would like to be able to hold the names of the subroutines I want to call inside of an array. However I don't know how to convert the string name into a form that I can call the subroutine with. This is the code that I'm trying to make work...
    See more | Go to post
    Last edited by SenileOwl; Apr 17 '08, 09:22 PM. Reason: Forgot to add the bottom

  • SenileOwl
    replied to Accessing Modules in a Different Project
    in .NET
    Well, I did discover the answer to my question. So here it is if anyone else was having a similar problem.

    I went into the properties of Cat and then went to the reference section. I then clicked on Add, and then went to the projects tab. Committee was sitting there, so I clicked on Committee. (I haven't actually tried this with a project. Instead I used a Windows Control Library, but I'm hoping they are similar, or at least...
    See more | Go to post

    Leave a comment:


  • SenileOwl
    started a topic Accessing Modules in a Different Project
    in .NET

    Accessing Modules in a Different Project

    I'm working with VB. NET 2005.

    I have created two projects that lie within the same solution. The two projects are titled Cats and Committees. Within the Cats project lies a module called ThingsThatStart WithC. Within the module is a procedure called Message.

    Is there a way to call the Message procedure(That lies within Cats) from the project Committees?
    See more | Go to post

  • SenileOwl
    replied to Tooltip for Bound ListBox and Combobox
    in .NET
    I can create a tooltip for the bound listbox and the combobox. Unfortunately, what I cannot do, is make the tooltip say what I want it to say. I want the tooltip to read the text of an item that the mouse is hovering over in both the combobox and the listbox.

    Thanks for your last response though, if I had not been able to get my tooltip started, that would have helped.
    See more | Go to post

    Leave a comment:


  • SenileOwl
    replied to Tooltip for Bound ListBox and Combobox
    in .NET
    My Application is for Windows. Is there a way to do it in Windows?
    See more | Go to post

    Leave a comment:


  • SenileOwl
    started a topic Tooltip for Bound ListBox and Combobox
    in .NET

    Tooltip for Bound ListBox and Combobox

    I'm working with Visual Basic .Net 2005

    I'm trying to create a tooltip for a bound listbox and a combobox. I want the tooltip to be of the item the mouse is hovering over. Is there an easy way to do this? I stumbled across some code that required identifying the position of the mouse in X, Y and then finding the height of each item, etc, etc. Is that going to be my best option?
    See more | Go to post

  • SenileOwl
    replied to Bound ListBox Values
    I've never actually programmed in C#, I received that code from another person, altered it as best I could to VB and ran with it. So I'm not sure I'm quite the person to ask. I will try and answer your questions, but I have also just barely started programming 3 months ago, and I'm still mostly confused by the whole thing. I would recommend creating a new post in the .NET forum. There are a lot of people who program in C# there.
    ...
    See more | Go to post

    Leave a comment:


  • SenileOwl
    replied to Bound ListBox Values
    I don't think this is quite what you wanted, but this is the code for C# that pulls the value of the item in a listbox and not the item itself, or its index or its text.

    DataRowView dr = (DataRowView)De scriptionListBo x.Items[0];
    String valueColumn = DescriptionList Box.ValueMember ;
    MessageBox.Show (dr[valueColumn].ToString());

    Are you trying to assign a value to each item in the list...
    See more | Go to post

    Leave a comment:


  • SenileOwl
    replied to Bound ListBox Values
    I tried the .NET forum and here is the answer I received, which worked. Yeah!!

    Dim anewtry As DataRowView
    anewtry = DescriptionList Box.Items(count ing)
    Dim blahblah As String
    blahblah = DescriptionList Box.ValueMember
    MsgBox(anewtry( blahblah))...
    See more | Go to post

    Leave a comment:


  • SenileOwl
    replied to Bound ListBox Values
    in .NET
    You are amazing. It worked. Here is the code I used for VB
    [code=vbnet]
    Dim anewtry As DataRowView
    anewtry = DescriptionList Box.Items(count ing)
    Dim blahblah As String
    blahblah = DescriptionList Box.ValueMember
    MsgBox(anewtry( blahblah))
    [/code]

    Thanks a ton.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...