Search:

Type: Posts; User: fixo

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Replies
    16
    Views
    1,239

    Re: COM time - Excel issues

    Sorry, it's just a words,
    not a good terminology
    as I tell that for myself :)
  2. Replies
    16
    Views
    1,239

    Re: COM time - Excel issues

    I know but using this trick allow you silent object releasing,
    have you tried it?
  3. Replies
    16
    Views
    1,239

    Re: COM time - Excel issues

    I would use like this (see underline symbol,
    coz it used _WorkBook Interface)

    ((excel._Workbook) wb).SaveAs(xlfilename);
    wb.Close();
    then just use Marshal.FinalReleaseComObject with no problem...
  4. Re: VB.NET & Excel finding a specific string in column B

    Not sure about how it works, coz I can't rich at VStudio on my machine,
    this code is from my working library though:


    Imports System.Globalization
    Imports System.Runtime.InteropServices...
  5. Replies
    8
    Views
    9,330

    Re: DataGridView not refreshing after record added

    I use something like this

    dataGridView1.Columns.Clear()
    dataGridView1.DataSource=frmOrderNumbers.OrderNumDataSet.Tables(0)
  6. Replies
    8
    Views
    3,993

    VS 2010 Re: Split textbox data into array

    Try again

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim txtArr() As String = Me.TextBox2.Lines ''<-- change on your...
  7. Replies
    8
    Views
    3,993

    VS 2010 Re: Split textbox data into array

    Do you have a multiline text in the textbox?
    Seems in your first post there are two lines of text, isn't it?
  8. Replies
    8
    Views
    3,993

    VS 2010 Re: Split textbox data into array

    Sorry was mixing with C#, try instead, tested:


    Dim txt As String = "ThelmaMl575|FREIGHTSCLIF|172.234.155.255:62063:world:RLNngChRYc||ThelmaMl575||" & _...
  9. Replies
    8
    Views
    3,993

    VS 2010 Re: Split textbox data into array

    Try this out:

    dim myarray() as string=txtMyTextbox.text.split(new char(){'|'},stringSplitOptons.removeemptyentries)
    Not tested
  10. Replies
    5
    Views
    1,429

    2.0 Re: [RESOLVED] Displays any XML file in C#

    Glad to help
    Happy computing :)
  11. Replies
    5
    Views
    1,429

    2.0 Re: Displays any XML file in C#

    Try this one

    public partial class Form1 : Form
    {

    internal DataSet ds;

    public Form1()
    {
    InitializeComponent();
  12. Re: Like this in C# Form1.textbox1.text = from2.textbox1.text

    Here ya go:
    Form1.cs

    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }
  13. Re: Like this in C# Form1.textbox1.text = from2.textbox1.text

    I use this one often:
    http://converter.telerik.com/
  14. Re: Like this in C# Form1.textbox1.text = from2.textbox1.text

    Have you looked at this article:
    http://devcity.net/Articles/94/1/multipleforms.aspx
  15. Replies
    15
    Views
    1,740

    VS 2008 Re: remove strings from textbox ?

    Something like this ?

    Dim arr() As String = { _
    ":Gemster!Gemster@Head.Coder.Of.Raven.Script PRIVMSG ### :hello", _
    ":Gemster!Gemster@Head.Coder.Of.Raven.Script PRIVMSG ### :this is...
  16. Re: What is the fastest way to load 10000 data in datagridview?

    Perhaps use paging:
    http://msdn.microsoft.com/en-us/library/ms979197.aspx
    or create query to select just N records using "SELECT TOP N From....Where myDate Between..." etc..
  17. Replies
    5
    Views
    1,429

    2.0 Re: Displays any XML file in C#

    Perhaps problem with your XML file
    at the quick glance your code is working
    Anyway give this a shot:

    private void ImportDataFromXml(string fileName, DataGridView dgview)
    {
    try
    {
    ...
  18. Replies
    15
    Views
    1,740

    VS 2008 Re: remove strings from textbox ?

    You might want to use regular expression methods
    here is quick and dirty example but it should work

    Dim txt As String = TextBox1.Text
    If Regex.IsMatch(txt, ": char") Then
    ...
  19. VS 2010 Re: Export control data to Excel sheet/file

    Try to adopt to your suit:

    Private Sub WriteCSV(ByVal fname As String, ByVal records As List(Of String()), ByVal delimiter As String)
    Dim fs As New FileStream(fname,...
  20. Replies
    14
    Views
    2,090

    Re: excel vba solution needed

    Try this out (not tested at all,sorry)
    Just from the top of my head...

    Public Sub CopyRange()
    Dim xlRange As Range
    Set xlRange = Application.InputBox("Select cells: ", , , , , , , 8)...
  21. Replies
    4
    Views
    1,291

    VS 2008 Re: Database update/save problem

    If you use strongly typed dataset so try this

    private void saveAll()
    {
    // check changes on client side
    if (dt.GetChanges() == null)//<-- dt is datatable...
  22. VS 2010 Re: Problem with data-bound controls validation

    You could do it without extrafluous moves straightforward:

    TextBox1.Text = TextBox1.Text.Replace(","c, "."c)
    but better yet to use your own autocomplete usercontrol textbox
    wich one is supports...
  23. VS 2010 Re: Turn textbox contents into csv text

    You're welcome
    Cheers :)
  24. VS 2010 Re: Turn textbox contents into csv text

    Sorry for my bad explanation
    I mean you wanted be to use in csv file another separator, e.g, tab separated:

    For Each line As String In records
    ''i've used comma here
    ...
  25. VS 2010 Re: Turn textbox contents into csv text

    You do use Lines property of textbox to retrieve
    all text lines, then use Split function to convert
    delimited string to an array,then build strings, delimited with
    separator you'll use in csv file...
  26. Replies
    12
    Views
    1,158

    Re: Help Me: Time and Total calculation

    You might be want to look at this page
    http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx#Y2090
  27. Replies
    8
    Views
    931

    Re: save datareader to array

    Oops, agreed
    Thanks
  28. Replies
    8
    Views
    931

    Re: save datareader to array

    Your error message is exactly means that you're exceed
    a size of array, you do need to use an Array.Resize method
    to growth it up, or better yet to use List (Of String) instead
    and then populate...
  29. Replies
    6
    Views
    710

    Re: How to make a class instance public?

    Just a thoughts, let's make it friend
    I'm doing this always with no problems
    But I'm not sure about that it's a best solution
  30. Replies
    16
    Views
    10,467

    VS 2010 Re: Search Excel & return related value

    You could be use native Excel methods as well, e.g

    'Require Reference to Microsoft Excel XX.X ObjectLibrary

    Imports System.IO
    Imports Microsoft.Office.Interop.Excel
    Imports...
  31. Replies
    14
    Views
    1,979

    Re: Can anyone please write this program?

    Think your friend have a got a floor plans which was drawn
    in AutoCAD or ArchiCAD
    If so you better go to www.theswamp.org and ask in there about
    this task on .ARX or .NET section
  32. Replies
    5
    Views
    1,782

    VS 2010 Re: Load data from text file into existing table

    I think you need to do it in two steps, perhaps, i.e.

    Dim conn As OleDbConnection
    Dim connnStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyDir;Extended...
  33. Thread: Object reference

    by fixo
    Replies
    5
    Views
    1,388

    2.0 Re: Object reference

    You might be want to to call the methods of this class in Form code module something like
    SysFunctions.CreateGridColumns(etc..) but you have to check before that both classes have
    the same...
  34. Thread: Object reference

    by fixo
    Replies
    5
    Views
    1,388

    2.0 Re: Object reference

    Your code is working for me
    Seems the problem is on your 'CreateGridColumns' void,
    but I'm not sure about

    public partial class Form1 : Form
    {
    public Form1()
    {
    ...
  35. Re: how to extract links related as i type in search box and get only these doman nam

    Hi,
    Try something along this way
    you have to use your Regex pattern instead:

    Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click
    ...
  36. Thread: Writing to Excel

    by fixo
    Replies
    9
    Views
    1,142

    Re: Writing to Excel

    I wrote a quick & dummy example,
    see if this helps:

    Imports Microsoft.Office.Interop.Excel
    Imports Excel = Microsoft.Office.Interop.Excel
    '' ETC......
  37. Thread: Writing to Excel

    by fixo
    Replies
    9
    Views
    1,142

    Re: Writing to Excel

    You can try to set ScreenUpdating to false before
  38. Re: How To fetch the address of each customer from database.

    You're welcome
  39. Replies
    12
    Views
    1,366

    Re: Read data from XML into object class

    Thanks, Kevin :)
    You saved my nap time,
    I'll go away till tomorrow :)
  40. Replies
    12
    Views
    1,366

    Re: Read data from XML into object class

    Hi Neil,
    one more shot in the dark,
    create empty xml file in UTF-8 encoding and try again
Results 1 to 40 of 45
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width