|
Why do you need to use substring?
जय हिंद
|
|
|
|
|
to get the value within that particular range
|
|
|
|
|
Dim created, created1 As Date
...Lots of lines removed
baloon = temp.Substring(p(8), p(9) - p(8))
dateTime = temp.Substring(p(9), p(10) - p(9))
created = CDate(dateTime)
qty = temp.Substring(p(10), temp.Length - p(10))
While sa.Peek() >= 0
temp1 = sa.ReadLine()
name1 = temp1.Substring(0, p(1)) ', p(2) - p(1))
child1 = temp1.Substring(p(1), p(2) - p(1))
desF1 = temp1.Substring(p(2), p(3) - p(2))
desAF1 = temp1.Substring(p(3), p(4) - p(3))
desA1 = temp1.Substring(p(4), p(5) - p(4))
desAA1 = temp1.Substring(p(5), p(6) - p(5))
ecn1 = temp1.Substring(p(6), p(7) - p(6))
dnf1 = temp1.Substring(p(7), p(8) - p(7))
baloon1 = temp1.Substring(p(8), p(9) - p(8))
dateTime1 = temp1.Substring(p(9), p(10) - p(9))
created1 = CDate(dateTime1)
qty1 = temp1.Substring(p(10), temp1.Length - p(10))
If name = name1 And child = child1 And dnf = dnf1 And baloon = baloon1 And created < created1 Then
sw.WriteLine(name1 & child1 & desF1 & desAF1 & desA1 & desAA1 & ecn1 & dnf1 & baloon1 & dateTime1 & Space(22 - dateTime1.Length) & qty1)
Else
sw.WriteLine(name & child & desF & desAF & desA & desAA & ecn & dnf & baloon & dateTime & Space(22 - dateTime.Length) & qty)
End If
name = name1
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
Language - vb.net 2008
I drag dropped a control(Infragistics ultrawingrid) and the contral is coming in
status bar sort of thing. Like the timer control comes.
Now the problem is, the control is not coming in the designer.
oi hav ethe license to use the infragistics control.
Can you give me any idea?
|
|
|
|
|
Better place is Infragistics support.
|
|
|
|
|
That means it's a System.ComponentModel.Component not a System.Windows.Forms.Control .
The former is used when no UI is needed for the component.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi ...
modified 28-Nov-12 8:11am.
|
|
|
|
|
I have found the solution to solve this issue
|
|
|
|
|
Hi guys, i'm a newbie programmer currently trying to develop a CRM software.
I am using VS 2005 (VB.Net) with MS SQL as the database.
As the title says, i am looking to display data (from my database) in a bar graph/pie chart like in http://img24.imageshack.us/img24/4885/piey.jpg[^].
Are there any tutorials available for what i am looking to do? I'm not sure how i should be doing this, with a windows form :A control to display pie charts with highly customizable formatting[^]? Or with what is done here: Drawing a Bar Chart[^]
Would appreciate any help/suggestions, as i'm at a loss to what to do, heh.
Thanks, and apologies if i'm posting in the wrong forum.
Edit: I came across A WPF Pie Chart with Data Binding Support[^] - looks really nice, but apparently it was " created by a newer version of this application(Visual Studio) and cannot be opened".
modified on Monday, May 11, 2009 12:06 AM
|
|
|
|
|
Microsoft has a nice free chart control - MSChart - (Similar to DundasChart)not sure it will work with VS2005 - Depends on what framework version maybe.
I don't speak Idiot - please talk slowly and clearly
I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury
Driven to the arms of Heineken by the wife
|
|
|
|
|
Hi,
normaly it is easier to use a control, if that looks the way you want/need. If you dont get the look you have to paint it 'by hand'. Try to search on codeproject or google, there are tons of good free charting controls out there.
The whole WPF stack is based on DotNET 3.5 and does not run under the 2.0 framework that VS 2005 is targeted at.
Regards: Didi
|
|
|
|
|
Thanks guys, i'll try it out and get back to you!
|
|
|
|
|
Hi all,
I am trying to use the keydown events on a form. They work up until I click on a textbox or button. I am pretty sure it has to do with the focus being on the txtbox/button etc., but how do i put the focus back on the form to make keydown events work again?
|
|
|
|
|
Hi,
you can receive all the keyboard events for your Form, even when a Control on it has focus, by setting Form.KeyPreview true.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thanks for the quick reply!
it works
|
|
|
|
|
You're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
i am developing an app in which i have used graphics object to create and fill
a rectangle with some color.
now i want to know when the user clicks inside the rectangle
but i am getting some problems
currently i am doing this with if-elseif conditions
wouldn't a much better way to do this is by associating
the click event to the rectangle
i can't figure out how to associate events with the rectangle
is it possible?
if yes then
please help
else
tell if there any other way of doing it
other than using a label or a picture box
end if
thanx
TheMrProgrammer
|
|
|
|
|
Hi,
The only UI objects that support events are Controls. Most of them are rectangular, so you are in luck. You could use say a Panel and set its background color.
OTOH a Rectangle has a Contains() method which takes a Point, and a MouseEventArg gives you a Point, so you don't have to switch to Controls (which wouldn't make things easy when non-rectangular anyway).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
thanks
but whats OTOH
TheMrProgrammer
|
|
|
|
|
Google for unknown acronyms.
OTOH means 'On The Other Hand'
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hello every one
i m having '11' tabpages in tabcontrol now in each page there are 11 combobox
i named them starting from '0' like cmb0 which is in 1st tabpage,cmb1 which is in second tabpage and like wise...
now all 11 comboboxes have same items in it and i want to insert all of them using loop
for that i had code is like
dim i as integer
cmbstr as combobox
For i = 0 To 11
cmbstr = cmbstr & i
cmbstr.Items.add("a")
cmbstr.Items.add("b")
cmbstr.Items.add("c")
cmbstr.Items.add("d")
Next
i = i + 1
but this shows some error
please help..
please suggest if some another alternative is possible..
|
|
|
|
|
nazimghori wrote: but this shows some error
And that error would be ....... ??? Do you really think that there's only a single error possible when dealing with a combobox??
|
|
|
|
|
Let me do a mind meld with the computer (just seen the new Star Trek move) uhm, uhm, oh bugger that's the monitor you idiot now you've got indentations on the flat screen!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi
error is like
operator '&' is not not defined for type 'system.windows.form.comboox' and integer
seems to be syntax error but please suggest how to solve it...
thank you in advance...
|
|
|
|
|
Of course not. You're trying to build the name of a ComboBox in a string and then treating that string as if it was the combobox. That's not going to work.
Luc has the best two solutions for you.
modified on Sunday, May 10, 2009 9:46 PM
|
|
|
|