Jump to content
Xtreme .Net Talk

leazfe

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by leazfe

  1. I have the follow problem: The first time i draw the image I get a blank screen( The image stay only a half second) but the next time the image is good drawn. I have looked for a refresh method but i didn´t find it. Any help? By the way, i have to decide where i want the image to be drawn with the X and Y parameter and it is really stupid. Does anyone know another better way? The code is: Dim gr As Graphics = Me.CreateGraphics Dim bmpAs New Bitmap("image.png") gr.DrawImage(bmpUnten, 50, 150) gr.Dispose() bmp.Dispose() Thanks, Alvaro
  2. I have a couple of transparent image(.png), but when i use it (by a pictureImage control)in VB they lose this property. Does anyone know why? I have read, it was possible in VB 6 by using imageBox control but there isn´t this control in the .Net Version. Thanks, Alvaro
  3. To save a word you can use the follow expresion: (?<word>\w+) after that you will have the result in the group of your Match object: Match.Gropus("word").value If you want to save more than one word, the expresion should like : (?<desc>\w+(\s+\w+)*) In order to count how many times appears: Match.Count I hope it help you, Alvaro
  4. I have three doubt: 1. In the next expresion: (?<desc>\w+) , how can i save in "desc" all the word fitting the expresion, for example with the next source: "Hallo ich bin ich" it should keep the hole string but it only has "Hallo". 2. How can i do an if statment with regular expresion. I have a string that could have a number or not, in the event of no number exist the string "" is asigned and i get always a cast exception, i have tried something like this: (?(\d2)(?<status>\d2)|0) 3. How can i count the number of time that has appeared an expresion ? Thanks, Álvaro
×
×
  • Create New...