|
This is nothing to do with C# or VB, it is a Visual Studio issue, and these changes can only be made through the options settings. If VS does not offer a specific option to do what you want then you need to petition Microsoft for the change.
|
|
|
|
|
There is no setting to change that behavior.
It may appear that the same code editor is being used when you look at C# and VB.NET, but it's not. The C# and VB.NET code editors were written by different teams at MS and the functionality difference between the two are quite extensive.
Part of the reason for these differences is maintaining a "feel" that appeared in previous products. The C# code editor "feels" more like the editors of C/C++ of Visual Studios past, while VB.NET "feels" and works more like the old VB6 and below editors.
|
|
|
|
|
Hi
I have used itextsharp for convert innerhtml content to PDF. but textbox and sigplus(Activex signature) controls are not converted and it displayed empty field in PDF. How to convert all controls to PDF.
Thanks in advance
modified 6-Feb-13 6:41am.
|
|
|
|
|
You cannot convert a control to show up in a PDF. You have to grab a snapshot of the displayed control (think screen shot) and put that into the document.
Considering it's HTML, I don't know how you're going to get the image of the control seeing as though it can be anywhere on the screen.
|
|
|
|
|
Hi to the community.
I am an electronics engineer by profession. I have programmed in C and C++ and therefore mostly understand about object oriented programming and classes.
However, I have downloaded a program, from "the code project", that is written in C# for the asp.net framework. It implements "The Rectangle Packing Algorithm".
I do need to rearrange parts of this program in order to suit my needs. It was written by a professional web developer. I have loaded the program in visual studio and it does run.
I have tried to make heads or tails out of the program by reading books about C# and asp.net but the process is rather slow and I do have a life. I can now "get around" in simple c# but this program is still way above me as I can't make heads or tails out of the way that the C# is making use of the asp.net framework.
I would learn a lot faster if I knew someone that was capable of looking at the program and saying "here is what is going on here and there, etc". It is not a matter of asking a simple question, say, about classes or constructors, etc.
At my company there are only C, C++ and embedded programmers who claim no knowledge of c# or asp.net.
I am even amenable to paying someone for their services, through PayPal.
Advice is welcome.
Regards
Tom
|
|
|
|
|
ASP.NET is not the same as .NET, their applications run in a web browser, they are not desktop applications. You could always post a question in the forum at the end of the article and see if the author can offer any further information that would help you.
|
|
|
|
|
Good answer
http://developer.sheikhharis.com
|
|
|
|
|
I just recently upgrade to VS2012 and I'm a little confused reading about the new .NET CF 3.9 so I'm hoping someone here can clear up my confusion.
Back when I was using VS2008 I wrote some software for my company. The software ran on a HP iPAQ PDA and was a data entry software. When VS2010 came out it no longer supported the .NET CF but now I'm reading that VS2012 will support a new version of the CF (3.9) starting Q1 2013. When I search on Microsoft's site though I see links saying "Evaluate Compact 7 for free today." Back when I wrote the iPAQ software everything was free. Visual Studion had a project type for mobile devices and the .NET CF was a free install. Now it looks like to write anything for a mobile device it is an extra fee.
Am I missing something? Is the Compact 7 different then the .NET CF 3.9? Is there any installs to add a mobile device project type to VS2012?
I know it would be easier if my company just upgrade our devices but they don't want to spend the money when the HP iPAQ are still functioning. I would like to update the software on it, I just hate having to work on the PDA software with VS2008 and then the companion desktop application with VS2012.
In the meantime, is there anyway I could currently work on the PDA application with VS2012?
Thanks
|
|
|
|
|
Friends,
I am trying to merge to byte arrays and can't seem to get my code to work. Code below. Can i get some thoughts on what might be happening? I have verified that the arrays DO have data in them(aka length > 0).
Dim pdfBytesSyllabus As Byte() = pdf.GetPdfBytesFromHtmlStream(streamSyllabus, System.Text.Encoding.ASCII)
Dim pdfBytesCenter As Byte() = pdf.GetPdfBytesFromHtmlStream(streamCenter, System.Text.Encoding.ASCII)
Array.Copy(pdfBytesCenter, 0, pdfBytesSyllabus, pdfBytesSyllabus.Length, pdfBytesCenter.Length)
Eric
|
|
|
|
|
Array.Copy won't work as it does not resize the destination array (pdfBytesSyllabus) to hold the additional data from pdfBytesCenter.
The steps required are
1) Create a new array of sufficient length to hold both arrays
2) Copy pdfBytesSyllabus to the new array at index 0
3) Copy pdfBytesCenter to the new array at index pdfBytesSyllabus.Length
Much the same thing could be done with a generic List Of Byte, which is really just an implementation of a resizable array with a lot of useful methods added.
|
|
|
|
|
|
Uhhh...no. Alan nailed the problem exactly. You're just guessing at it.
|
|
|
|
|
As Alan has said, the problem is to do with the fact that the array isn't big enough to contain this. A simple way to fix this is to create a generic list of bytes and add the data into it. You can easily get an array out of this like this:
Dim pdfData As New List(Of [Byte])(pdfBytesSyllabus.Length + pdfBytesCenter.Length)
pdfData.AddRange(pdfBytesCenter)
pdfData.AddRange(pdfBytesSyllabus)
Dim cumulativePdfData As Byte() = pdfData.ToArray()
|
|
|
|
|
Thanks Alan/Pete,
Code worked great!
Eric
|
|
|
|
|
|
Hi,
In our WPF application we need show XPS document with navigation tree.
Can you help me, how can I build navigation tree from XPS document?
Thanks.
|
|
|
|
|
1. There is a specific forum for WPF questions.
2. Please explain what you mean by "build navigation tree from XPS document"?
|
|
|
|
|
The first thing you need to do to build any form of tree (and I'm assuming you are talking about a feature similar to the document outline in Word), is to parse out the document so that you can relate the structure together. I would start with this[^] if I were you.
|
|
|
|
|
I'm currently reading a book to learn about creating a compiler and/or interpreter for your own language (Writing Compiler and Interpreters by Ronald Mak). I've been learning a lot from this book, however the author uses Java to create the entire framework and the compiler emits Java byte code.
As I've been working though the samples I'm porting the Java code to VB.NET since I use VB.NET for all my other programming. I haven't reached the chapter on building the compiler but when I do I would rather have the compiler emit CLI code just as Visual Studio does when you build a .NET application.
Unfortunately I don't know CLI code but this seems like a good time to learn. I already downloaded the ECMA standard but I learn must better and quicker from books that give concrete examples and implementations.
Does anyone have any recommendations for any books that teaches about CLI code and preferably have example code that I can work with as I'm reading?
As a side note (since this has been brought up to me by other on numerous occasions) I'm not creating this custom language expecting it to take off and be the next big thing. I'm doing it for two reasons: 1) Academic purposes; 2) My company uses specialized measurement tools that produce large data sets that is hard to program for just because unique nature of the data. So I'm looking to create a domain specific language to handle some manipulation of the data.
Thanks in advance for any recommendations.
|
|
|
|
|
DisIsHoody wrote: My company uses specialized measurement tools that produce large data sets that is hard to program for just because unique nature of the data. Data is data, and can be handled by any language that currently exists. Your time would probably be better spent writing the code to do it, particularly as VB.NET emits CLI code, which is what you are hoping to do with your new language, so the end result will be the same.
That being said, you may like to look at some of these links[^].
|
|
|
|
|
As a starting point, what you are looking at is commonly known as a Domain Specific Language. I'd suggest that you start by having a look at this[^] article. Read it through a few times to make sure you fully understand it.
|
|
|
|
|
Mak generates "intermediate code" from the scanning / parsing phases which he eventually interprets or compiles.
For the intermediate code phase, I would suggest you swap in the .Net framework's System.CodeDom classes for building language independent code graphs and ultimately generating assemblies (instead of bothering with MSIL).
|
|
|
|
|
DisIsHoody wrote: I'm currently reading a book to learn about creating a compiler and/or interpreter for your own language (Writing Compiler and Interpreters by Ronald Mak).
Presumably you already know about the Dragon book (google 'compilers dragon book')
As for CLI examples you can look to the Mono project and the Mono compiler
http://www.mono-project.com/CSharp_Compiler[^]
Presumably the book you have also discusses Yacc/Lex which might be more useful if you are creating multiple languages.
|
|
|
|
|
@Richard: I've actually already written software to handle the data. I was going to use this data for this academic project just so I'm working with something real instead of just working with an abstract idea.
@Gerry: I've read about that feature, however I wanted to work with MSIL directly simply because I feel it will give me a deeper understand of the .NET Framework and hopefully, in the long run, help me written better and more efficient code.
@jschell: I was torn between getting the book I did and the Dragon book, but I decided to go with this book first and leave the Dragon book for second. The Dragon book seemed to deal mostly with theory, whereas this book doesn't go so much into theory but gives you actually code to demonstrate how to accomplish the different items. I tend to learn better with actually examples and exercises instead of theory and pseudo-code, however I plan on reading the Dragon book once I finish this one.
In the end I'm looking for a book that will work through MSIL similar to how this book does it. Each chapter building on the previous ones with actually code examples that write MSIL that in the end will lead to a fully functioning program; for me this is the best way to learn.
|
|
|
|
|
Hi
I'm working with an application that can extract or export an MDE File data to CSV, can someone give me a pointers how to do this.
I'm using VB.NET 3.5.
Thank you!
|
|
|
|