The Wayback Machine - https://web.archive.org/web/20090123024836/http://www.codeproject.com:80/script/Forums/View.aspx?fid=1646
Click here to Skip to main content
5,826,380 members and growing! (24,477 online)
Announcements
* Bold indicates new messages since 16:48 22 Jan '09




BullFrog Power
Advanced Search
Sitemap

Visual Basic


Home > Forums > Visual Basic

 Msgs 1 to 25 of 3,327 (Total in Forum: 87,512) (Refresh)FirstPrevNext
AdminHow to get an answer to your questionadminChris Maunder17:30 10 Nov '05  
For those new to message boards please try to follow a few simple rules when posting your question.
  1. Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
  2. Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
  3. Keep the subject line brief, but descriptive. eg "File Serialization problem"
  4. Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
  5. If you are posting source code with your question, place it inside <pre></pre> tags, or click the "Ignore HTML tags in this message" check box.
  6. Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
  7. Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
  8. Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
  9. If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
  10. No advertising or soliciting.
  11. We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.

cheers,
Chris Maunder
CodeProject.com : C++ MVP

QuestionDoes VB support partial classes? [modified]memberPIEBALDconsult6hrs 41mins ago 
I'm beginning to work on a piece of code generation. It's primarily for C#, but I thought I'd include support for VB because I'm a nice guy. Big Grin

Do I understand correctly that VB doesn't support partial classes?


Add: Thanks for the answers, guys.

modified on Thursday, January 22, 2009 4:19 PM

AnswerRe: Does VB support partial classes?mvpMika Wendelius6hrs 12mins ago 
Here you go: Partial (Visual Basic)[^]

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Does VB support partial classes?mvpLuc Pattyn6hrs 4mins ago 
You really think VB programmers don't do things by halves? Big Grin

Luc Pattyn [Forum Guidelines] [My Articles]

Good riddance W


AnswerRe: Does VB support partial classes?mvpDave Kreskowiak5hrs 34mins ago 
Sure does. VS2005 (.NET 2.0) and above...


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Question3rd party software suggestions.memberCory Kimble7hrs 16mins ago 
I am posting this questions here because I am a vb .net programmer that is writing a vb .net program that needs a third party software.

I was wondering if anyone here knew of any software that can do the following.

I have a PDF with and image of a shipping label. I want to read the hub number from it.

My proposed solution: Find 3rd party utility that i can call from my program to read the image and get me the hub number data. But, I have search many hours trying to find a software that has commandline plus use ocr to read image plus be able to red image from a pdf.

Any suggestions?

Thanks
AnswerRe: 3rd party software suggestions.memberBen Fair6hrs 36mins ago 
There is a free OCR project called Tesseract that was done by UNLV in C, and was eventually ported to C++ and they now have a .NET version called Tessnet2. I believe it was also picked up by Google, or soemthing like that. Anyhow, I've not used it myself, but was looking into it a while back. Our project was cancelled, so I never got to play with it Frown .

Keep It Simple Stupid! (KISS)

QuestionEmbedded resource problemmemberunix_master0112hrs 29mins ago 
Hi,

I have created a custom resx file. And I am trying to add it to my project as embedded resource...

There are two identical files (except for the file name)
prolang.cz.resx
prolang.hr.resx

prolang.cz.resx is embedded OK (checked it with MSIL dissambler) but the other one just won't...

I have tried cleaning, restart IDE, restarting computer, deleting bin and obj folders...

no luck.

Any ideas?

Thanks.
AnswerRe: Embedded resource problemmemberEliottA10hrs 44mins ago 
Try changing the name of the second one so it is not prolang.*.resx.. try prolandhr.resx, perhaps it doesn't like the double extension.
QuestionHow to convert VB 6.0 application to support Greek Regional settings?membersolomondevapaul12313hrs 29mins ago 
Our application has used date format function, decimal separator and thousand separator in many places and database is MS Access. So, we want to know if there is any straight conversion technique that would enable our application to support Greek regional settings.
AnswerRe: How to convert VB 6.0 application to support Greek Regional settings?mvpDave Kreskowiak8hrs 27mins ago 
Google for "VB6 localization" for some tools that will help you do this. Of course, you may have to re-write some of the code depending on how data was stored in your database and if you have any hard-coded formatting strings.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




QuestionWindows application compatible with Mac Operating systemmemberpavanip14hrs 33mins ago 
Hi,

I have developed one windows application using vb.net. I have setup that application on windows operating system its working fine on windows os. Now I am trying to do that exe run on Mac operating system. Is there any other know the solution how the windows application compatible with Mac operating system.
To support vista os I created manifest file and resource script files.Please help me how the windows application compatible with Mac operating system.

Thanks
Pavani
AnswerRe: Windows application compatible with Mac Operating systemmemberashu fouzdar14hrs 14mins ago 
Please download mono from URL : mono-downloads[^]

And compile your vb.net project using mono vb compiler then you can port compiles executable onto Mac as well other Linux flavors.

For more info :
mono project[^]


Thanks Smile
Ashu

dnpro
"Very bad programmer"

AnswerRe: Windows application compatible with Mac Operating systemmvpDave Kreskowiak8hrs 30mins ago 
You cannot run the same .EXE file on a Mac and expect it to work.

There are two possibilities. You can run Windows inside a virtual machine on the Mac. You'll need virtual machine software and a licensed copy of Windows, then install the .NET Framework on it, and you'll then be able to run your app in the virtual machine.

