|
I did actually think of that (and tried some stuff), but no, that did not make a difference.
|
|
|
|
|
Run the app as administrator? Make sure you have delete privs on that file?
|
|
|
|
|
The file is probably in use, and you can't delete things that you're still using.
Keep an array of filenames that you wish to "delete", and delete them when you're done using them (on program close?)
I are troll
|
|
|
|
|
Well, I figured out a way around it, if anyone else encounters this. Using a PictureBox and graphics.DrawString (instead of a TextBox) does the trick. The code below was cut from different methods & some stuff taken out, so it may be incomplete, but you should get the picture.
Graphics g;<br />
Bitmap bm;<br />
StringFormat sf = new StringFormat();<br />
PrivateFontCollection pfc = new PrivateFontCollection();<br />
pfc.AddFontFile(strFile);<br />
FontFamily ff = pfc.Families[0];<br />
<br />
f = new Font(ff.Name, 12, FontStyle.Regular);
PictureBox pb = new PictureBox();<br />
pb.Width = 280;<br />
pb.Height = f.Height + 4;<br />
pb.BackColor = Color.White;<br />
pb.BorderStyle = BorderStyle.FixedSingle;<br />
<br />
bm = new Bitmap(pb.Width, pb.Height);<br />
g = Graphics.FromImage(bm);<br />
g.TextRenderingHint = TextRenderingHint.AntiAlias;
g.DrawString(ff.Name, f, Brushes.Black, 0, 2, sf);
<br />
f.Dispose();<br />
pb.BackgroundImage = bm;<br />
<br />
|
|
|
|
|
i need to disable ctrl,shift,tab,windows key
is there any coding to disable them and enable them
plz help me
|
|
|
|
|
You can use windows hook for that. There are several articles here at codeproject that show how to use them.
|
|
|
|
|
He was already answered Here,[^] I assume he just want's code[^] written for him to do his task, but he won't bother to read[^] anything of value to help him out.
|
|
|
|
|
hi,
As i m developing cyber cafe software so when user logout from pc need to close all program,as like user may working on internet explorer as time over it need to close automatically.
so i need to close all application after time is over.
i need it through coding in vb.net.
|
|
|
|
|
Use Process class provided by .Net Framework.
|
|
|
|
|
hi,
i have an mdi container that forms are opened inside a panel.
is it possible that if an mdi child generated a message box, this message box will belong to the opening form and hence i can open another form and continue working.
because now when a form generated an error i can not click on any area in my application. thanks
|
|
|
|
|
Well, one option is to create your own version of a MessagBox using a simple Form.
|
|
|
|
|
|
You can't. There is no code you can write that will disable it.
And reposting the same question over and over will not change the answer.
|
|
|
|
|
hi,
I am trying to create a custom installation package that won't take my end users very many steps.
Currently there are
-- Install .dot net (which I am not worried about because most of the machine have it already (and it runs with the setup.exe that I created from Visual Studio)
-- Install SQL Server Express with management studio Create the database by running the sql scripts within Management Studio and install the software itself. Though this process does work, I would like to make it a little easier. Our end users aren't exactly technically expert and will run into problems. Also with my limited experience of SQL Server, it is hard to rectify created instances, etc without a lot lof work that they won't understand.
my question is can we have a custom package, which consists of all the above and runs in single step.
|
|
|
|
|
For various reasons I want to be able to bind customer business objects to a DataGridView rather than use Datasets. I have developed a class that implements IBindlingListView so that I can sort and filter them, however, I also want to be able to provide RowState functionality similar to that provided by Datasets. I will add a RowState property to my customer business object, however, I need to understand how to properly update this property using the DataGridView events. If anybody has some thoughts on which events would be useful I would appreciate any input
Thanks!
Jim
|
|
|
|
|
I beleive there are celledit/cellenter events that will allow you to identify the rows to be flagged as dirty, set the state of the object.
There is also a beforecelledit I think that may be usefull. Seems the real trick is to pick the correct event to use!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi,
i have a datagridview on a usercontrol "products" hosted from a form "productsform".
my grid shows a dataset by using a bindingsource bsproduct with nearly 500 records.
by clicking a row in the grid i want to show a detailform "productdetailform" with a usercontrol "productdetails" that has textboxes and displays the values.
after changing the data, the row in the dataset should be updated, and the productdetailform should be closed.
how can i handle this ?
i thought i can deliver the bindingsource bsproduct to the productdetailform and bind my controls to the Usercontrol productdetails.
delivering the bindingsource to productdetailform is ok, but how can i access the bindingsource in the code of the userontrol productdetails ??
bye jo
|
|
|
|
|
Hi,
i show products in a datagridview with a dataset as source.
now i want to show a detailform by clicking a datagrid row.
the changes in the detailform should be transfered to the dataset an shown in the datagrid.
how could this be handled ?
i use C# with VS2008
by jogi
|
|
|
|
|
jogisarge wrote: how could this be handled ?
Well you could have handled it by doing this[^]
led mike
|
|
|
|
|
Hello Friends..
I am working on one project in VB.NET Desktop Application..
I am not satisfied with visual studio inbuilt controls.
For rich functionality of my application i need to
third party controls.
can u give me a list of third party controls.
I want to know much about this third party cotrol..
can u suggest some sites which provides free download of this
third Party controls.
Thanks in advance
|
|
|
|
|
You'll find loads on google.
Infragistics[^]
devexpress[^] - They also do some free components if you search around their site a bit.
devcomponents[^]
telerik[^]
syncfusion[^]
If you are looking for open source, you need to search for specific stuff that you are looking for. There are lots of open source / free controls around you just have to be prepared to look a bit harder for each specific control that you want.
Simon
|
|
|
|
|
Thank u Simon
Can u give me a names of thord party cantrol so that i can
search directly and download..
|
|
|
|
|
Rahul Say hiiiii wrote: Can u give me a names of thoird party control
Umm...I just did. I even gave you links so you don't have to search.
What kind of control are you looking for?
What do you need it to do?
Simon
|
|
|
|
|
|