|
Hi Paul,
I've built the exe successfully.
Thank you so much for the help
Thanks a lot,
Vidhya Sagar
|
|
|
|
|
hi
in gdi+ we have gdipStrokepath to make one pixel(unit) width edge of a path(text).
is there any api for draw text with any font and size ,but only one pixel width font?
for exam. create one pixel pen ...??
thanx
|
|
|
|
|
You can get the path that represents a string or a letter. Then you can draw it n the manner that I think you're after.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sorry i need a clear answer.
i already do it with a thinning algorithm , but if you work with Strokepath (gdi32) you find it very fast and easy.
i want to know is there a way to create one pixel width pen and draw text with this pen ?
-- modified at 7:11 Thursday 11th October, 2007
|
|
|
|
|
I think what Christian said was that in order for that to happen, you'd have to get the outline description of each character, create your pen, and draw each character outline yourself.
|
|
|
|
|
sorry ,i think there is a misunderstood...
for outlining i have not any problem.
when you draw text in a picturebox for example ,if you increase font size 3 factors change : 1 & 2.width & height of text , 3.width of font
i want to create one pixel width font for any width & height of text.
for exam. in Tahoma when you increase font size until 14 the font width(not text width) stay one pixel.
i hope that was clear...thanks
|
|
|
|
|
mehdi0016 wrote: for exam. in Tahoma when you increase font size until 14 the font width(not text width) stay one pixel.
No it doesn't. On mine, every stroke of every character is a minimum of 2 pixels wide, mostly 3.
I have no idea what you mean by "the font width stay one pixel". The font doesn't have a width. Each character cell has a width, but it's not usually measured in pixels and at one pixel wide, the character isn't readable.
|
|
|
|
|
Hi,
I have a mdi application where the mdi childs can not be maximized. Now i like to have a mainmenu in the mdi child, but it seems ok in vs but at run time the mainmenu of the mdi child is added to the mainmenu of the mdi parent.
How can I keep the mainmenu in the mdi child?
Thanks!
|
|
|
|
|
ESTANNY wrote: Now i like to have a mainmenu in the mdi child
Not supported. The menus in the child forms get merged with the menu in the MDI Parent form. There is no option to put the menus in the MDI Child forms.
|
|
|
|
|
You could consider using the ContextMenu control. This you can add to each mdi child form separately.
For all intents and purposes the same, just looks different.
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hello, I have a typical vb.net 2005 databound (strong typed ds, BindingSource, BindingNavigator) details form. The navigator moves the user nicely from one record to the other. The save button saves the changes and they are also saved as a group when the form closes..but..
Any one know how to update the db when the user moves records?
The form seems to want to wait and update the whole dataset when the form closes.. I want the updates written whenever the user 'leaves' the form.
I found a nice article here at codeproject on how to do this with a DataGridView but not with a regular details form: VB DataGridView Automatically Saving Updates to a Bound Database
The update code I can steal from what was generated for the BindingNavigator Save button...but the big question is....which object/event to use???
Thanks for any light you can shed on my dilemma!
|
|
|
|
|
It doesn't even wait for the form to close. Any changes made to the dataset are only written back to the database when the little blue disk is clicked. If you close the form before clicking that disk, all changes are lost.
If you want to automatically save changes when the use moves to another record, handle the BindingSource's PositionChanged or CurrentChanged events and call the Update method on the TableAdapter and pass in the datatable object, just like you find in the code for the little blue disk's Click event.
Private Sub CustomersBindingSource_CurrentChanged(blah, blah) Handles CustomersBindingSource.CurrentChanged
Me.Validate()
Me.CustomersBindingSource.EndEdit()
Me.CustomersTableAdapter.Update(Me.NorthwindCustomersDataSet.Customers)
End Sub
|
|
|
|
|
Is that I'm doing a projet, and I want to include a ProgressBar in the Splashscreen. Is that possible? I want it to be a load progress bar ( Like the one when you turn on your computer, when is says Windows Xp). Could anyone help me, it will be appreciated.
Thanks for your time
-- modified at 14:24 Wednesday 10th October, 2007
|
|
|
|
|
eviljohan wrote: Is that I'm doing a projet, and I want to include a ProgressBar in the Splashscreen. Is that possible?
Yes
eviljohan wrote: I want it to be a load progress bar
To load what? You haven't explained what you want to do.
I suggest you read the documentation on the ProgressBar[^] control and follow up your post if you have a more specific question.
Paul Marfleet
|
|
|
|
|
Hi Pmarfleet
I don't want to show exactly the progress of something, is that I want the progress bar there to be like a decoration. You know like when you start your computer and it says Windows XP, you know there is a progress bar with the blocks passing by, I want my progress bar to be like the one when windows is starting up. I hope you understand.
Thanks, I hope is clear now.
|
|
|
|
|
What are you showing the progress of??
All too often this question comes up and the poster thinks that the progressbar just magically knows what it's showing the status of. You're code has to increment the progressbar every once in a while. So, what is it that you want to show the progress of??
|
|
|
|
|
Hi Dave:
I don't want to show exactly the progress of something, is that I want the progress bar there to be like a decoration. You know like when you start your computer and it says Windows XP, you know there is a progress bar with the blocks passing by, I want my progress bar to be like the one when windows is starting up. I hope you understand.
Thank you very much and sorry for the misunderstanding, is that I'm just a newbie on this. I'm taking my frist class right now of Visual.
|
|
|
|
|
If I understand correctly you are showing a Splash Screen for a certain interval of time, and while splash screen is on screen you want to have a Progress Bar which will increment and show how much time has elapsed.
If this is what you are doing then you may have code like this-
---------------Code Start--------------------
On Form load set maximum and minimum value for Progress Bar, here I am using a timer which will show splash screen for 5 seconds, following lines will go in Form load event of SplashScreen –
Me.Timer1.Enabled = True
Me.Timer1.Interval = 1000
Me.ProgressBar1.Maximum = 5
Me.ProgressBar1.Minimum = 0
Now timer will run following code after every second and will also Increment the Progress Bar-
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
i += 1 'i is a Form level variable
If i = 5 Then
Me.Hide()
Else
Me.ProgressBar1.Increment(1)
End If
--------------------Code End---------------
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hi Dave:
You are almost correct my friend. I just did a copy & paste from this code you send me but it says that Name "i" is not declared. Ok I want the progress bar to be as the one when windows XP starts you know that it doesn't point the progress of windows starting, it is just there with the blocks passing by, that's want I want to do. My apologies for asking so much is that I'm a newbie working with Visual. Could you help me out.
Thanks
-- modified at 18:59 Wednesday 10th October, 2007
|
|
|
|
|
Then change the ProgressBar.Style property to Marquee and set the MarqueeAnimationSpeed to some value, like 250 milliseonds.
|
|
|
|
|
How to make a ruler in richtextbox in vb.net for eg:- see msword
|
|
|
|
|
This is a VERY complicated topic, so I'll ask a simple question first.
Do you know how to write your own custom controls, from scratch?? That means you MUST understand completely how controls work and can write one from the ground up, providing all the properties, logic, rendering code, events, methods, ... So, do you??
|
|
|
|
|
No i don't know how to write custom control if u have any link pls send me and also help me about ruler thanks for reply
|
|
|
|
|
No, there isn'tone link that will tel you how to do this. Dozens of them, maybe. An entire book on creating controls and how they work, maybe. But this is most certainly NOT something for a beginner to tackle, nor is it going to be covered in a couple of articles.
|
|
|
|
|
i know it is heard to do but its my job so tell me the book name or help me out
rishi dubey
|
|
|
|