|
Noone is going to provide you with any code. You have to write that yourself. We'd be happy to help you with problems you get stuck on in your own code, but we're not going to do your work for you.
cma wrote: 1 how to save contents of data gried veiw into files
If you used a DataGridView bound to a DataTable, instead of using it in unbound mode, then saving your data to file becomes as simply as a single line of code. But, you have to setup a DataTable first, with appropriate columns to hold the data the user is entering.
cma wrote: 2 how to print contents of controls in vb.net
This is too vague to answer. What do you mean by "print contents of controls"? Are you trying to print the image of the form, complete with all the controls??
|
|
|
|
|
cma wrote: plese provide me comleate code
Urgent, isn't it?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
cma wrote: hi myself cma windows application developer in vb.net.
I'd be inclined to suggest you're a student of VB.NET. Do you have any books ? Have you read my article on how to search google ? Did it occur to you that every post in this forum is about VB.NET, so your subject line is useless ?
To save the content, the obvious way is to use a string builder to iterate over it and build a representation of the data, then use File.WriteAllText to save it.
There is a whole printing framework in .NET, any of the articles you'd find with google would explain it in more depth than a forum reply can.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello Everyone:
I have an interesting problem. I modified a C# application written by Bob Powell that demonstrated how to move graphic primitives to Visual Basic 2005 .NET.
I want to take this a step further and be able to move alphanumeric characters around on the screen using the mouse. My problem is I can draw a series of characters using the DrawPath method, but when I point to a specific character to hit test it the application’s HitTest Function does not recognize the character. I’m guessing the problem lies in the class I created for the text, but I don’t know how to solve the problem.
I wrote to Bob Powell and he suggested using glyphs. I’m assuming he wanted me to take the fonts and convert them to glyphs. This is where I get confused; a font is just a glyph. It seems redundant to create a glyph out of a glyph.
A single font character has a height and a width. The hit test function returns those values and uses them to create a rectangle around the graphic primitive I’m pointing too. Once the primitive is highlighted I can move it elsewhere on the screen by holding down the left mouse button and move the mouse to another position on the screen dragging the highlighted primitive with it.
Does anyone have any ideas?
Quecumber256
|
|
|
|
|
I assuming the hit test fails because you can't click exactly on the drawn part of the character and not the white space inside it. You're, basically, trying to click on a very thin line and missing. I hope anyway...
I have no idea if this solution would work for you, but you already know how to click and move a graphic image, so draw the text onto a small bitmap and left the user click and drag the bitmap around.
|
|
|
|
|
Hi Dave:
Thanks for the input. The experiment I'm running uses a 50 point font, which in turn produces an image large enough to know you are clicking on the character itself.
The bitmap approch did occur to me as a possible solution, but considering the work involved producing 255 bitmaps, one for each ANSI character it didn't seem like it would be practical.
Obviously there is a fundimental difference between shapes drawn using GDI+ and how GDI+ handles fonts. There has got to be some method out there that will allow me to capture the font, but so far my searches have produced ziltch.
Quecumber256
|
|
|
|
|
Hello members,
I am planning to join VB .Net Course.Which software should i buy VS2005 standard edition or VB.Net Standard edition.
which one is the best?.
Please guide me.
thanks,
avinash.
|
|
|
|
|
When buying Microsoft programming software, I would always go with the full Visual Studio. Despite VB.NET being only for VB, the full Visual Studio allows you to switch between any programming languages with greater ease. Also, if you are taking computer programming courses, their is a great chance that you will have to use C++ as well which is included in the full Visual Studio.
You may also consider the 2008 edition unless your course absolutely requires 2005.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
thank you for your answer.this advice is really helpfull .thanks again.
I have another Question .
I already have Microsoft VC++ Express Edition 2008,Microsoft Visual Basic 2008 Express Edition,Microsoft Visual Web Developer 2008 Express Edition,Microsoft SQL Server 2005 in my computer.
I got Microsoft Visual studio 2005 standard edition now.Do I need to uninstall every thing before installing VS2008?.
Please answer.
thanks,
Avinash.
|
|
|
|
|
The first step of becoming a programmer would be, the ability to do a little research. If you were to google, you'd quickly find that 2005 and 2008 can happily co-exist. I believe tat te express editions will also work fine, I've run them on my dev box. But, why would you need them ?
SQL Server is a totally different program, and is completely unrelated.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
2003, 2005 and 2008 can coexist on the same machine (I have VS2003Pro, VS2005Standard, VS2008Pro). The only real reason why you would need the express editions is if you were using XNA (unless it has since been changed). Before you could only use XNA on the Express Editions and not the standard or professional versions of Visual Studio.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
thanks you for the answers.
avinash.
|
|
|
|
|
Why are you asking this for a second time ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
note to cp members...dup post
|
|
|
|
|
Hello
This the first time i work in serial port class
i need to send a serial data to an external board
if any one can help me and advise me
it'll be greatfull and very helpful for me
Thanks in advance
Assaf
|
|
|
|
|
See , for istance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I am a Software Developer,working on VS2008 and SQL Server2005.I am new comers in PDA.When I run my project from program,it's works fine.But when I run from bin\debug\pda.exe then an error message shows that Top-level control cannot be added.Please help me.
|
|
|
|
|
|
hi all,
i have a datagridview and a contextmenustrip in my program. ContextMenuStrip is attached to Datagridview. At run time when i right click on DataGridView, contextMenu is appear. But there are little problem. How can i determine the row number, for which ContextMenu appear ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi,
Its very simple handle the click event of gridview
The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth
|
|
|
|
|
hi,
i already try this event.
but click event of gridview, there are no RowIndex Property is attached.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Ok
But have u tried mouse click event?
The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth
|
|
|
|
|
hi v,
once again, i want to told you that i already try this event and there are no rowindex property for this event.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
-->try this:
me.text=me.datagridview.currentrow.index+1
--> hope this will work but with right click. customise it for your self.
J A Nasir K
|
|
|
|
|
Hi,
I have a login page which takes the username and password and connects to the Oracle database. The login details are same as oracle db login details. If the user attempts 5 invalid logins to the application, the user id gets locked in both the application and the database. However, if the user is typing the same wrong invalid password consecutively for 5 times, the user id is not getting locked in the database. This means for the same set of userid and password, the post back is not working. Can you please explain and give a solution? We are using ASP.NET 1.0 with VB.NET. Thanks in advance!
|
|
|
|