|
Try adding columns with dg.Columns.Add("ColumnName"). Be sure datagrid is not linked with any DataSource (add linked columns with column property --> "DataProperty". If the dg is linked, unlink, add column and link again.
-----------------
Solo hay 10 tipos de personas, las que saben binario y las que no
|
|
|
|
|
Hi all,
I need to add one more column "notes" to the datagrid which already has aound 10 columns.I know how to do it in asp.net.In asp.net we go to the property builder and add columns to the datgrid.But in vb.net is there anyway to add one more column to the existing datagrid..Please help me as its a bit urgent.
Thanks a lot for all your valuable time
Durga
Durga
|
|
|
|
|
Can I describe a methods purpose through intellisense in the visual studio designer. I can see the required parameters of the method, I would like to add a description as well. I'm using VB.Net on framework 1.1.
-- modified at 2:50 Tuesday 31st October, 2006
PJ
|
|
|
|
|
Above for method start a comment with 3 single quote marks ie '''
This should give you an xml template to enter a description of the method, parameters, return values etc.
Steve Jowett
|
|
|
|
|
That only works in VB.NET 2005, not 2003.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
You'll have to use a 3rd party tool to do this in VB.NET 2002 and 2003. Xml documentation support wasn't added to VB.NET until 2005 (.NET Framework 2.0). Something like VBCommentor[^] will do it for you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
i didn't tried this on framework 1.1,
but, you just try this one.
after defining the complete function with return type, parameters and all.
you press on the comment key 3 times just above the function name. So, it will automatically comes with the details, there you can give your details for the
parameters, return type and function description etc.
if it solved your problem, please dont forget to rate the answer....
Thanks & Regards,
Jeneesh K. Velayudhan
|
|
|
|
|
I need To Open an existing Excel File and Replace a Value in a Particular Cell.Please Help me on this.
Ram Kiran
|
|
|
|
|
hi
in VB6 do the following in sequence
1-go to the Project->References...
2-select Microsoft Excel x.x Object Library
3-press OK
4-in code window define these new variables:
Dim xls As New Excel.Application
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet
Set wb = xls.Workbooks.Open(ExcelFileName)
Set ws = wb.Worksheets(WorksheetName)
ws.Cells(RowNo, ColNo) = VALUE
wb.Close False
Set wb = Nothing
bye
|
|
|
|
|
Is there any way to call the Find and Replace function and Replace a Particular Cell via ASP.Net
|
|
|
|
|
The procedure does with VB.NET.
I under user A opens this Application, then cuts under user B to work, when i arrive once more under user A operates this Application, discovers The GUI cann't repaint. Why?
code
|
|
|
|
|
What?
|
|
|
|
|
When fish swim in many deep canyons where the silver moon shines down, the answer will be blown in the wind
"a fool will not learn from a wise man, but a wise man will learn from a fool"
"It is hard to fail, but it is worse never to have tried to succeed." - Theodore Roosevelt
"Success is going from failure to failure without losing your enthusiasm." - Winston Churchill
My Website || My Blog
|
|
|
|
|
This "question" is completely incomprehendable. I suggest you find someone else with a better grasp of English to translate and repost your question.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Do you mean that when you switch (change) users in your application, the GUI does not repaint?
Chandra
|
|
|
|
|
I think the GUI can not repaint, may be the controls is destoried.
If the GUI does not repaint, Min or Max The GUI is force to repaint,
but The GUI is still not to demonstrate.
code
|
|
|
|
|
how can i develop plug-in control using vb.net?
Manish
|
|
|
|
|
All you have to do is search the articles for "plugin", or click[^]. There's plenty of examples.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am doing a project in which I need to get some information from the ppd file and display in my application. The fields like holepunch, staple etc. I want to get these information from the ppd file into my comboboxes. can anyone help me in doing this in vb.net.
thanks
kavitha
|
|
|
|
|
I have to guess at what you mean by a "PPD" file, so if it's a Postscript Printer Definition file, it should be loadable into an XmlDocument, then you just use normal XPath queries to get the information you want out of it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello there,
I have to repost this message to see if anyone can give me the ideal of how to solve this problem. Please accept my appologies if I have caused anything to the forum's rule.
I have a VB app that creates and runs MS PowerPoint 24/7. When I first started, the application runs Ok as I expected, but then sometime the COM's error from MS PowerPoint throw an exception such as "PowerPoint currently experiencing the problem. We are sorry for the inconvenience, bla, bla... Click Ok to restart the MS PowerPoint", and the system is hung till user must click Ok to dismiss the error dialog box. Since this application runs 24/7 so in the middle of the night, there is noone there to click the OK button to restart the PowerPoint.
I am trying every posible ways to prevent this error to show up such as kill the PowerPoint Object and reinstantiate, reboot host if error happen... Howerver, none of my code worked since the system was hung unexpectedly because MS PowerPoint throw the error and system was hung before the pointer returned back to my code.
I am wondering if there is any way I can sense the error message from PowerPoint and prevent it before it shows up as the error dialog box. Or is there any way I can send code to click the Ok button to dismiss the error diaglog box. Please give me some advice where to start, or point me to some direction. I know there are messages que but I don't know how to access them and how to find the ID of the error windows. I am totally lost in this part now. Please give some advice.
thanks in advance for reading this message
Paula
|
|
|
|
|
There's no way to "sense" the error message. You'll have to poll the windows (FindWindowEx) to see if the error Window exists. If so, then you'll have to get it's window handle and send the appropriate Window messages to it to click the OK button to dismiss the dialog.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank you Dave for your response
should the algorithm to click the Ok button as following?
0/ Activate timer to call the procedure 1/
1/ Enumerate through all windows
2/ compare the error window with the error ID
3/ if there is a matched then go to 4/ else exit and wait for next timer's pulse
4/ Get the error window handle
5/ send the click message to the Ok button
I think I can do 0, 1, 3, 4. But I don't know how to get the error ID of the error windows because the error windows seems having the same signature as PowerPnt.exe. the error seemed inside the COM server's object.
I did a trace in system event log but it just said COM's error return from HRESULT of powerpnt.exe which does not make any sense at all. Another problem is this error did not happen very often. Sometime twice a day, or one in three days, or sometime once a week which is very annoyed me.
Do you have any ideal how I can capture the errorID of that windows? And what's API name should I call to complete number 5.
Thanks you all again for read and responded to my post.
|
|
|
|
|
paulajohn wrote: I am trying every posible ways to prevent this error to show up such as kill the PowerPoint Object and reinstantiate, reboot host if error happen... Howerver, none of my code worked since the system was hung unexpectedly because MS PowerPoint throw the error and system was hung before the pointer returned back to my code.
Instead of focusing on trying to recover from the error, focus on figuring out where the error originates from and handle the error.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Thank you all for the reading and input.
I have no ideal how's the error throw. I put try catch every where but it did not go into the try catch template. Moreover, after every line of code, I had the sub routine to write to system event log such as time, variable that the code did process, etc... It seemed to work just fine when I investigated the system event log because it passed and exit the sub routines normally. I believed my code logic is correct.
I think I will do as Dave's advice. It's really suck when it does not work the way it's expected.
Thanks again
|
|
|
|