The second method is what has already been proposed. Get Mono and compile your code using that framework. You'll, more than likely, have to rewrite parts of your app to get it to work completely, since Mono is NOT a 100% replacement for the .NET Framework.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Questionnot able to disconnet the mapped drive with "NET USE" command in VB6memberAnkur.Bakliwal15hrs 6mins ago 
Hi,

My VB6 program is using NET USE command to connect the remote folder to get some files. This program also disconnects after the processing of the files by using following command-
net use \\10.10.0.234\abc_folder /delete
At above command line, my program gets hanged


When i run the above command in DOS command prompt, its giving me following error -

There are open files and/or incomplete directory searches pending on the connection to \\10.10.0.234\abc_folder

Is it OK to continue disconnecting and force them closed? <Y/N> [N]:



Does anybody know about the error and solution... Sigh

Please help me by giving solution ASAP.....

Thanks In Advance---Rose

Ankur Bakliwal
Mumbai, India

Thanks,
Ankur Bakliwal

AnswerRe: not able to disconnet the mapped drive with "NET USE" command in VB6memberashu fouzdar14hrs 58mins ago 
Try this command while disconnecting :

net use \\10.10.0.234\abc_folder /delete /y


I hope this will resolve the issue Smile



Thanks
Ashu

dnpro
"Very bad programmer"

GeneralRe: not able to disconnet the mapped drive with "NET USE" command in VB6memberAnkur.Bakliwal14hrs 15mins ago 
Thanks buddy............. Smile
it works.......... Big Grin

you are gr8.... Wink Red faced



Thumbs Up Thanks alot ............. Cool

Thanks,
Ankur Bakliwal

QuestionDo not allowing user to order rowsmemberRahul Say hiiiii15hrs 40mins ago 
Hello friends...

I am facing one problem in datagridthat is when i click on the header of column rows are going to be ordered.

i dont want user to order rows in this way..

Posts are welcome

Thanks in advance...
AnswerRe: Do not allowing user to order rowsmemberashu fouzdar15hrs 28mins ago 
Please try this :

set AllowUserToOrderColumns property of datagridview control to false as follows:

datagridView1.AllowUserToOrderColumns=False.

Alternatively if you are using visual studio designer, you set it via properties window.

Hope this will give a solution

Thanks
Ashu

dnpro
"Very bad programmer"

GeneralRe: Do not allowing user to order rowsmemberRahul Say hiiiii14hrs 18mins ago 
Thakns ashu fouzdar.
I'm sure that GridName.Allowusertoordercolumns is already false
even Problem persist there.

When i click on the header row are going to order.

Please give solution...
GeneralRe: Do not allowing user to order rowsmemberashu fouzdar14hrs 2mins ago 
Here is a solution, I hope this will work for you also

Private Sub Grid_DataSourceChanged(ByVal sender As Object, ByVal e As System.EventArgs) 
Handles Grid.DataSourceChanged

Try
For Each clmn As DataGridViewColumn In Grid.Columns
clmn.SortMode = DataGridViewColumnSortMode.NotSortable
Next
Catch ex As Exception
Logger.Error(ex.ToString())
End Try
End Sub


Here you have to catch the DataSourceChanged event of DataGridView, and to insert
the code for setting SortMode to NotSortable for columns you require to be not
sortable.

Please let me know for any queries.

dnpro
"Very bad programmer"

QuestionExport DataGridView to Excel And Word WithOut Ms Excel And Wordmembermehrnoosh19hrs 50mins ago 
hi every body
how can we export a datagridview data to excel and word when Ms excel and ms word is not instal in system...
can you help me please?! D'Oh! ConfusedConfused

M.Alizadeh

AnswerRe: Export DataGridView to Excel And Word WithOut Ms Excel And WordmvpMika Wendelius19hrs 33mins ago 
Whole lot of good articles found with simple search: http://www.codeproject.com/info/search.aspx?artkw=export++data+to+excel&sbo=kw[^]

The need to optimize rises from a bad design.My articles[^]

AnswerRe: Export DataGridView to Excel And Word WithOut Ms Excel And Wordmemberashu fouzdar15hrs 33mins ago 
Hi,

You can use following library for exporting to Excel :
CarlosAg Excel Xml Writer Library[^]

And for exporting to word :

Gios WORD .NET Library (using RTF specification)[^]

For exporting to word/excel, you must have to iterate through Row of datagridview rows, using following code snippet


 
For Each currentRow As DataRow In DataGridView1.Rows
'Use the values in current cell using following syntax.
currentRow.Cells(0).Value
currentRow.Cells(1).Value
currentRow.Cells(3).Value
'until all cells are covered.
Next


Alternatively if you are looking for only copying the data to excel/word, just select the data copy using (ctrl+c) and paste to word/excel (This will work with .NET framework version 2.0 and greater).

Hope I answered your query. Smile

Thanks,
Ashu

dnpro
"Very bad programmer"

QuestionScrollbar height and widthmemberblackfin21hrs 21mins ago 
Hi,
Forgive me if this is a silly question. I'm new to this.

How can one find out the height and width of the scrollbars of a treeview control?

I have a treeview which i'm trying to resize when the form is resized.
I'm doing this;
Me.TreeView1.Height = Me.ClientSize.Height - x

I need to figure out 'x' so that the scrollbar stays inside the form!

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Last Updated 9 Aug 2007
Web20 | Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use