|
ok I found out the problem that it gives error bcoz of the g.dispose() in the label's paint sub.
but its not showing anything in label
|
|
|
|
|
Having read up a little bit on it, it seems that this catches a lot of people out. According to MSDN, it is only good practice to Dispose of your Graphics object if you specifically Create it, and not if you receive it from another routine, such as in your control.Paint PaintEventArgs parameter. This is because there might be other routines further down the line that need that object. So there is no reason to dispose of your graphics object in this case. As to why it is not painting in the label, there is nowhere where you paint anything to the label
|
|
|
|
|
Your still not disposing the other GDI objects you're creating, like Brush and Font. If you don't dispose of those objects, you WILL eventully run the system out of resources. Like I said before, create object you're going to use over and over again once at the class level and dispose of them before your form closes.
|
|
|
|
|
your HTML tags aren't working, didn't you notice?
and multi-line code snippets deserve PRE tags, not CODE tags.
I'm not reading it the way it is now.
|
|
|
|
|
Ok, thanks a lot for all of your help, is working now, but now I want to know another thing that, is there anyway that I can copy this graphical text into clipboard and then paste into Richtextbox?
Thanks in advance.
|
|
|
|
|
mates,
I don't know where to put this question regarding crystal report but i work it in vb.net. Hopefully im in the correct forum. Anyway, if somebody could give me an idea or solution I highly appreciated.
Heres the problem:
How will i generate the crystal report to set the details regarding what the user input in form.
Example. In my form i have 2 textbox and a button.
If I input in textbox1 = 4 and textbox2 = 2. so the result is 4x2(4 by 2) in details of cr.
in report the data should 4 rows and 2 colums.
Sample data:
TG-5465444 TG-5465448
TG-5465445 TG-5465449
TG-5465446 TG-5465450
TG-5465447 TG-5465451
textbox1 = 3 and textbox2 = 1 ; 3 by 1
TG-5465444
TG-5465445
TG-5465446
i got this in access report, heres my code
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.Page = 1 Then
If mintSkipped < mintToSkip Then
With Me
.MoveLayout = True
.NextRecord = False
.PrintSection = False
End With
mintSkipped = mintSkipped + 1
End If
End If
End Sub C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Crystal Report is devided in 3 Section :
1 : Header
2 : Details
3 : Footer
If You have a repeated data (From Database) then insert the field in Details Section.
For More details you should need to learn Crystal Report.If you can think then I Can.
|
|
|
|
|
I need to open a YED.exe application when a user clicks on the .gml file in the tree view.
Now it is happening but in a separate window. I want this application to be launched in the form. Like what we have webbrowser to open many supported files.
Do we have anyother tools in VB6 so that i can launch the .exe within the Form?
Thanks,
Karthick.M
|
|
|
|
|
VB6 is no longer supported, and you would be well advised to get VB.Net. ------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
I dont have a option, I have to do it in VB6.
Please help if you knw how to.
Thanks,
Karthick.M
|
|
|
|
|
There is no native option to doing this in VB6 or VB.NET.
You have to use the Win32 function SetParent to tell the main window of the app that it's new parent is the window handle to your form other other hosting control. Google for "VB6 SetParent" for examples.
Be warned. Some applications have rendering problems when doing this and you user gets to move the application around just as if it was running on the desktop. They also get to close the app any time they want. You cannot prevent these things from happening.
|
|
|
|
|
hey
This is for outlook vba for loading a ref at outlook
Whit this you can load a reference in it whitout any manual input the only thing you need
= a refernce to let vbe work
so this is no solution if you only whant to load 1 reference
Application.VBE.ActiveVBProject.References.AddFromFile "C:\WINDOWS\system32\redemption.dll"
is there a other way at vba
or a way true c#.net or vb.net to load a ref en set active in outlook
thanks
|
|
|
|
|
There's no such thing as "setting a reference to active". And what you're doing is the only way to do it in VBA.
neverpleat wrote: or a way true c#.net or vb.net to load a ref en set active in outlook
I don't understand what you're asking. Are you asking if there is an equivilent method to doing this in C# or VB.NET?
|
|
|
|
|
Yes
if i can force this with c#.net from outside outlook
Thanks
|
|
|
|
|
Your answer isn't very complete.
You have an external application that wants to add a reference in a VBA project that's running in Outlook already?
C# has no direct equivilent. You'd have to do it the same way as you do it in the project, by calling the method on the VBE object you get in Outlook. Don't ask for examples - I don't have any. You'd have to Google for something.
|
|
|
|
|
hi
- i have outlook installed but not running
- i have written a application in c#
- i have some vba code that runs at outlook but need a reference
question 1
is there a way to let on the first run from my application to insert the reference in outlook ?
and just maby it can be done by the registry ?
Question 2
if question 1 yes
is there a way to let on the first run from my application to insert the vba code in outlook ?
-------------------------------------
i now how to check if it's the first run or not
google don't now , yet
thanksmodified on Thursday, March 4, 2010 10:21 AM
|
|
|
|
|
Why are you even setting the reference? Do you have some object that is changed out frequently that this reference is loading?
What is the reference to?
|
|
|
|
|
i realy need to have redemption.dll in the reference
and it's a easy way from doing this if i can program this ,then at next install of pc i don't need to remember that i need that reference to set on
and i'am sure it can be done the only way = how that's the question 
|
|
|
|
|
If all you're doing is trying to reinstall an Outlook VBA project if you reload your machine, the reference is saved with the project. You just need to put the project file back. Just search your user profile folder for "vbaproject.otm" and back the file up. When you reload your machine, put the file back where you found it.
|
|
|
|
|
can i force this with c#.net from outside outlook
|
|
|
|
|
I already told you, you have to invoke the method on object in VBA. You cannot get that object directly from C#.
Get an instance of the Outlook Application, then you can navigate down to where that method is. No, I don't have any examples, because I already said that i don't do Office Interop.
|
|
|
|
|
How can I add a feature of grid computing in my software whereby I can provide the computing power of my PC for grid computing. (Chat software - Digsby has done it very nicely) I want to implement a similar feature in my application.
Any ideas How to do it in visual basic
|
|
|
|
|
ssonby wrote: How can I add a feature of grid computing in my software
Let me get this straight. Are you thinking that you can just throw this kind of support into your app by making a few changes to your code, maybe a little rewrite here and there? Correct?
Look into Digipede[^], BOINC[^], as well as others, and do some Googling on the subject first. Your choice of library will be determined by each vendor's product capabilities and your requirements.
...and NO. This NOT something you can just throw into your application at the last minute as an afterthought. This is something your application has to be designed around from day 1.
|
|
|
|
|
Hi,
I have a folder structure where I create two folders under
->Test Scripts
->Test Case (Contains .HTML)
->Test Models (Contians .GML)
I am Using VB6,I am able to see All the folders and files except the .gml files in the UI Form.
When I checked the folder manually the .gml file is present.
Can Anyone help in displaying .gml files in a folder structure of a Form.
Thanks,
Karthick.M
|
|
|
|
|
Without knowing how your code is getting the list of files, it's pretty much impossible to tell you want is going wrong.
I'm just asking this question to help someone else who may help you in using VB6. I'm not one of those people.
|
|
|
|