Search:

Type: Posts; User: kamakaki

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: Find max int and next max int in the same array of integers

    I didn't post again because all this time i try to solve my problem.
    Some tries didn't count the last digit (from right) and some tries was out of range.
    Another problem was the "array.size". If i...
  2. Re: Find max int and next max int in the same array of integers

    Thank you for Reply.

    Excellent code!!!! Your code do what i need. I try to understand what do the line "int ast = 0, max = arr[ast]; ast < arr.size(); max = arr[++ast])" and line "int a = ast; a <...
  3. [RESOLVED] Find max elements in unsorted array

    Hello.

    vector<int> arr{ 12 5 7 6 10 6 4 5 }

    In the above array i like to make a loop for first max value.
    Next loop will start from the above max Value position and get next max value....
  4. VS 2012 Format cell in word Table (data from datagridview)

    I create a table in .doc document from datagridview.
    The problem is in Date column.
    In datagridview i have the date "15/4/2009" (or format "d").
    When the table create in .doc document the Date...
  5. MsOf10 Re: Search and replace first char only if exist Specify chars in word

    With your help and reading for "InStr" coding i find what i need:



    For Each w In ActiveDocument.Words
    If Left(w, 1) = "A" Or Left(w, 1) = "a" Then
    If InStr(2, w, "a") Or InStr(2,...
  6. VS 2010 Re: Search and replace first char only if exist Specify chars in word

    Thanks again.
    I'm working with Ms .doc document.
    The easy way i think is how to open a word document.
    My problem is how to search. Not simple search and replace.
    Search if exist one condition...
  7. VS 2010 Re: Search and replace first char only if exist Specify chars in word

    Thank you for answer.
    I'll looking inside String Class. Its a long story.
  8. MsOf10 Re: Search and replace first char only if exist Specify chars in word

    Thank you for your post. I don't miss your post.

    I see its a simple search and replace method.
    There is no conditions like : after the first letter check if the letter "a" is in the word again....
  9. VS 2010 Search and replace first char only if exist Specify chars in word

    Hello. I Need help for this please.
    I like to:

    1. Search the "test.doc" document and get the first word and the first character of this word.

    2. If first character is = CharW(1820

    a. check...
  10. MsOf10 Re: Search and replace first char only if exist Specify chars in word

    I Have tested your code in my MS word document (VBA):


    Sub Rplay()
    For Each w In ThisDocument.Words
    If Left(w, 1) = "ά" Or Left(w, 1) = "Ά" Then
    If InStr(w, "ά") Or InStr(w, "ή")...
  11. MsOf10 [RESOLVED] Search and replace first char only if exist Specify chars in word

    I search for a vba code to do something and nothing found.
    I like to:

    1. Search a .doc document and get the first word and the first character of this word.

    2. If first character is =...
  12. VS 2010 Re: Transfer data from MySQL db (.frm, .MYD, .MYI files) to VB.net application

    Because I am not familiar with MySQL, can you give me some more informations? Lets say: some code.

    The code will copy data from MySQL files to new Database (Database1). I thing one good way is to...
  13. VS 2010 Transfer data from MySQL db (.frm, .MYD, .MYI files) to VB.net application

    I have a application. Data stored in MySQL data files .frm, .MYD, .MYI .
    Is there any way to transfer or copy data from this Database to .mdf or .sdf or what ever database in VS 2010 for VB.NET...
  14. VS 2010 Re: Switching between GridView and Details View

    I'm not a professional-just for enjoy :)
    Thanks for code. I'll try it.


    EDIT: It works. THANKS.
  15. VS 2010 [RESOLVED] Switching between GridView and Details View

    I have a Table. In Form1 i have a TableDataGridView.

    I like with double click in a Row of TableDataGridView, open a new form (Form2) with details view (of the same table) but textboxes filled by...
  16. VS 2010 Re: How to re-count my ID column after delete row

    If I understand, what I am looking for, is very hard to do.
    Maybe is not useful as I think.


    Thanks any way.
  17. VS 2010 Re: How to re-count my ID column after delete row

    After a week Google searching, i believe you :)

    However, I found a command: DBCC CHECKIDENT (YourTable, RESEED, StartNumber).

    I don't know if this do something like what i want because didn't ...
  18. VS 2010 How to re-count my ID column after delete row

    Hello.

    I Have a database with SqlCeConnection("Data Source=|DataDirectory|\Database1.sdf").

    The first column is named ID and Data type "int".
    For example i have 3 records:

    ID Name
    1 ...
  19. VS 2010 Re: [RESOLVED] GroupBox embedded in SplitContainer.Panel not Visible = True

    Yes. I Test my code without:


    frm2.Controls.Add(Gbx)


    and its OK. Thanks.
  20. VS 2010 Re: GroupBox embedded in SplitContainer.Panel not Visible = True

    I solve my problem by this code:



    Public Class Form1

    Dim frm2 As New Form2
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    ...
  21. VS 2010 Re: GroupBox embedded in SplitContainer.Panel not Visible = True

    In image you see what i want to see when i press Button1.

    Of course when the Application start you see that:
    http://i40.tinypic.com/2dalsmt.jpg
  22. VS 2010 [RESOLVED] GroupBox embedded in SplitContainer.Panel not Visible = True

    Hello.

    In Form1 I have a SplitContainer with Panels.

    In SplitContainer1.Panel2 i have a Form2 (Inherit) and a GroupBox1.

    On Form2_Load I have the code:


    Private Sub Form2_Load(ByVal...
  23. VS 2010 Re: How to resize form inside SplitContainer.Panel

    That's it. Thank you!!!!!!
  24. VS 2010 How to resize form inside SplitContainer.Panel [RESOLVED]

    Hello.
    I have a project with 2 Forms. Form1 with 2 SplitContainers and the code below to show the Form2 inside SplitContainer2.Panel2. Form2 with no borders and orange color.



    Public Class...
  25. VS 2010 Re: Modify Length of string and delete unneeded characters

    This code works fine for my case. Thanks.
  26. VS 2010 Re: Modify Length of string and delete unneeded characters

    How to combine this with my code?


    str = Replace(str, "Name", TextBox1.Text)
  27. VS 2010 [RESOLVED] Modify Length of string and delete unneeded characters

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim fso, inputFile
    Dim str As String

    fso =...
  28. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    Hello boops boops.
    Your answers are very detailed and explanatory.

    The button1 and Textbox1 are for searching between Labels.

    This help me to find e specific Label because the name or text of...
  29. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    I have this code (with above boops boops help) For searching Label.Name or Label.Text but not working. I split my form1 in two panels by SplitContainer tool. Panel1 have a button1 and a textbox1 and...
  30. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    I can't believe this. Fantastic!!!!!

    So simple and so usefully.

    Let me work with this for "if ..." and "show..." items.

    THANK YOU VERY MUCH.
  31. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    OK thanks. Give me time to do this....
  32. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    Dear boops boops i know you spent much time for me.




    Identify only rectangular polygons.



    Yes, always the map is same.
  33. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    No. No errors in code!!!

    but... when the application run, only one set blue lines are around first area of image (first set of points).
    When i click to next area of image (second set of points)...
  34. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    Thanks again for helping. My app is on good way.

    One more thing if you like to spend little more time for me.

    The blue line appears only in fist list of points.

    I think the problem is on...
  35. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    Thank you for help.

    First i have this problem:


    .....
    For Each p As Point In polygon
    " Value of type 'System.Drawing.PointF' cannot be converted to 'System.Drawing.Point'. "
    ......
  36. Replies
    15
    Views
    2,425

    VS 2010 Re: Image and mouse position

    I have find a Thread for something like what i want.

    image map in vb.net?

    WindowsApplication1.rar
    But i need one change in code.

    I have this two List of points
  37. Replies
    23
    Views
    12,519

    Re: image map in vb.net?

    Nice code.

    If someone can help for this.

    I have this two List of points


    ublic Sub New()

    Dim pts As New List(Of PointF)()
  38. Replies
    15
    Views
    2,425

    VS 2010 Image and mouse position [SOLVED]

    Hello.

    I want title help for this.

    I have a photo(Img1.bmp) with drawing of my book library.
    Each area on image (A1, A2, ...) have books.
    http://img440.imageshack.us/img440/5783/img1nc.png
    ...
  39. Replies
    10
    Views
    2,721

    VS 2010 Re: AddHandler problem

    Thanks kevin.

    I'm not a programer. I try with other people ideas to learn and make some apps for me.
    You know, I start with only to know how to make a form, after how to open another form with...
  40. Replies
    10
    Views
    2,721

    VS 2010 Re: AddHandler problem

    The solution of .Paul is better way for my project:

    Private Sub Panl_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    Dim Panl As Panel = DirectCast(sender, Panel)
    ...
Results 1 to 40 of 59
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width