|
I totally understand that not everybody speaks English perfect, cause it's not their first language. It isn't my first language either. But this is about textspeak, which is simply lazy, unprofessional and considered rude by many people (like myself). As I said before: behave like a child (by using textspeak), prepare to get treated like one.
And as JHizzle pointed out before: gcina seems to have a problem with loops, so he/she should maybe explain, what the problem is. Rule 2: Be specific.
If it's just about general understanding of loops, then a google-search would have been apropriate. There are plenty of examples for loops, if one just uses google.
Well, I made my point clear, so no more arguing from my side, since we are turning in circles. Anyway, I am out now. Have a nice evening."I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
yes man Good Evening to you also and no heart feelings Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
I'm impressed. First time I've seen anyone with the same tag line as me.
Well, I guess I got it of a quotes website a couple of years back so I can't claim originality can I!
|
|
|
|
|
Trust me , i copied from yours Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Scary, I didn't realise I had been posting that much.
It's a good quote though.
|
|
|
|
|
Well, he's listed as South African, and English is the standard trade language of SA. Until 94, English was one of only 2 official languages...of course, now there are 11, but the majority of people that I have met in SA speak English...with the exception of some of the small villages and "shantytowns".
So, I think it would be safe to assume that he speaks English...probably even better than some people in the US.
|
|
|
|
|
Here is an example of some loops;
Do
Loop
While (someCondition)
End While
For x = 1 To 10
Next
|
|
|
|
|
For x = 1 To 3
BuyBook()
Next
Do
For Each Book in BookCollection
StudyBook()
End For
Loop Until Me.LoopExpert = True
|
|
|
|
|
what kind of loop do you want to do. Here are several examples of loops: for next, do while, and do until. are all example of looping.
|
|
|
|
|
Hi experts/Friends,
I am learning VB.net and trying to make a ruler for my Text Editor. Following is my try please help me to improve it.
Public Class myRuler
'Inherits System.Windows.Forms.UserControl
Private Sub myRuler_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim g As Graphics = e.Graphics
Dim p As Point = New Point(0, 0)
Dim s As Size = New Size(Me.Width, Me.Height)
Dim curRec As Rectangle = New Rectangle(p, s)
g.DrawRectangle(Pens.Black, curRec)
'Converting Pixels to Twips
Dim ptoTwip As Single = (Me.Width * 15)
'Twips to Inches
Dim twipToInches As Single = CSng(ptoTwip / 1440)
Dim b As Single = 0
'Draw Numders 1 2 3 etc.
For a As Single = 0 To twipToInches
g.DrawString(a, New Font("Arial", 10), Brushes.Black, b, 10)
b = b + 96 '96 192 288
Next
' Dim ptomm As Integer = Me.Width / 3.779527559
'Draw Lines between inches, and long line every 5th
Dim y As Single = 10.0F
For x As Single = 0 To b Step 9.6
g.DrawLine(Pens.Black, x, 0, x, y)
'MessageBox.Show(x)
If x Mod 2 = 0 Then
y = 15
Else
y = 10
End If
Next
End Sub
End Class
|
|
|
|
|
What do you mean by "improve it"?
|
|
|
|
|
Hmm, you could use dark gray instead of black in this bit:
g.DrawString(a, New Font("Arial", 10), Brushes.Black, b, 10)
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
As you have mentioned
nyt1972 wrote: I am learning VB.net
so looks pretty good as far as if you have not copied it from somewhere else , if its working then its Fine what kind of improvement you want in functionality or what , be more descriptive Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Well you could use Me.ClientRectangle rather than constructing a new rectangle which would save creating three variables.
Maybe go straight from Me.Width to tripsToInches thereby knocking out another variable.
I would also recommend using Me.Font and Me.ForeColor rather than hard coding it so the font decision can be left to the calling code, though fixing the size is probably sensible.
All pretty minor, I had to think to spot these ideas, and they are only ideas.
Basically I can't fault it. Good work.
|
|
|
|
|
That's what I mean The Man from U.N.C.L.E.!
I need Ideas to make this ruler perfect and its not a copy I am trying myself that's why coding is poor 
|
|
|
|
|
|
Hello to All,
Actually i am using a component for Export into Excel . Some time for special value component will be crash and Software generate the error message and Application Will be crash.
So Please help me regarding that how to stop error or how to stop Component crashing.If you can think then I Can.
|
|
|
|
|
is it a third party component or your own devloped component , if your own component then what are those special values ,Try this Code project article if you dont have component code
Export 2 Excel In .Net[^]Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Yes it is a third party component. and IT is a Control(Visual) on our form.
and It is not for Exporting into Excel. It Shows GUI OF CONTROL for Multiple Purpose.
Thanks for your suggestions.If you can think then I Can.
|
|
|
|
|
I can barely understand what your saying (I think!)
If it's a third party control you're having problems with, your best source of information and support would be the people who wrote the control.
There is no "one fix" that going to stop a control from crashing.
|
|
|
|
|
Thanks Dave,
Actually i want to know that the error only stop from source site.If you can think then I Can.
|
|
|
|
|
HI all
I need to open and program Powermill programs in vb
anyone to help me??
Regards
Gany
|
|
|
|
|
Did you try the forums on their site[^]? That would be your best chance.
|
|
|
|
|
First, never heard of "Powermill".
Second, "opening and program Powermill programs" isn't relaly a specification or good requirement definition. It's WAY too general and does not lend itself to a good answer.
What do you want this thing to do? Let someone edit the program as text? Show a graphical representation of the program? 3D modeling with primitives? ... What?
|
|
|
|
|
i hope so VB means .net not vb6 try the SDK for powermill and also check the Com/ libraries in refrences Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|