Search results for query: *

  • Users: solfinker
  • Content: Threads
  • Order by date
  1. S

    Basic Calculation

    Hello. I want to perform the same lines of code whenever a control is modified in a form. V.gr.: Public Class Form1 Dim Inival As Double = NumUpDownInitial.Value Dim Finval As Double = NumUpDownFinal.Value Dim Result As Double Private Sub NumUpDownInitial_ValueChanged(sender...
  2. S

    Question Hidden Form

    Hello. I have an application that when executed on certain computers (laptop w8 with VS Express installed and netbook w7 with Microsoft net framework 4.5) appears on a back window - a hidden window - and there is no way for the initial form to be brought to the front. On the other hand, when it...
  3. S

    Question Print Fields

    Hello! I have a form I use to add data and I want to print labels - with my label thermal printer - of only one field from each record I have just added to my database, before closing the form, that is, from first record to last record of the recent added records. I suppose I could fill a table...
  4. S

    Question export to web

    Hello. I know this is not the right forum for web issues, but I am used to find help here, so... And you can always re-direct me to the proper forum... To the point: I use Dim sw As StreamWriter = File.CreateText ("E:\web\test1.html") For I = 0 to 90 sw.WriteLine(HT(I,0).ToString) Next...
  5. S

    Question Save form as an image

    Hello! I'd like to save a form as an image, even if the form is not active (Hide()). I have seen some code about screen capturing, but I do not know if it would work properly in this case. Thank you for your help.
  6. S

    Question Form - Subform bridge

    Hello! I need to drag data from the main form into the subform, and I don't know how to refer to the main form from the subform. I have tried: subfield1 = field1 subfield1 = Me.field1 subfield1 = frm1_field1 subfield1 = frm1.field1 subfield1 = Me.frm1_field1 subfield1 = Form_frm1.field1...
  7. S

    Question Conversion to Double

    Hello. This is very easy, but not for me! :( I have some numeric fields to compare with a number and act according to the result. But sometimes the field is missing and his value equals "" In that case I have to compare a string ("") with a number, and CDbl does not convert my empty field. I...
  8. S

    Question Bit of Logic

    Hello. I have to execute some operations according to some (4) booleans. Let's suppose the normal estate of the booleans is False, and that only one of the four booleans can be True at one time (which is not necesarily true, but the program cannot go ahead with two True values). Should I use...
  9. S

    Question Catch Select

    Hello. I am having problems with a Case statement, and my application does not stop with the following code: Try ... Catch ex As Exception Select Case MsgBox("message", MsgBoxStyle.YesNoCancel, "caption") Case MsgBoxResult.Yes...
  10. S

    Question Close & reclose

    Hello. From time to time I have an error message that says: "File already in use" and I suppose it has sth to do with the fact that I have priorly used it and it has not been properly closed. The code I use is the following, and I suppose that tmpstream.Close() is not sufficient to close my...
  11. S

    Question SaveFileDialog and export Excel

    Hello! I want to combine the SaveFileDialog with saving an Excel file. On the one hand I have the code for creating an specific excel file: Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click Dim xlApp As Microsoft.Office.Interop.Excel.Application...
  12. S

    Question Draw a line

    Hello :peaceful: I want to draw a line within a Timer_Tick, this is, a Sub within another Sub: Private Sub Timer1_Tick(ByVal Sender As Object, ByVal e As EventArgs) Handles Timer1.Tick Dim blackPen As New Pen(Color.Black, 3) e.Graphics.DrawLine(blackPen, x1, y1, x2, y2) End Sub End Sub and...
  13. S

    Question Form Values

    Hello. I have several forms with some shapes and one picturebox on them. I update the values of the shapes and the picturebox once per minute. When I open (show()) the form it takes up to 1 minute for the shapes and the picturebox to grasp the values. I mean: Whenever I open (show()) the form...
  14. S

    Question Duplicating Shapes

    Hello! I am using the straightforward code to position my shapes: Form1.OvalShape1.Top = Formdgv.dgv1(x, y).Value * 4000 + 200 and so on It happens that the shape duplicates at every Loop, when I just wanted it to move. After the first Loop I have 8 shapes, after the 2nd 16 shapes, 24 after...
  15. S

    Question Where's my form?

    I cannot find in the Solution Explorer Tree a form, but instead sth empty with a VB sign instead of a form icon. If I "Start" (execute) the solution the form appears as it is called from the code: Form8.Show(). Thank you for your help
  16. S

    Question Animation (kind of)

    I want to make an animation - animated gif, swf from adobe flash - and visualize it on a windows form before the real application starts - a kind of splash screen I suppose I can use the webbrowser and embed the animation in an html file. Is there an easier way of doing it? What do you suggest...
  17. S

    Question I don't know when Paint event

    I have two labels in form4 associated with two variables in form1: Public Class Form1 ..... Form4.Label1.Text = FormatNumber(COR8(0, 0), 4) Form4.Label2.Text = FormatNumber(COR8(4, 0), 4) ..... End Class and I also have another two labels in the same form4 associated with the same variables...
  18. S

    Question Cancelling MouseHover

    Hello! What should I do for cancelling the mousehover effect? Private Sub pbox1_Mousehover(sender As Object, e As EventArgs) Handles pbox1.MouseHover pboxCallout1.Visible = True End Sub And now, for making pboxCallout1.Visible = False without "hovering" anything else?? Thanks a lot!
  19. S

    Question Call-Out

    Hello! I'd like to make some call-outs that appear on mousehover with some information inside. The easiest way to me is using MsgBox, but as far as I know, they have a fixed and ugly layout If I use a picturebox with a nice design, I suppose I would have to put on it some labels with the...
  20. S

    Question Copy Chart

    I can copy labels, textboxes, buttons, pictureboxes, etc. from form to form, but I cannot copy a chart thus I must re-write chartareas, series, legends... Is there a short-cut for this? Thanks a lot for your help.
Back
Top