|
The easiest way is to assign the formatted text and image in a RichTextBox and get the RichTextFormat string using Rtf property.
Other way is to prepare rtf string as par RTF specification, the specification is available on msdn.
|
|
|
|
|
Hi, I have a table call tblTest in access with the following record.
PersonalID PersonalName Sex
001 Bopha Female
002 Chantha Male
I want to load these two record in a listview in VB.Net. Can anyone give me a sample code to load these two record in listview????
Note: I use vb.net.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I got it, I found the information from here.[^]
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I'm searching for a VB.net example of a rubber-band rectangle or select rectangle using pinvoke ROP2 codes. I know about ControlPaint.DrawReversableFrame but im working in the .Net Compact Framework and that isn't in the compact framework. Also drawing to a bitmap and erasing it is inefficient for what im doing.
I know an example is around here somewhere I just can't seem to find it.
I had this all figured out a year ago in a project I shelved only now I can't find that project or all the code samples I produced.
|
|
|
|
|
Passing events between forms
Situation:
I have:
- a parent form with a toolbar with a button on it print (IsMidiContainer=true)
- a child form within tis parent form
- on this child form i place a usercontrol (with a tabbcontrol)
Problem
i want when i change to another tab in the tabbcontrol raising an event to the parent form where i can disable the button print when the user is on a tab where he can not print
I can pass a event to a child form from a usercontrol but how can i pass this event to the parent form ??
(Public WithEvents childform as form, i cant find the event that i made)
Somebody has a solution?? thx
Greetz
plukje
|
|
|
|
|
Hi!
What i do is, after creating a new child form provide a handler in the main form:
AddHandler newWindow.funcXXX, AddressOf funcHandler
In the child form you have to declare an event and use raiseevent event2Use(parameters).
|
|
|
|
|
Is it possible to Insert Table(with rows n cols) in RTF Control.
if any One Know plz guide me
|
|
|
|
|
RTF Control, what is the namespace of this class?
By the way, RTF Specification does not say anything regarding Tables.
Please note that the rtf document should ideally be opened in WordPad, in which table is not supported.
|
|
|
|
|
Is it possible to Integrated Crystal reports with VB.Net setup so that at the runtime of EXE NO Reports is necessary to give it???????????????/
|
|
|
|
|
I wants to Transfer the File (*.rft) to the Server Machine. on the LAN
Any Body have an idea plz tell me
Thanx you
|
|
|
|
|
I wants to Transfer the File (*.rft) to the Server Machine.
Any Body have an idea plz tell me
Thanx you
|
|
|
|
|
Hi,
i/m a new programmer of .net and have to upgrade an applicaiton already existing in vb having access as backend.I want sql or oracle as backend .I wanted to know which would suit the best..note that this application has to be later made web based and i've XP on which .net is installed.if i use sql which verison should i use..plz help me fast..
|
|
|
|
|
You can use whichever one your comfortable with. Both SQL Server and Oracle are scalable, enterprise class, backends...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a database that is greater than 2 gig.
i want to create many tables an after that create index for them .
i open my transaction before table creation and commit it after Index creation. but i get error for create index and it means my table hasn't been created . my program works well when i do it on another database.
If you know please help me.
|
|
|
|
|
Might help if you told us what the error was, and maybe posted your code...
Why would anyone waste time arguing with an accountant about anything? Their sole function is to record what happenned, and any higher aspirations are mere delusions of grandeur. On the ladder of productive contributions they are the little rubber pads at the bottom that keep the thing from sliding out from under you. - Roger Wright
|
|
|
|
|
Like Rob said, it would help greatly if you posted your code. Also, it's better practice to create the table in one transaction, then create the indexes in the next. If the table creation fails, what's the sense in creating the indexes on it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
i really need to know the solution to this problem as soon as possible!!!
i have to use a class written in C# through VB.NET for my project.
the C# class contains all image procesing methods i need, and the rest of the project is in VB.NET!!
i would really appreciate any help as soon as possible.
thanx in advance!!!
☺«««DTA»»»☺
|
|
|
|
|
azam316 wrote:
i have to use a class written in C# through VB.NET for my project.
Just add a new C# Class Library project to your existing solution. This new project will be compiled to a DLL. Then reference the C# project in your VB.NET project (also remember to check the project dependencies). Of course you could also first compile the C# sources to a DLL and then reference the compiled DLL. But using a multi-project solution has the advantage of enabling you to quickly change the C# sources if necessary. For more details see Managing Solutions, Projects, and Files[^] (in particular Multi-Project Solutions[^]).
Best regards
Dennis
|
|
|
|
|
thanx a lot Dennis. u r a life saver!!
thanx again!
☺«««DTA»»»☺
|
|
|
|
|
hi I am having this problem where i have a Text file with data
000189,380661,SUPERSTAR VIRGO,410081,0813,2.200,5.76,12.67,.....
which i need to read and spreadly placed into selected colume of a ListView.
Below is the VB.net code i currently have & onli able to display the data from the 1st cloume instead of assigning:
...
If (openFiledlg.CheckFileExists()) Then
flag = True
txtSAPsrc.Text = openFiledlg.FileName
FileOpen(1, openFiledlg.FileName, OpenMode.Input)
Do While Not EOF(1)
Input(1, str)
If Microsoft.VisualBasic.Left(LTrim(str), 1) <> "," And Trim(str) <> "" Then
mitem = New ListViewItem(str.Split(","), 0)
lstvReport.Items.AddRange(New ListViewItem() {mitem})
End If
Loop
End If
.....
Help greatly appreciated.
|
|
|
|
|
Why not read each input line into a single string then use the Split function of that string with a delimiter of ',' to split the input into an array of objects which you can then interate through.
Rugby League: The Greatest Game Of All.
|
|
|
|
|
the code i posted together was able to store all the content into the str variablem split them by "," and display the data starting from he 1st colume of the listview. But how should i do it in the way i can set certain value of the input line into certain seleted colume
|
|
|
|
|
kobezt08 wrote:
If (openFiledlg.CheckFileExists()) Then
This is not what you need to do at this point. You want to figure out if the file exists. The FileDialog.CheckFileExists Property[^] however only specifies if the dialog should warn the user if the file does not exist. What you need here is the File.Exists Method[^].
kobezt08 wrote:
txtSAPsrc.Text = openFiledlg.FileName
When naming your fields in VB.NET don't use the old VB Object Naming Conventions[^] with prefixes. Use the new Design Guidelines[^] instead no matter which programming language you use.
kobezt08 wrote:
FileOpen(1, openFiledlg.FileName, OpenMode.Input)
I recommend to use the base classes from the System namespace (personally, I think the whole Microsoft.VisualBasic namespace is only about backwards compatibility). Therefore the appropriate object would be an instance of the StreamReader Class[^].
kobezt08 wrote:
mitem = New ListViewItem(str.Split(","), 0)
lstvReport.Items.AddRange(New ListViewItem() {mitem})
I don't know if there is a more elegant way but I suggest to create a new ListViewItem[^] with all the belonging sub items and add that to the ListView.Items[^] collection. Also don't use str.Split(",") but str.Split(","c) because the first version won't compile with Option Strict[^] on (Option Explicit[^] should be switched on too).
After some additional declarations...
Dim InputReader As StreamReader
Dim InputLine() As String
Dim Counter As Integer
...my suggestions looks like this:
If File.Exists(openFiledlg.FileName) Then
flag = True
txtSAPsrc.Text = openFiledlg.FileName
InputReader = New StreamReader(openFiledlg.FileName)
Str = InputReader.ReadLine()
Do Until Str Is Nothing
InputLine = Str.Split(","c)
mitem = New ListViewItem(InputLine(0))
For Counter = 1 To InputLine.Length - 1
mitem.SubItems.Add(InputLine(Counter))
Next Counter
lstvReport.Items.Add(mitem)
Str = InputReader.ReadLine()
Loop
End If
Best regards
Dennis
|
|
|
|
|
Thanks so much for all th ehelpful tips....
Just 1 more question how do i set the data to be displayed on select colume?
example: iI wish to put "000189" in the 1st colume and "SUPERSTAR VIRGO" on like 5th colume.
And btw in str.Split(","c), wat is the c stand for & wat does InputLine(0) do, cos i cant find info on InputLine() on msdn? Char?
|
|
|
|
|
kobezt08 wrote:
Just 1 more question how do i set the data to be displayed on select colume?
Since we're just adding items to a collection and we can't directly replace the collection itself (the ListViewItem.SubItems Property[^] is read-only) I guess the only possibility is to throw in some extra (empty) items. Try adding some of these:
mitem.SubItems.Add(New ListViewItem.ListViewSubItem)
kobezt08 wrote:
And btw in str.Split(","c), wat is the c stand for
The c tells the compiler that the character is a char and not a string (see Visual Basic Language Reference: Char Data Type[^]).
kobezt08 wrote:
what does InputLine(0) do, cos i cant find info on InputLine() on msdn?
Nothing. Just an array of strings I declared.
Best regards
Dennis
|
|
|
|