Topics
-
-
- Administrators
- 2 replies
- 787 views
I know I know ... this sounds stupid ... But this RTB is about to drive me nuts I have contents of an array in the rtb and I need to clear whast in the rtb so I can update it with new content but what I am getting is this lets say I have 1 2 3 I have the above for example displayed in rtb when I update the rtb I get this 1 2 3 1 2 3 Its not clearing the other text before adding evn though I am telling it to Her is my code ' Why doesnt rtbDes.text = "" get it done??????? rtbDes.Text = "" For i As Integer = 0 To myPubAr.Count - 1 rtbDes.Text = rtbDes.Text & myPubAr(i) & "......…
Last reply by vbMarkO, -
-
- 5 replies
- 3.1k views
I have a timer that updates an observablecollection<ClassA> every user defined interval (30 seconds for example). I have a Listbox databound to this collection, and pulling updates automatically works fine. I have a textbox and a button, user selects a different item in list (currently using SelectedIndexChanged), I update the textbox. Can I databind the textbox to a property of the currently selected item in my listbox?
Last reply by Nate Bross, -
- 1 reply
- 2.6k views
Is there a simple way to retrieve the size of an array? For example: If I declare a two dimensional integer array, int[,] ia = { { 1, 2 }, { 3, 4 }, { 5, 6 } }; then I would like something like ia.Size, or ia.Dimensions that returns an integer array containing 3,2. ia.Rank reveals that there are two dimensions, and ia.Length tells me that there are 6 elements, but I can't find what I want. Thanks in advance.
Last reply by cornelius1729, -
-
- Administrators
- 2 replies
- 1.5k views
I'm trying to write an interface to OpenBUGS (http://mathstat.helsinki.fi/openbugs/) from a C#.NET application. This requires accessing the unmanaged code in the dll BRugs.dll. (Header file here: http://mathstat.helsinki.fi/openbugs/Manuals/Developer/BRugs.html). I found an example of someone trying to do the same thing, but they used unsafe code, which I'd rather avoid. (See http://stackoverflow.com/questions/212155/memory-accessviolationexception-error-calling-dll-from-c) I'll show you my code so far, and then I have a couple of questions. Here's the class that deals with the interface: class BRugs { [DllImport(@"c:\Program Files\OpenBUGS\brugs.…
Last reply by cornelius1729, -
-
-
- Administrators
- 1 reply
- 581 views
definition for dataset,datatable and sqldataadaptor...
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 5 replies
- 2.1k views
I apologize if this is in the wrong place; however, I need some assistance. I am a student at ITT Tech and I had to write my own version of Conway's Game Of Life program. I got it working, I used a listbox and used the words dead or alive to represent the cells. NOW, I would like to use red and green boxes in a grid that are drawn on a panel. I have been messing with this for a roughly week now. I have a basic idea but I just cant figure out how to get the panel to REDRAW the new boxes when I click my Seed button. If you need more information please ask, I will be glad to provide any info. Public Class Form1 Dim seed As Double Dim num As Double Di…
Last reply by diabolos, -
-
-
- Administrators
- 2 replies
- 1.1k views
Need help guys as this one is kicking my rear ... I am sure I am simply over looking whats in front of me but hey ... I am here now asking for insight Here is my result of the Rss.xml sorry its so much OOOPS it said it was to much ... so the link below in the code will take you to xml so you can see what I am up against ... I fear if I dont show the whole thing I might leave out something important. Info I am needing is found within each of these blocks <content type="xhtml" xml:lang="en-US" xml:base="http://tpdblog.typepad.com/most_wanted/"> <div xmlns="http://www.w3.org/1999/xhtml"> <p> <strong>Name:</st…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 696 views
hi there hope everyone is well.i will try and explain what im trying to do here.i need to get the length of a file and the write that length into the file as an offset value i think lol.anyway this is what i have so far. Dim fileDetail As IO.FileInfo fileDetail = My.Computer.FileSystem.GetFileInfo(GetFileNameFromPath(ofd.FileName) & ".gz") Dim aLong As Long = (fileDetail.Length) Dim str As String = (BitConverter.ToString(BitConverter.GetBytes(aLong))) Dim str1 As String = (str.Replace("-", "")) Dim str2 As String = (str1.Remove(6, 10)) TextBox1.Text = str2 i want to write th…
Last reply by highboy, -
-
- 1 reply
- 894 views
I am taking a different approach here and I am not sure I can do this SInce I cant seem to figure out how to parse this web page http://www.cityoftulsa.org/divisions/divisions.aspx?div=udsw and strip the info I need from it I am looking for an alternative and thats just giving in and just display it in a webbrowser control However, I dont wish to just display the whole page If you would look at the page you will see a table appear with info .... I want to just show the table not all the white around the table does that make sense? Ok I'm not finished ..... please note that this page already refreshes itself every 60 seconds ... big woo right ... well…
Last reply by Diesel, -
- 1 reply
- 741 views
An application raises the UnhandledException event when it encounters an unhandled exception. For instance, you can use this event to ask user send you a report by email. Private Sub UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) If MessageBox.Show("Unhandled exception has occurred in My Application." + vbNewLine + "We ask you to report this error to My Company." + vbNewLine + "Would you like to send a report via email?", My.Application.Info.AssemblyName, MessageBoxButtons.YesNo, MessageBoxIcon.Error) = DialogResult.Yes Then Dim MyString As String = Nothing MyString = ("x-receiver: &…
Last reply by Diesel, -
- 2 replies
- 638 views
I'm working on a USB application that will connect to our network, run apps, etc. When the device is plugged in, it will ask for the person's name and password, and give them access to the apps if that is correct. If the credentials are wrong, I want to eject the USB drive. Certainly, I want this to work with all Windows based systems, so this will be Unmanaged Code. Also, I would at least like the credentials checking tool to run a little if the device is connected to a Mac or a Linux box - if only to say, "You can't do this here!" before disconnecting the USB drive. Does anyone know where I could go to for information on this sort of thing? I would imagine t…
Last reply by Nate Bross, -
-
- *Experts*
- 9 replies
- 11.1k views
I am working on a little application, aspx pages and web services. I use MS Access for a database. All the time I try to get the results of a query I get the following error: Could not use ''; file already in use. Exception Details: System.Data.OleDb.OleDbException: Could not use ''; file already in use Stack Trace: [OleDbException (0x80004005): Could not use ''; file already in use.] System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) System.Data.OleDb.OleDbConnection.InitializeProvider() System.Data.OleDb.OleDbConnection.Open() TimeManagement.FormLogin.Page_Transfer(Object sender, EventArgs e) in c:\inetpub\wwwroot\TimeManagement\Form…
Last reply by Krishnan, -
-
- 2 replies
- 987 views
So this is the VB forum :D As my post's title indicates, I wanna read all cells of all sheets/pages in my excel file and just show the text content of each cell. I have written my code but have 2 problems: Dim ExcelConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Excel.xls;Extended Properties=Excel 8.0;") ExcelConnection.Open() Dim MyCommands As New OleDbCommand("SELECT * FROM [sheet1$]", ExcelConnection) Dim MyReader As OleDbDataReader = MyCommands.ExecuteReader While MyReader.Read() 'How should I read cells here? End While MyReader.Close() ExcelConnection.Close() 1. How can I read cells inside the While? 2. My select command …
Last reply by OMID SOFT, -
-
- *Gurus*
- 3 replies
- 2.2k views
The application I've developed with VB.NET is watching for files in certain directory. It's been installed and tested on several boxes, and in production as well. Now I am trying to set up couple of new production boxes. The same code as before, fails to to work. That is, everything is working OK, except for picking up the file. I figure that File Created event notification fails, for some reason. Did anyone see anything similar, or any ideas about the cause?
Last reply by harshilns, -
-
-
- Administrators
- 2 replies
- 988 views
I'm developing a Desktop Search Engine in VB.NET. I'm using a ComboBox to specify the search query (string). I want the ComboBox to remember and display recent queries. I also want the ComboBox to try and Autocomplete the queries as the user is typing. What is the best way to implement this?
Last reply by Nate Bross, -
-
- 0 replies
- 1.1k views
If you have a situation where you need to have a list of "items" and then populate fields outside the list with information from the selected item, this is for you. Basic Concept Set the DataContext of a parent container control, and Databind "Up the tree." Example <Window.Resources> <ObjectDataProvider x:Key="myList" ObjectType="{x:Type YourCollection}" /> </Window.Resources> <Grid x:Name="mainGrid" DataContext="{Binding Source={StaticResource myList}}"> <ListBox IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}"> // Your DataTemplate here </ListBox> <TextBlock Text="{Binding Path=/PropertyOfColle…
Last reply by Nate Bross, -
-
- Administrators
- 8 replies
- 2.7k views
hello guys! i would like to share my problem with regards to converting my classic vb code to vb.net and one of this is my Query Function. i have this code that passes SQLStatement and returns the recordset as datareader but im having an error in reader variable and it tells me that reader has no constructors! what does this error mean? what is a constructor? how can i prevent my code from having this error? :confused: This is the code from frmUsers.vb file Imports System.Data.SqlClient Public Class frmUsers Private Sub frmUsers_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim reader As New SqlDataReader …
Last reply by dan_appleyard, -
-
- 0 replies
- 963 views
Resolved Resolved :)
Last reply by SIMIN, -
-
- Administrators
- 7 replies
- 3.2k views
Hi everyone:) As you know, from Windows Vista, user contacts are not stored in .wab files anymore... However, they are stored here: X:\Users\Your User Name\Contacts I want to CREATE / GENERATE contacts programatically and save them here in the same format. This format is very simple and is user readable. For example, this sample: <?xml version="1.0" encoding="UTF-8"?> <c:contact c:Version="1" xmlns:c="http://schemas.microsoft.com/Contact" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MSP2P="http://schemas.microsoft.com/Contact/Extended/MSP2P"> <c:CreationDate>2009-01-19T20:16:08Z</c:CreationDate><c:Extended xsi:nil="…
Last reply by SIMIN, -
-
- 1 reply
- 1.3k views
hi, there, i get the following error message whenever i try to edit a record in my application. I had the codes in Vb.net 2003. I actually used two grids in my design and a combo box. The first grid is used to display the content of my database with some columns nullable for some reasons. When any record is picked from this grid, the data are displayed in labels set up to hold such data. I also set up some textboxes for data inputs. These input data from the textboxes and the data displayed in the labels are then saved back in to the database ( the same table using sql's UPDATE statement)with the data from the text boxes to the nulled columns based on the Sql query cri…
Last reply by Nate Bross,
-
Who's Online 0 Members, 0 Anonymous, 51 Guests (See full list)
- There are no registered users currently online