Search results for query: *

  • Users: Blokz
  • Order by date
  1. B

    download file

    "The ContentLength property contains the value of the Content-Length header returned with the response. If the Content-Length header is not set in the response, ContentLength is set to the value -1." From the error you are getting, I would say the above applies to: ProgressBar1.Maximum =...
  2. B

    database - usernames and passwords, login to program

    This has been answered many times, in many ways. Do a search. Blokz
  3. B

    I'm a noob who needs help.....

    Hmm..since it is for a class where I assume you are suppose to be "learning" about programming, don't you think you should at least try first? If you get stuck on something, you can ask for help. How do you expect to learn? Blokz
  4. B

    some algorithms or conversion programs needed urgently!!!

    I believe JB is trying to politely tell you that "leet" speak is annoying. You should listen. Blokz
  5. B

    Calling the local PC's property on to VB.NET form

    MessageBox.Show(Environment.MachineName) Blokz
  6. B

    two-dimensional array

    I too had a hard time using more .NET methods than the old familier FileOpen types from the old VB days. I used a .split function since you advised your text file has the hour values in one line, each line being a day? Maybe I'm assuming too much. Anyway, the following reads the text file, one...
  7. B

    getting pwds for a particulat username

    I would think you want to check a particular username for a password, not the other way around. It is quite possible to have several usernames with the same password, but unlikely to have multiple instances of the same username. So, with that in mind, the logic would be like this: 1) Query the...
  8. B

    Accessing data in a Data grid grid

    Are you trying to get cell values by clicking in the datagrid? Or are you wishing to get the cell values by some other method? If its by clicking around on the datagrid, you could use the _CurrentCellChanged event of the datagrid (Winform I am assuming) like this: Private Sub...
  9. B

    Trying to fire a jscript function when clicking on Checkbox

    There is already a click event for CheckBox. It is the CheckedChanged event. You can always put code here to handle when someone clicks your checkbox. Still, if you want to put an 'onclick' event on the checkbox, you need to add it to the attributes collection for the checkbox. Something like...
  10. B

    Copying .exe file from Project

    file.copy(Application.StartupPath & "\projectname.name.exe", "C:\Program1")
  11. B

    RadioButtonList

    After you set the item you want to TRUE, disable the control by setting its .Enabled to FALSE. That should work without any problems. If it still does not, post some code showing what your testing for at page_load and how your setting the selected item. Blokz
  12. B

    Checklist box -Please Help

    In your function your return value is boolean? Are you only wanting to know if there are selected values in the CheckBoxList? If so then you should Return True inside your loop. You currently return your boolean value after End Function, which of course won't be seen. If your intention is to...
  13. B

    combobox multicolumns

    If you only want col1 to be displayed, but want to use col2 for something else when selected, you could store col2 in the .value property. Blokz
  14. B

    Reading in data from a text file

    I would agree. One of the better ways to handle an unknown array size is to use an arraylist. Blokz
  15. B

    arraylist reading?

    What kind of error are you getting? Blokz
  16. B

    Retrieve Current cell of the grid!

    Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.CurrentCellChanged MessageBox.Show("Col is " & DataGrid1.CurrentCell.ColumnNumber _ & ", Row is " & DataGrid1.CurrentCell.RowNumber _ & ", Value is " &...
  17. B

    datagrid problem

    Some code showing us how you populate the grid would be helpful. Blokz
  18. B

    Tab index problems!!

    What do you mean its not working? Can you not tab in the order you set up? Or is it doing something weird? Also, what type of controls are you trying to tab to? Many controls handle tab differently. Blokz
  19. B

    Checklist box -Please Help

    You need to iterate through each item in the checklistbox and see if it is selected. If so you could add them to, for example, and arraylist. Dim checkedItems As New ArrayList Dim i As Short For i = 0 To cblTest.Items.Count - 1 If cblTest.Items(i).Selected Then...
  20. B

    Session variables

    http://www.vbdotnetforums.com/showthread.php?t=5263
Back
Top