|
Hi! Everyone I'm New to Programming.I'm working on Visual Studio 2005 Win Forms Applications.I Complete my Code and it Works But Now I Wanted to Improve My Code.I Want to set the Position of controls according to the change in Size of Form at Run Time.
Thanks for Your Advise.
|
|
|
|
|
Use Anchor and Dock properties of control class.
|
|
|
|
|
First of all THANKS for Your Advise SIR...............
But My Problem is that I don't want to Change Properties at Design Time.I want to set Anchor and Dock Properties of Control Class at Run-Time.
And Your Blog is Very Nice.I'm very Thankful for Your Answer.
|
|
|
|
|
You can set this properties at runtime too. All controls have properties called Anchor and Dock
|
|
|
|
|
Thanks for Your Advice Sir.
But I wanted to know the Code for that.
|
|
|
|
|
|
Thanks a lot Sir Now I'm GLAD By Your Advise.
Thank You Once Again for Helping Me.....
|
|
|
|
|
You are welcome
|
|
|
|
|
Sorry Sir I want to Rate Your Reply as BEST,I think BEST Rating is No 1 But Actually it is No. 5
Sorry..........
modified on Sunday, November 16, 2008 2:49 AM
|
|
|
|
|
If you want to rate it as best then you vote 5 for it, not it.
|
|
|
|
|
hi everyone
i want to add textbox and button in every cell of the column in the datagridview using .net framework 2.0
windows application
|
|
|
|
|
I believe you can use API and use the SetParent method to embed controls into datagrids. Their are a few articles on this site that should be able to help you, I don't believe their is an easier way unless you want to switch to the Windows Presentation Foundation.
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 Blog
|
|
|
|
|
Hello freind,
I have taken a rich textbox in a form and i want to show all the content of RTF file. and also if any where in the file any word is bold then i want to add tag bold of any bold words just like HELLO
so please suggest me how i will add tag starting of bold word and in end .
Thanks in advance..
|
|
|
|
|
You would have to first load the RTF file into the richtextbox. Then you will have to write code that will loop through all of the text searching for the words to bold. You are going to set the selection start and end points and then bold them.
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 Blog
|
|
|
|
|
Hello All,
I'm developing an application. In this application i want to detect the printer status. status means online , offline , low paper, no paper , paperjam. Can any one give suggestion on this.It will be great helpful for me.
Thanks in advance.
Sekhar Reddy
|
|
|
|
|
|
I am at a loss. Can someone PLEASE help me with the above error message?
I have a Windows Application with a PresentationLayer, DataAccessLayer, BusinessLogicLayer and Web Service for Client Application Services.
When I run my app it executes as follows:
I login using the loginform. Upon login a new form is opened and the form_load event executes. When this happens the following line executes -
var _bllEntities = new BLLEntities(); . It then jumps to my BLLEntities.cs file where the following line executes -
readonly Entities DALEntities = new Entities(); . It is at this line where VS tells me that the Type initializer for DAL.Method threw an exception.
The innerexception tells me that I need to use the "new" keyword that I have as you can see, and the second innerexception tells me to check if the object is null before calling the method.
How can I check this as I have
var _bllEntities = new BLLEntities(); declared right after the class namespace. I cannot use if or switch.
Thank you!!
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: It is at this line where VS tells me that the Type initializer for DAL.Method threw an exception
The exception is coming from lower down the stack. Check the stack trace property of the exception to pin down exactly where it is coming from. It's possible it's coming from somewhere that you don't have loaded in code, or it's being handled and then re-thrown from lower down.
Try changing the visual studio options to break on all exceptions (Click Debug->Exceptions, Tick the Common Language Runtime Exceptions box, Click OK)
Simon
|
|
|
|
|
I have figured out that there is a problem with the app.config file. I have changed my connectionstring in the DataAccessLayer and now the error is gone.
Can you maybe tell me how can I reference a dataset from the DAL in the BLL? When executing my code everything works in the DAL and the return dataset is populated, but as soon as I step into the BLL the Dataset is null. I am using a property but the set never gets executed.
Thanks!!
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: Can you maybe tell me how can I reference a dataset from the DAL in the BLL?
I haven't really got any ideas, without looking at your code it's a bit tough. Sorry.
Illegal Operation wrote: but as soon as I step into the BLL the Dataset is null
How are you returning it. Normal return, 'Ref' parameter or 'Out' parameter?
Illegal Operation wrote: I am using a property but the set never gets executed
This sounds like your not quite using properties properly. (Maybe I've just misunderstood what you are saying). The set property is called to set the value, the get property is called to retrieve the value. from inside the DAL class, you would just set the value to the internal member, and probably not call through the property. Then from outside the DAL class, you would only call the get property.
Sorry I can't be much more help.
Simon
|
|
|
|
|
Hi,
I created a Datagridview which holds the 64 bit data with different names, I want to display the Starting bit information on the Row header and the 0th column the name, and the value in the 1st column, How I can add the Header text?
SomaShekhar
|
|
|
|
|
I have no idea what you're trying to do, but the DGV has a Columns collection that holds DataGridViewColumn objects, each of which has a HeaderText property where you set the text of the column header.
|
|
|
|
|
Hi Dave,
My intention is to display the start index of the bit field at left side of the datagridview (I think it was called as the DataGgridviewRow header), I have tried setting the row header text but I couldn't acheived the purpose.
SomaShekhar
|
|
|
|
|
You voted me down because my suggestion didn't help at all, even when I said what you described didn't make any sense and I took a guess at what you were trying to do?? See ya...
|
|
|
|
|
Hmmm, I think I'll pass helping him out.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|