|
An easy way to do it is to Shell execute "mailto:someone@somewhere.com", just like you would do in a web page link...
RageInTheMachine9532
|
|
|
|
|
|
Hi,
Is there any programs or code that i can used to convert Word 2000 or Word 2002 automatically to word97?? I don't want to open every file and then save them in lower version.
Thanks!!
regards...Jeff
|
|
|
|
|
Hello,
I write shareware and at present use VB6 for my programs. I was wondering if there would ever be a time when it wouldn't be necessary to include the .NET runtime (all 20 MB) in VB .NET distributions. The size of the runtime prevents me migrating to VB .NET, because it is so impractical for small shareware programs downloaded from the Internet.
Is the runtime going to be included in future versions of Windows, for example?
Thanks,
Trimtrom
|
|
|
|
|
Yes, Windows Server 2003 already comes with the .NET Framework installed. And it looks like every new version of Windows will also come with it.
But, that won't help the millions of user who are still on Windows 98, Windows NT, 2000, and XP. They'll still have to download and install the Framework...
RageInTheMachine9532
|
|
|
|
|
trimtrom wrote:
The size of the runtime prevents me migrating to VB .NET, because it is so impractical for small shareware programs downloaded from the Internet.
When obtaining NewsGator (a .NET based RSS aggregator) from their website, they check your CLR/.NET version from the Internet Explorer version string that gets sent as part of any HTTP request, and presents the appropriate download for you. That way users with .NET already installed don't have to redownload it.
And .NET installs are more common than you might think, it seems (I've seen figures ranging from 20 to 50% of all desktops). If you have a website for distributing your apps, check your logs to see how prevalent it is yourself and decide from that.
Ian Darling
"If we've learned anything from history, it's that those who feed trolls are condemned to repetitive conversations. Or something like that." - Eric Lippert
|
|
|
|
|
Ian Darling wrote:
(I've seen figures ranging from 20 to 50% of all desktops)
Thanks for your note. That is an impressive statistic. Certainly if .NET is adopted widely I will definitely think of migrating soon.
Trimtrom
|
|
|
|
|
|
Ian Darling wrote:
And .NET installs are more common than you might think
That's true. My dad just bought a new PC and it had .NET preinstalled
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event[^].
|
|
|
|
|
Hi guys...
Looking to do a "report designer" in VB.net. Requirement comes from users struggling with Crystal reports, and wanting something simpler.
What I'm looking to do, is embed some sort of word doc editor inside a winform. Don't really want to buy a component, but would like to be able to do things like add logos, text and <<>>tagged fields which a separate component then parses and fills in...
Any ideas anyone?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I don't think the subject is the best pick.
I'll give you an example before I state my question:
-When you load VB.NET you are presented with a welcome screen.
-When you click on online help, a tab is created and you can read the help without leaving the program or window.
This is what I want to find out:
-I have already created the program and developed a customized, working tab sheet in my SDI application. I want to present a welcome screen, tutorial, help, etc on this tab.
-Do I create the documents in WORD and embed them somehow? Are they XML or preprogrammed line for line using labels?
There's got to be a solution! Please help!
Phil
|
|
|
|
|
I have written an add-in using VB.NET. Yipeee! OK, I've calmed down now!
My add-in inserts some code which I wrap in a #region declaration and I want to automatically collapse the region to hide the generated code to keep the developers code in view as much as possible.
Has anybody done this? I have tried using the Collapse and OutlineSection but I dont know if I am setting myself up in the text selection object correctly...
' Get a text object
Dim lText As TextSelection = CType(applicationObject.ActiveDocument.Selection, TextSelection)
' Move to the beginning of the document so we can iterate over the whole thing.
lText.StartOfDocument()
If lText.FindPattern(mRegionHeader) Then
lText.WordLeft()
lText.OutlineSection()
lText.Collapse()
End If
Any ideas would be warmly welcomed.
Nursey
|
|
|
|
|
Hi,
How can I send a word document object from server to client thru remoting architecture.
I am using word object model for word 2003 in vb.net.
Actually, from client side, if I pass a .net type like Datatable or dataset etc to server by reference and on server side, i manipulate it, then the effects are reflected on client side very well.
I create a word.document object on client side, and send to server. On server side, I do some manipuation on it and return. Then on client side, the object becomes {System.Runtime.Remoting.Proxies.__TransparentProxy}.
I dont know what going wrong somewhere.
Any help is greatly appreciated.
Thanx
Sandeep
|
|
|
|
|
Hi,
How can I send a word document object from server to client thru remoting architecture.
I am using word object model for word 2003 in vb.net.
Actually, from client side, if I pass a .net type like Datatable or dataset etc to server by reference and on server side, i manipulate it, then the effects are reflected on client side very well.
I create a word.document object on client side, and send to server. On server side, I do some manipuation on it and return. Then on client side, the object becomes {System.Runtime.Remoting.Proxies.__TransparentProxy}.
I dont know what going wrong somewhere.
Any help is greatly appreciated.
Thanx
Sandeep
|
|
|
|
|
Please show me how can I do when after running the program receive an error message that program finished with code 0
|
|
|
|
|
Are you saying tht you're spawning an external program and waiting for the return code from that program or are you trying to set the return code when your app terminates?
RageInTheMachine9532
|
|
|
|
|
if you are using VB6, you want to use the ExitProcess API call
Private Declare Sub ExitProcess Lib "KERNEL32" (ByVal uExitCode As Long)
normal end:
ExitProcess 0
useful if you run your app from a batch file or shell and wait for it to finish from another app
|
|
|
|
|
Hi All,
I am making an Add-In for Word using VB. I have made a file menu option and a Toolbar. in File menu option I added a CommandBarButton. In Toolbar also, I add a button (same as for file menu option).
I am using a gif file as an image for the buttons. To add the transparent image on to the button, I am using the code of MSDN. The code is working fine for all the OS except Windows 98/ME. In these OS the image comes with the white background.
My image have the transparent background.
Does anybody have any idea about it ?
Please reply soon.
Thanks and Regards
|
|
|
|
|
Hi,
Any idea how to get this? I've tried searching @ http://research.microsoft.com without success. Latest version if possible but any other will be appreciated. Thanx
1fm1fu
|
|
|
|
|
There is no source code for the ".NET Framework" as you put it. But, what I think your actually looking for is the Shared Source for the Common Language Infrastructure and SOME source for the C# compiler. This can be found here[^].
RageInTheMachine9532
|
|
|
|
|
Can someone PLEASE tell me why this won't work?
******** Declarations ******** <br />
<pre>Private Declare Auto Function BitBlt Lib "GDI32.DLL" ( byVal hdcDest As IntPtr, ByVal nXDest As Integer, _<br />
ByVal nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hdcSrc As Long, ByVal <br />
nXSrc As Integer, ByVal nYSrc As Integer, ByVal dwRop As Int32) As Boolean<br />
<br />
Private Declare Function LoadImage Lib "user32" Alias "LoadImageA" (ByVal hInst As Long, ByVal lpsz As String, _ <br />
ByVal dwImageType As Long, ByVal dwDesiredWidth As Long, ByVal dwDesiredHeight As Long, ByVal dwFlags As Long) As Long<br />
<br />
Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long<br />
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long<br />
<br />
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long<br />
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long</pre><br />
<br />
******** Consts ******** <br />
<pre>Private Const LR_LOADFROMFILE = &H10<br />
Private Const IMAGE_BITMAP = 0<br />
Private SRCCOPY as Integer = &HCC0020</pre><br />
<br />
<br />
******** Sub that won't work ******** <br />
<pre> Private Sub ShowPicture(ByVal File As String)<br />
Dim MemBmpHandle As Long<br />
Dim MemHdc As Long<br />
Dim Result As Long<br />
'<br />
MemBmpHandle = LoadImage(0, File, IMAGE_BITMAP, 776, 84, LR_LOADFROMFILE)<br />
MemHdc = CreateCompatibleDC(0)<br />
Result = SelectObject(MemHdc, MemBmpHandle)<br />
' <br />
Dim Grp As Graphics = PictureBox1.CreateGraphics ' Creating graphics object to BitBlt on<br />
Dim TargetDC As IntPtr = Grp.GetHdc() 'Creating target HDC<br />
'<br />
BitBlt(TargetDC, 0, 0, 776, 84, MemHdc, 0, 0, SRCCOPY) ' Blitting'<br />
<br />
Grp.ReleaseHdc(TargetDC)<br />
Grp.Dispose()<br />
DeleteDC(MemHdc)<br />
DeleteObject(MemBmpHandle)<br />
End Sub
Fade (Amit BS)
|
|
|
|
|
I want to create one primary solution that uses multiple projects
like 1 application and some class libraries,
now when i tried to add the projects into the solution they all load up but i can use the namespaces between the projects, why is that?
Note that i can easily use the *.dll files by refference but i want to use it all through code...
by the way, i have set all of the projects' Root Namespace setting to the same name space.
please help here, thanx
Fade (Amit BS)
|
|
|
|
|
I got this solved, for anyone who wounders this is the deal:
you add the projects to the solution (right-click the solution and then 'add'->'Existing Project'
then you have to create a refference.
what i didn't notice before that in the 'Add Reference' dialog there is a 'Projects' Tab, you add a refference to the project from there, and the IDE will automatically create a dependancy.
Another thing to notice, click on the project reference item, and in the properties window there is a 'Copy Local' property, i think that it's best to set this proerty to 'False'.
That worked for me just great, namespace work and everything.
Hope this will help someone
Fade (Amit BS)
|
|
|
|
|
Now this is a tricky one, as i am puzzeled about this,
i got BitBlt all figured out, i even wrote an article on how to use it HERE[^]
BUT!
It won't work if the source is not on the screen itself
you cannot use this code:
Dim tmpBitmap as new BitMap(...,...,)<br />
tmpGraphics = Graphics.FromImage(tmpBitmap) < graphics object
Now- Drawing to the Bitmap
tmpGraphics.DrawString("Hellow World!",myFont,myBursh,0,0)
Now Bliting
tmpHdc = tmpGraphics.GetHdc() < create a device context
BitBlt (TargetHdc ... tmpHdc )
it just wont work, it treats the source Hdc as an empty area in the memory, getting a blank image.
Note that if i'm coping from a context that is on the screen everything is working just fine, and then i can use the context in memory to copy to and from, but if i want the originating image to be created in memory and then use it? i don't like the idea of loading and drawing images to the screen in order for me to use them
Nothing worked for me and i have tried a lot of things.
You can download the code i'm using to BitBlt things, it's a class i worte, again here[^] it copies and pastes.
Any Ideas?
Fade (Amit BS)
Fade (Amit BS)
|
|
|
|
|
Hi,
This is my first post since I signed up today.
I would like to know as how should I proceed if I need to create a system tray in VB so that it can connect to my website.
You can see an example here of a similar software here:
http://www.helpcenterlive.com/winapp.php
The author of the program has created it to communicate with the Web Based live support system which he himself has developed.
I have downloaded the file and it contains files with extensions :
*.ocx
and found out following about the extension at:
http://filext.com/detaillist.php?extdetail=OCX
I would like to know if this could be achieved in VB. I have a site which is a Content Management Site and I would like to connect it with the program on my windows so that I can note as how many members have joined and how many stories have been published without opening up the browser.
Also, can you point me to the right direction as how to develop a Toolbar for a website which would run in IE browser such as Google Toolbar.
I have done programming in VB6 and Database programmingin pl/sql.
How different is VB .NET from VB6?
|
|
|
|
|