|
You want to paint this chart directly into your picturebox, right?
First you should sort the values for the single parts from high to low. Then you can paint rectangles (with GDI+) into your picturebox. For the n-th part the start-hight is the sum of all hights of the previous parts.
schachmat
|
|
|
|
|
Yes I will paint this directly into the picturebox.
Let say I have two bars, the first bar's high is 30 and the low is 10, the second bar's high is 60 and the low is 30.Now I have 2 bars I need to scale these so they fill up the chart. The 60 should be all the way to the top of the chart and the 10 should be all the way to the bottom of the chart. Let's say the chart is 300 high and 400 wide.
Hope that explains it better
Gary
|
|
|
|
|
Hi,
I am using grid in my window form.I have 1 problem.
>>How to show image in grid
I hope somebody know something.
Regards,
Nagraj
|
|
|
|
|
You can use Template column to display the image in the datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I just want to make clear that this is not asp.net page,I have problrm with VB.net windows application
I hope I am clear now.
Regards,
Nagraj
|
|
|
|
|
I am sorry I just misunderstood it. You can derive a custom columnstyle and override its Paint method to draw the image.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Basically I have saved images in sql database not I want to fetch and show them in datagrid.
So its not matter of displaying single image.
Please If u can send me some link or code then it will help me lot to understand.
Regards,
Nagarj
|
|
|
|
|
|
Hi,
I have this regular expression to read a comma delimited text file.
((?<field>[^\",\\r\\n]*)|\"(?<field>([^\"]|\"\")*)\")(,|(?<rowbreak>\\r\\n|\\n|$))
But the issue arise, when it is end of file for a SINGLE row if we give a line break, it counts as 2 rows, if we don't give a line break it counts as 6 columns, when in real there are only 5. It seems to add an extra ROW or COLUMN.
This csv file is read into a datatable - it is better to control this behaviour in datatable or something up with expression itself.
Many thanks for your time.
|
|
|
|
|
I'm not familiar with the method that you are using to read the csv. I would have thought that you would want to read one line of the csv at a time into a string. Then for each line you would split the string on the "," character to create an array. Then load the array into a datarow and add it to the table. Perhaps your way is easier, I just thought I'd give you an alternative way to do it. Could you explain your method a little more? Maybe show some of your code?
|
|
|
|
|
That is pretty much what is being done - parsing for comma, reading into array and then into a datatable.
By specify the regular expression, we specifying the exact delimiter we are looking for - it could be a tab or any other form od differentiator.
But looks - like to acknowledge the end of file - we would have to specify a end of line.
thanks.
|
|
|
|
|
Hi Friends,
I have to provision records in a Directory Server(Solaris Machine) from a client machine(Windows Machine).
The procedure followed for provisioning is
1. Open the provisioning file.
2. Read the file one subscriber record at a time.
3. provision the record in the Directory Server(DS) by providing the IP address, User name, Password and Port Number of the DS.
The Problem here is, the Server and the client are in different LANs. Each LAN have their own Proxy Servers. These two LANs must(can) be accessed via a Router.
I want to connect the Directory Server through VB.NET Code.
I am using the following code.
Dim LDAPtest As New DirectoryEntry("LDAP://192.168.0.122:389/o=TS,c=HA", "CN=sdfrun,o=TS,c=HA", "abcd", AuthenticationTypes.Delegation)
If LDAPtest.Exists("LDAP://192.168.1.9:389/o=TS,c=HA") = True Then
-->
-->
End if
If the Directory server and LDAP Client are in the single LAN my code is working fine.
If it is different LAN I am getting the following Error.
"The Server is not operational"
Please clarify.
Thanks,
Tharma
|
|
|
|
|
This has nothing to do with VB.NET or LDAP, but everything to do with the network configuration. If the LDAP server is behind a firewall/proxy, that firewall/proxy has to be configured to forward the request on to the appropriate server behind it. If it's not configured to do this, there's no way your code can get at that server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
what is "byval" in the declaration of variable in VB? and how to process an image by pixel..?
|
|
|
|
|
ByVal means the value is passed, not a reference
REad my image processing articles.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
in my windows application i need to send mail to a mail id for every one minute can any one help me how to how to solve my problem
i dont know how to write a mail program
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Allow me to teach your one of the secret techniques used by professional developers the world over. Click here[^].
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Eloquently put! That's the best "push in the right direction" yet!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
in my application i need to open an ms word application with a file name i have given
can any one help me
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Moddify this code to start the application you need
<code>
Process devenvProccess = new Process ();
devenvProccess.StartInfo.FileName = "app.exe";
devenvProccess.StartInfo.Arguments = "some argument";
devenvProccess.Start ();
</code>
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
in vb.net application in need to open an ms word file and it should contain the ms word search option
-- modified at 5:17 Tuesday 19th September, 2006
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Ask your question in the correct forum (read: Do not post programming questions (use the programming forums for that) !!! and maybe you'll get an answer
|
|
|
|
|
I don't know the reason but this is the third question posted here in continuation.. Is it just a co incidence..
Best Regards,
Apurva Kaushal
|
|
|
|
|
braejsh wrote: Do not post programming questions (use the programming forums for that)
Also, if you want solutions go to Rentacoder.
|
|
|
|