Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.41 seconds.

  1. Replies
    5
    Views
    141

    Re: [RESOLVED] Reaaranging expression

    Actually Jemidiah, there's a difference between my solution and the solution in Wolfram Alpha.

    I make it b = -((12c - 6a) / (3 - c))

    As opposed to b = -((6a - 12c) / (c - 3))

    They give equal...
  2. Replies
    5
    Views
    141

    Re: Reaaranging expression

    Thanks for checking it.
  3. Replies
    5
    Views
    141

    Re: Reaaranging expression

    Wolfram Alpha?

    It's a question from my End of (Maths) Module exam. I submitted it last month and I don't get feedback. I was proud of that and I'm glad I was right to be proud of it...:D

    edit:...
  4. Replies
    5
    Views
    141

    [RESOLVED] Reaaranging expression

    Can someone have a look through my workings and tell me whether it's correct?

    128123

    Thanks for your help
  5. Replies
    10
    Views
    198

    VS 2010 Re: Picture semi-transparent

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    changeBrightness(PictureBox1.Image, 1.5F)
    End Sub
  6. Replies
    10
    Views
    198

    VS 2010 Re: Picture semi-transparent

    try this:



    Imports System.Drawing.Imaging

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  7. Replies
    10
    Views
    198

    VS 2010 Re: Picture semi-transparent

    If you're asking how to make a semi transparent image, try this:


    Dim img as New Bitmap("filename")
    img.MakeTransparent(Color.Red)

    This will make any red pixels transparent
  8. Thread: calculating

    by .paul.
    Replies
    4
    Views
    129

    Re: calculating

    try this:



    Dim a As Decimal = 3.5D
    Dim b As Decimal = 6.5D
    Label1.Text = (a + b).ToString("#.##€")


    Notice that I'm storing values in variables, using those variables for calculating, and...
  9. Replies
    10
    Views
    198

    VS 2010 Re: Picture semi-transparent

    The PictureBox must have it's BackColor set to Transparent.
    The image that you display in the PictureBox can have transparent areas. Through these transparent areas, you will see the PictureBox's...
  10. Replies
    10
    Views
    198

    VS 2010 Re: Picture semi-transparent

    You can set your Picturebox BackColor to Color.Transparent, and any Transparent areas will show the PictureBox Parent's BackGround. This will only work if you use a Bitmap with Transparent areas
  11. Replies
    2
    Views
    131

    VS 2013 Re: Retrieving data from XML File

    try this:



    Dim xml As XDocument = XDocument.Load("filename.xml")
    Dim allElements() As XElement = xml...<Disk>.ToArray
    MsgBox(allElements(Array.FindIndex(allElements, Function(el)...
  12. VS 2012 Re: how to make a list of color in datagridview (each row a different color)

    I saw you're still having difficulty in your other thread.
    If you want to bind the DGV, you should create the images in a loop and add them row by row to the appropriate field in your datatable...
  13. Replies
    1
    Views
    113

    Re: replace specific string vb.net

    String.Replace Method
  14. Re: How to create form with border like the tray menu or volume control

    To add to 4x2y's comment, that's not a borderless form... It's fixed3d
  15. VS 2013 Re: Searching for files in one path and if not found search in another path

    try this:



    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim paths() As String = {"path1",...
  16. VS 2012 Re: How to play 2 or more audio files at the same time ?

    I know that code will play 2 sounds simultaneously, and I've also just tested it again. No problem for me...
  17. VS 2012 Re: How to play 2 or more audio files at the same time ?

    Public Class Form1

    'Api to send the commands to the mci device.
    Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" _
    (ByVal lpstrCommand As String, ByVal...
  18. VS 2012 Re: How to play 2 or more audio files at the same time ?

    The example i showed you plays 1 sound, but you can use the API to play multiple sounds simultaneously. For each seperate sound file, use a different alias
  19. VS 2012 Re: How to play 2 or more audio files at the same time ?

    I'd recommend the mciSendString API.
    Here's an example:

    http://www.scproject.biz/Playing%20MultiMedia%20Files.php#bm2
  20. Replies
    1
    Views
    110

    Re: Add axis description to the chart

    Me.SplitContainer3.Panel1.Controls.Add(scale_desc)
  21. Re: | Adding and subtracting values depending on input |

    :Dthat code looks kinda familiar???
  22. Re: Sorting data in a combobox using the underlying data model

    The first ten thousand times were the worst. The second ten thousand times, they were the worst too. The third ten thousand times I didn't enjoy at all. After that it got worse...:D
  23. Re: [RESOLVED] Use Regex to Match Unary Operators

    try this:



    MsgBox(Regex.Replace("1+2+3", "(\d)(\+|\-)(\d)(\+|\-)(\d)", "$1 $2 $3 $4 $5"))
  24. Replies
    1
    Views
    112

    VS 2010 Re: Best way to search for records

    I'd use a custom class:



    Public Class record
    Private StartSource As Long
    Private EndSource As Long
    Public Full_path As String

    Public Sub New(ByVal path As String)
  25. VS 2012 Re: how to add rectangle with color in datagridview cell

    I don't know...
  26. VS 2012 Re: how to add rectangle with color in datagridview cell

    you've just got to open your map image in paint and identify the colors you need for each image if you want to use a separate color for each cell... Then you can fill each cell image with the colors...
  27. Replies
    7
    Views
    155

    Re: RTF Regex Question

    you certainly learned regex quickly:D
  28. Replies
    7
    Views
    155

    Re: RTF Regex Question

    Regex tutorial:

    http://regular-expressions.mobi/tutorial.html
  29. Replies
    7
    Views
    155

    Re: RTF Regex Question

    It detects the presence of an image that was pasted into a rtb.
    You'll need to explain your exact requirements.
  30. Replies
    14
    Views
    311

    VS 2013 Re: Convert list of string to string

    No one took offence to your question. We needed more information about the context you were using your code in so we could suggest an alternative, or agree it was ok. No offence taken.
  31. Replies
    14
    Views
    311

    VS 2013 Re: Convert list of string to string

    Your string.join is efficient. As it is, you can paste it into a textbox or a range of excel cells...
    I'd be concerned that your program doesn't deal with any eventuality internally within the code...
  32. Replies
    14
    Views
    311

    VS 2013 Re: Convert list of string to string

    an improvement might be possible, but it really depends what you want to use it for...
  33. Replies
    14
    Views
    311

    VS 2013 Re: Convert list of string to string

    What do you intend to do with your list(of string)?
  34. Replies
    7
    Views
    155

    Re: RTF Regex Question

    try this... I just added "|\\object" to the regex, which will detect images and objects:



    Dim pattern As String =...
  35. Re: please help me i need a project for my schoole

    Have a look in the codebank
  36. VS 2012 Re: how to add rectangle with color in datagridview cell

    you could try this:

    127963



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  37. VS 2013 Re: Is there a better method to import a text file into a DataTable?

    This works. Target CPU must be x86



    Imports System.Data.OleDb

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load...
  38. VS 2013 Re: Is there a better method to import a text file into a DataTable?

    didn't think of reading the text file with ado.net...:facepalm
  39. VS 2013 Re: Is there a better method to import a text file into a DataTable?

    There's no .AddRange method for [DataTable].Rows, and also [DataTable].Rows is readonly so you can't use the From Clause
  40. Replies
    2
    Views
    138

    VS 2012 Re: Calculation Errors

    so:

    Resident = one value
    NonResident = double

    you need to explain, where do $1.35 and $1.45 come from? where do 65.00 and 70.00 come from?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width