Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Tim8w
  • Content: Threads
  • Order by date
  1. Tim8w

    Using Imap4 to access Office365 Email

    Hi, Before the company moved to Office365, we used to be able to connect to the Exchange Server using Imap4 as follows: Private Sub ReadOutlookEMail() Dim imap4 As MailServer = New MailServer(ExchangeServerName, UserName, Password, True, ServerAuthType.AuthLogin...
  2. Tim8w

    Relax or turn off constraints in your dataset

    Hi, I have created a DataSet in VB.Net. The Table it is connected to has a PrimaryKey. All works fine as long as my SQL Query is a Standard one like SELECT * from.... I want to use a GROUP BY but when I do I get "ConstraintException was unhandled" with the suggestion that I relax or turn...
  3. Tim8w

    Getting the outline of a region...

    I have a custom-shaped form created by setting the Region to an image. I want to be able to highlight the edge of the form when it has focus. To do this I believe I need to get the outline of the form and convert it to a path so I can draw a two-pixel gihlight around the edge of the form. (1)...
  4. Tim8w

    RegularExpression to convert from Fraction to decimal

    I need a RegularExpression that can convert a string from a fraction or decimal like "1/2" or "0.5" to a decimal "0.5". It needs to handle both cases. Input can be either fractional or decimal, output must be decimal...
  5. Tim8w

    DataGridViewComboBoxColumn setting SelectedIndex

    I have a DataGridViewComboBoxColumn that I allow the user to add new items to by typing in the ComboBox and hitting the 'Enter' key. That triggers CellValidating and I do the adding there by the following: cmbColumn.Items.Add(e.FormattedValue) All this works well, except that it leaves the...
  6. Tim8w

    DataGridView Deleting Selected rows...

    This is such a basic question, I'm almost emvbarassed to ask it. How do I loop through seleted rows in a DataGridView and remove the rows? I've tried this, but it doesn't work. After one row is removed, the index is all screwed up... iIndex = dgvRecipe.Rows.GetNextRow(-1...
  7. Tim8w

    Physically deleting row in OleDB

    I have the folloing code using OleDB to manipulate an Access database: Dim adpMasterRecipe As OleDb.OleDbDataAdapter Dim dsMasterRecipe As New System.Data.DataSet adpMasterRecipe = New OleDb.OleDbDataAdapter("SELECT * FROM tblMasterRecipe WHERE MasterID = @MasterID"...
  8. Tim8w

    RichTextBox Formatting

    I have a RichTextBox. I process all the formatting and everything works fine. There is an exception. When I have selected text that have two states of formatting in it, the SelectionFont member is set to Nothing. I notice that WordPad recognizes this condition and kindof greys out the affected...
  9. Tim8w

    RichTextBox.SelectAll() SelectionFont not set?

    I have a RichTextBox where part of the RichTextBox is Bold and the rest is not. If I do a SelectAll, the SelectionFont member doesn't get set. Anyone know why? In WordPad, with the identical Font and bolding set on part of the text, the SelectionFont appears to get set to the first font it...
  10. Tim8w

    Need help building Query

    I have the following three tables: ClassHeader ClassID Major TeacherClasses TeacherID ClassID StudentClasses TeacherID Major I want to select all TeacherClasses where the a given Major = ClassHeader.Major
  11. Tim8w

    Modeless Dialog Active when Modal Dialog Displayed

    Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?
  12. Tim8w

    Updating Database from DataGridView

    I have a DataGridView that was created using the wizard. I made a change to one of the column's data and I want to save the changes back to the database. Here's the simple code: Me.WHVMastersUniverseTableAdapter.MastersOnHold(Me.PreManfDataSet.WHVMastersUniverse) dgvMasters.AutoResizeColumns()...
  13. Tim8w

    VB6 ADO SQL2005 StoredProcedure adDecimal

    I am using ADO in VB6 to call a stored procedure in SQL2005. The stored procedure is looking for data as "decimal(6,5)". My data is a double in VB6. In VB6, I tried setting up the call as follows (This is right out of an ADO book): SQLCommand.Parameters.Append .CreateParameter("@Offset"...
  14. Tim8w

    XML HTTP Request

    I am using JavaScript and XML to retrieve weather data from weather.com. The script works fine when I run it from a local PC, but when I upload it to my ISP, it doesn't work. They are of little help. Here's the code: try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }...
  15. Tim8w

    CGI to count number of files in Server Side directory

    I need to count the number of files in a directory. What I really need to do is to have the directory passed in from a JavaScript function and return the number of files to the JavaScript funtion. Thanks, Tim
  16. Tim8w

    Timed Response.Redirect?

    I would like to have a timed Redirect like what you can do with the http-equiv. How do I go about doing this?
  17. Tim8w

    Drawing Text on a Form

    All I need to do is draw some text on a form at a given location. Is there a simple way to do this? Or do I have to call the gdi function DrawText? Thanks
  18. Tim8w

    Redrawing a Form BG image

    I have drawn on the Forms BG Image and would like to restore it to its previous state? Anyone know how to do this? Thanks, Tim
  19. Tim8w

    TextBox KeyPress problem

    I have a TextBox control called TextBoxTotal on my form. When I try and run the program, I get the following error: "Procedure declaration does not match description of event or procedure having the same name" Here is the sub in question Private Sub TextBoxTotal_KeyPress(KeyAscii As...
  20. Tim8w

    Capturing the Return and Esc keys...

    How do I capture the Return and Esc keys in an MFC dialog. I set a break point in PreTranslateMessage() and it never gets there. I only want the dialog to close when the close X is clicked on. Thanks, Tim

Part and Inventory Search

Back
Top