|
Your requirements statement seemed to be a bit ambiguous, so I'm not exactly sure if I nailed it.
[a-zA-Z]([a-zA-Z]|\d){0,7}\.[a-zA-Z]([a-zA-Z]|\d){0,7}
a.B wanted true is True
A6787.f9fds33 wanted true is True
v387f56.c wanted true is True
c.a546ff6 wanted true is True
234.f3455tt wanted false is False
a123,ff00f9 wanted false is False
a123..errew wanted false is False
a123.a123.a wanted false is False
Charlie
if(!curlies){ return; }
|
|
|
|
|
Sorry for the ambiguity. Your solution is exactly what I needed. Thank You!
|
|
|
|
|
I would like to know from friends that how can I enable/disable HTTP 1.1 Setting of IE programmatically.
I want to have on ActiveX control to do this trick.
Can any VB Genius help me in this regard?
Please give me tips and suggestions for develpment?
|
|
|
|
|
You would have to P/Invoke the WinINet functions InternetQueryOption and InternetSetOption to get and set the INTERNET_OPTION_HTTP_VERSION flag. You'll also need to define the HTTP_VERSION_INFO structure. In order to get and set the IE defaults for the current user that is logged in, you must use NULL for any HINTERNET handle. So don't use InternetOpen to get an HINTERNET handle.
All the docs can be found here[^].
RageInTheMachine9532
|
|
|
|
|
i wish to create a save function to save the content of a picturebox to jpg or bmp format.. anyone can help me plz... any help is greatly appreciated...
|
|
|
|
|
Look into the Save and SaveAdd methods of the Image class. You'll get the Image from the PictureBox Image property. Something like this:
Dim imgToSave As Image = PictureBox1.Image
imgToSave.Save("C:\TestImage.bmp", ImageFormat.Bmp)
You'll have to specify the full path of the filename and the ImageFormat specification.
RageInTheMachine9532
|
|
|
|
|
I'm working on a "image processing" application...
This is what I want to do...
Take a TIF file, convert to PDF with 10 dpi and add couple of texts to the bottom of the image...
This is doable in Java but I'm not familiar with Java and like to know if it can be done in .Net? if so, any ideas, sample websies would be great..
|
|
|
|
|
I'd bet a huge pile of money that you can't do that in Java out of the box any more than you can in .NET. How do you know it can be done if you don't use Java ?
You can buy components to do what you want in .NET, and if your requirements aren't too complex, there's some free stuff on source forge. I am sure that is the case for Java also.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
ex-coworker did it in Java... but she was laid off and we cant use her code anymore...
these are some of her code:
Document document = new Document(PageSize.A4, 50, 50, 50, 50);
.....
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf"));
|
|
|
|
|
eramgarden wrote:
but she was laid off and we cant use her code anymore...
Good thing you laid her off then. Smart move
eramgarden wrote:
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf"));
Yeah, what would you expect the code to look like if she's using a component that writes PDF's ?
It took me three seconds to find a PDFWriter class for Java with Google ( I did it to double check that it's not core Java ). Are you sure your ex-coworker was fired ? I reckon she ran for her life.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I'm not a Java developer..just have her code to look over and see what she's done...If I knew there's a PDFWrite class, I wouldnt be asking..I looked at the folder she gave us and didnt see such class..
There's no shame in asking and getting help..is there?
This helps a lot. Thanks.
|
|
|
|
|
|
There is not class for the PDFWriter, but it is a component installed on that machine. It would work something like an ActiveX control (a .oCX file) registered on the system. The Java code is then instantiating the PDFWriter just like and other control and passing the parameters to it.
RageInTheMachine9532
|
|
|
|
|
I did more research about PDFWriter . Someone said it comes with ADOBE. I have ADOBE on my machine and there's a folder with 2 ocx files:
C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX
PDF.ocx and AcroIEHelper.ocx
I reference PDF.ocx in my VB.Net code but I dont see any PDFWriter member for it from the dropdown box when I reference it...
is this the right ocx??
|
|
|
|
|
The PDF.OCX you found is the Acrobat READER control that you can use to view a PDF document in your own apps. It will NOT write out a PDF!
RageInTheMachine9532
|
|
|
|
|
|
I've played with a little bit of PDF stuff, though not a lot. I used PDF-Lib from www.pdflib.com. You can use the library for free, but it will display a banner across the created page.
To not know is bad.
To not wish to know is worse.
|
|
|
|
|
Hi..
i want to move two layers of images (like photoshop) above each other..
for example.. suppose i have two images, one is circle and the other is square, both images background color is transparent, i want to allow the user to move these to images above each other freely..
how to do it??
do i need just 2 pictureboxs?? and how to drag them??
thanks..
|
|
|
|
|
You probably need to create your own bitmaps and draw them yourself, or keep track of the shapes yourself and draw them yourself.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
me and a few friends are working on a system that are able to export report into other format(.xls,.doc),
it's working for the first time but after that we keep getting this error;
(FYI;we developed this system using vb6, crystal report 9.)
runtime error-
missing or out of date export dll
i've checked whether the .dll exist and i found it in windows/crystal,
we need the u2f*.dll to make this work rite?
i really need help here...
thank u in advanced!!really appreciate it!!
(hope u get my sentence, not really good in english)
|
|
|
|
|
as topic, i wan to create a normal save function to save the content of a richtextbox to a normal text file, anyone can provide the coding? any help is greatly appreciated...
|
|
|
|
|
Import the namespace System.IO using
Imports System.IO
Dim fs As FileStream = New FileStream("c:\temp.txt", FileMode.Create)
Dim strText As String = rtfMyTextbox.Text.ToString
Dim fw As StreamWriter = New StreamWriter(fs)
fw.Write(strText)
fw.Close()
fs.Close()
|
|
|
|
|
as topic, can anyone provide coding to clear a picturebox?
|
|
|
|
|
PictureBox1.Image = Nothing
RageInTheMachine9532
|
|
|
|
|
I'm trying to print on my pocket pc. I have a seiko dpu 3445 printer. I've found some driver for it but when i try it on a window ce 3.0 it works very well but when i try it on a window ce 4.20, My pocket send bytes to the printer, the connection is establish but the pocket's frozen and nothing's printing ...
Did someone have driver for that kind of printer or did someone know something about it ?
Thank You
|
|
|
|