Jump to content
Xtreme .Net Talk

AlexMesquita

Avatar/Signature
  • Posts

    31
  • Joined

  • Last visited

About AlexMesquita

  • Birthday 01/31/1977

Personal Information

  • Visual Studio .NET Version
    Visual Basic .NET standard

AlexMesquita's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Is it possible? Can anyone help me with that? Thank you.
  2. How can I make my setup to look for a file and not replace this file if it exists? The file is a database file. Thank you.
  3. Hi. I need to make a script like that. Can you should? To check for those components, you can look inside the registry.
  4. How can I make a client/server application with vb.net? Can anyone show me an example?
  5. Hi. I am using a shockwave flash object control inside a form. I need to capture the mouse click on the control through vb.net. Thanks.
  6. How can I prevent a user to click inside a richtextbox?
  7. To download a full setup IE go to this site:http://www.compu-docs.com/ieadmininstall.htm , and follow the instructions.
  8. How can I get a value from a UserControl to my form? I have a a public variable inside the UserControl and I need to pass it value to a label in my form. My UserControl has a button and when I click it show a messagebox. But I guess the click event of the UseControl is not working. Why? This is my code inside my form: Private Sub UserControl_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles UserControl.Click Label1.Text = UserControl.PublicVariable End Sub
  9. How can I make a UserControl just like a combobox to display labels with color?
  10. You should use the Shockwave Flash object, because you can pass variable from flash to vb.net and vice-versa. In Visual Basic, Visual C++, and other programs that can host ActiveX controls, fscommand() sends a VB event with two strings that can be handled in the environment's programming language. To pass values to vb.net: Inside the flash movie: fscommand("Ordem", "Sair"); Inside vb.net: ... string path = System.Environment.CurrentDirectory path += @"\first.swf" axShockwaveFlash1.LoadMovie(0,path) axShockwaveFlash1.Play() ... Private Sub FlashPageTurnPri_FSCommand(ByVal sender As System.Object, ByVal e as AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent) If (e.command = "Ordem") Then End If End Sub To pass values to flash: Private Sub FlashPageTurnPri_FSCommand(ByVal sender As System.Object, ByVal e as AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent) axShockwaveFlash1.SetVariable("mc_mytext.text", "Hello Flash, greetings from .NET") End Sub To send data back to the Flash movie you just need to call the SetVariable() method on the Shockwave Flash Object and specify the name of an ActionScript variable or, as in this case, the property of a Flash object.
  11. I am using this code to paint my form with a gradient color, but when I open any window ( a messagebox, for example ), or a menu, over my Panel ( MyPanel), and close it, it draws a hole in my grandient color. Why? Dim MyobjBrush As New Drawing2D.LinearGradientBrush _ (MyPanel.DisplayRectangle, Color.AliceBlue,Color.MediumSlateBlue, _ Drawing2D.LinearGradientMode.Horizontal) Dim MyobjGraphics As Graphics = MyPanel.CreateGraphics() objGraphics.FillRectangle(MyobjBrush, MyPanel.DisplayRectangle) MyobjBrush.Dispose() MyobjGraphics.Dispose() http://www.mundo.iol.pt/alexsander/jogos.consolas/imagens/Image1.jpg The problem was solved. Instead of using MyPanel.CreateGraphics(), I should be using e.Graphics.
  12. Yes, but I don't want to use it because I can not let the user change the size of the fonts.
  13. How can I preview the fonts inside a combobox just like the fontcombo from Microsoft word? This is my code: Dim ff1 As FontFamily Dim ifc1 As New System.Drawing.Text.InstalledFontCollection For Each ff1 In ifc1.Families cboFonts.Items.Add(ff1.Name) Next
  14. How can I count how many lines exist inside a RichTextBox? Thanks.
×
×
  • Create New...