|
Hi,
I would like to implement a class that is a singleton (a class in which only one instance is allowed to exist as any given time) in visual basic 6. Does anyone know how to do this? Thanks in advance for your help.
|
|
|
|
|
I'm making a program which connects to the Internet for a miltiuser environment.I need to implement a function which connects, via Dial-up, to the Internet.
I found a code in C++ but I don't know how it can help me.
any help is much appreciated.
*** Praise none, but the Creator ***
T-break SUX
|
|
|
|
|
Hello,
I have a VB dll which is invoked from VC client. VB dll is a COM component and it displays a form to input data.
The problem is that most of the times, whenever the user clicks the mouse outside the VB dialog, the from goes nehind the vc frame.
the VB form is loaded as modal still it happens.
Any suggestions.
Regards,
Deepti.
|
|
|
|
|
Hi
(i've been askin my questions in a backwards manner) anyways
I have 2 arrays of data, One array for x-axis and one for y-axis.
How can I make a 2D Bar graph ?
Ehsan Behboudi
|
|
|
|
|
If you want it for the web, see your repeat post below and Chris's suggestion.
If it's for a Win32 client, consider using GDI+ and painting onto the form directly.
Cheers,
Simon
"From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
|
|
|
|
|
You mean in order to display it in a html page, i should save it as jpg.
If we go one step back, to making the graph it self.
How can I do that>?
Ehsan Behboudi
|
|
|
|
|
2D bar graphs on an HTML page are easy...
1 - Create a table that has as columns rows as you need data columns.
2 - Create a gfew gif images that are 1 pixel high and as wide as you need the data column to be.
3 - Figure the biggest size you need to hold all your data and create your table to hold that size.
4 - Figure each of the other data points as a percentage of the highest value.
5 - Place each of the images into the table column, and set it's height equal to the percentage of that data point to the largest number.
|
|
|
|
|
I would like to clear few things for myself:
by table,, you mean an array?
gif image is an object that i can choose,, is that correst?
Ehsan Behboudi
|
|
|
|
|
Let's back up a bit here...
What type of application are you writing?
Web app or Forms based app?
VB6 or VB.NET?
|
|
|
|
|
The application is VB
it is a forms based.
and its VB6
I basically have two arrays , one for X-axis and one for y-axis.
and all I would like to make a bar graph.
Ehsan Behboudi
|
|
|
|
|
Here is a great link to a sample that shows you ho to use the MSChart control that comes with VB.
Sample Clickety[^]
Paul Watson wrote:
At the end of the day it is what you produce that counts, not how many doctorates you have on the wall.
|
|
|
|
|
Hi,
My VB application makes a graph, I need to save the graph as a HTML file.
How can I do that?????
Thanks
Ehsan Behboudi
|
|
|
|
|
Well, if you want to save it as a HTML file, you probably want to use SVG. If you want to display it in a HTML page, save it as a jpg.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Reasonable Developer
i wanted to download the SDK of Microsoft Project, i try my best but fail(it give overview of MS Project 2002) pls help me. So nice of u
Note
i have already test it but it was just an overview of sdk whereas i have to integrate the MS Project & therefore i need to download the complete sdk, now pls try for it & if u find any solution inform me
So nice of u OK
|
|
|
|
|
Hi
I would like to know how can I make an html page in a VB application.
The HTML page has to eventually be stored in a intranet server.
Thank you
Ehsan Behboudi
|
|
|
|
|
hi
You can have your HTML content in a variable name sTemp. The insert this code where you want to create the HTML page. Here sTargetFolder is the path where the HTML files resides and concat test.html to that path. Then print that sTemp variable then close. Now check your folder.
Open sTargetFolder & "test.html" For Output As #1
Print #1, sTemp
Close #1
Hope this will help.
regards
GV
|
|
|
|
|
What are Raw Sockets and what are they used for ?
How can I enable/disable access this layer using VB.NET ?
*** Praise none, but the Creator ***
T-break SUX
|
|
|
|
|
hi
I want to count the number of lines in a asp file from a vb.net exe by giving the asp file path. How can I do this. Please advice
regards
Venkat
|
|
|
|
|
The filesystem object lets you read a file a line at a time.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I'm writing a com callable wrapper to make it possible
for vb6 developers to call the new objects written in C#.
I have trouble to pass an array of any kind from vb6 to
the .Net object.
this is the method in c#:
public string TestMethod(string[] str)
and the call in vb6 is:
str2 = secAccess.TestMethod(str)
and then i get the following compiler error:
Function or interface marked as restricted, or the
function uses an Automation type not supported in Visual
Basic.
I also tried to use [MarshalAs(UnmanagedType.SafeArray)]
in the C# call but I get the same error.
Can somebody help me with this problem.
Please send an answer to mark.willems@rabobank.com
regards,
Mark
|
|
|
|
|
I figured out what the answer is.
To be compatible with COM you should pass the array By Ref instead of By Val(which is the default in .NET).
|
|
|
|
|
Good morning community,
Visual Basic reference widely shows how to create custom commandbar controls and how to handle events from them. One of the popular ways to do this for MS Office application is to assign the "OnAction" property for a created control. (e.g. cbCtrl.OnAction = "MyActionHandler") But how is this all implemented?
I am going to provide the same functionality for my CommandBarControl object. Firstly, I thought that Visual Basic queries for OnAction property and calls the function on its own, but I was wrong - my implementation of get_OnAction was never called.
Could you please tell me about how this OnAction functionality is implemented. Thanks.
__________________
© Vitaly A. Genkin
If an application works, then the number of bugs is even.
|
|
|
|
|
I use a webbrowser contorl to navigate a page in my program. But when the page has frameset, only the first frame will be displayed in this control. So, how can I display pages with frames? Thank you.
|
|
|
|
|
Hmmm. I have have done this, but did not have any problems. Are you sure the HTML is correct? I also think that each frame is treated as a window, but dont take that to the bank. In other words, I am not sure I understand your problem. If you are trying to open an HTML file that has a tag in it the web browser control should just open it. You may want to make sure your web browser control is big enough to display all of the frames. I don't think I am helping much, but I hope it does.
|
|
|
|
|
May I know how to restrict user by launching the application only once?
When the application has been launched and not closed yet, some notification or feedback to user when he/she attempt to launch the application again.
Please help.
thanx in advance.
|
|
|
|