|
This may be a dumb question, but is there a WinForms equivalent of the good old CStatic control used to create lines (and rectangular areas)?
Thanks,
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
|
Yes, I saw this[^] which looks quite nice. I'm a bit surprised why MS excluded the static frame control in WinForms.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Use a label. Set height (if horizontal line) or width (if vertical line) to 2 or 3. Set style to 3d and this will do the trick.
- Malhar
|
|
|
|
|
Thanks (as always!). I'll try this approach.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
How a windows and web pages are Executed in .Net Framework
using c#.net
sowjanya kumar
|
|
|
|
|
Could you clearify what you mean? I understand that you are interrested in the execution of something, but it's unclear if you like to execute something, or if want to know how the execution works.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I've just exported my VS2003 project to VS2005. The First thing that troubled me is the performance issue with DataView.RowFilter which is almost 10 times slower in .NET 2.0 !!!
I have the same problem with BindingSource.Filter (which of course I believe uses the RowFilter anyways), then I've made no modifications to the project, meaning (using DataView.RowFilter) and still have this problem (10 secs for somefield Like '%something%') for 70000 Rows, which in NET 1.1 is something like 1 sec.
Thanks.
|
|
|
|
|
Hi guys,
I am working a .NET windows application using C#. I have placed a
web browse control in my Windows Form in order to show many types of documents like word doc, text file, ms excel sheet, images or even flash animation etc. There are three panels in this Form. On the left panel there's a Directory tree just like we see in Windows Explorer. The Top panel contains a list of documents in the currently selected directory. I have placed the web browser control in the third panle which is right below the top panel. When the user selects a document (word, excel etc.) it is opened and viewed in the browser control. So far so good. Now the problem occurs when the user selects a document and it is opened for view and he wants to delete it by using the shortcut menu option which is provided by me. The system throws
an exception when i attempt to delete this document from the os directory and says like "The file is in use by another process.". This occurs even if the user selects another document and the application attempts to delete the 'previously' selected document again. This is for sure that the process which is running my app has not yet destroyed the handle of the document, but i don't know how to destory it. I guess the only solution could be P/Invoke but don't know which API functions have to be used. Anybody could help getting rid of this?
thanks
bABURmAN
|
|
|
|
|
Hi,
I have a windows form application with a BackgroundWorker. The user has to stop the backgroundWorker by clicking a button. I would like to indicate that it is still running by using some kind of (continuous ?) progress bar (like the progress bar appearing when Windows XP starts). Is there any easy way to implement this?
Thanks in advance.
|
|
|
|
|
If you just want to create a progress bar that never ends - i.e. you don't know how long the background thread is going to take, then this[^] article might help you (or this[^] one for C#)
Cheers,
Will H
|
|
|
|
|
hi,
i added xpdfviewer control to the vb.net proj. But unable to handle the events of control. Is there any importstatement should i add.
raj
|
|
|
|
|
hello everyone...
i'm using the new ToolStripMenuItem instead of MenuItem but i couldn't find the Index property which gives the position of the menu item if it is a submenu...can somebody tell me how to get it...
|
|
|
|
|
also i noticed that there's no MenuItem property!!!which of course returns the submenuitems...
|
|
|
|
|
I've been developing a small app in C#, that uses an Access DB.
When the idea to sell it came, I began to wonder... Can I?
I mean. I use an access created .mdb file to store my data. So... does anyone know how the licencing things are handled on matters like this?
Thanks.
|
|
|
|
|
Verify this for yourself, this is what I have found...
There are three cases:
1. If the developer builds a solution in an application that includes Jet but does not have a runtime version, for example Microsoft Excel or Microsoft Office, they must purchase and install a copy of the application on each user's desktop for their solution to run correctly.
2. If the developer builds a solution in an application that includes Jet and provides a runtime license or compilation, for example Microsoft Access (with the Microsoft Access Developers Toolkit), Microsoft Visual Basic, or Microsoft Visual C++, subject to the end user license agreements accompanying each of these products, they can build and distribute their solution to users with a runtime version or as a compiled application (.EXE).
3. If the developer builds a solution in an application which does NOT include Jet, but relies on Jet, (for example, Microsoft Project or Microsoft Visual FoxPro™) they face two requirements. First, they must adhere to the license agreement for the application they used to develop the solution. Second, they must purchase and install a copy of a Microsoft application or tool which DOES include Jet on the user's desktop.
You want #2 and #3 I believe. I'm no good at decyphering this lawyer speek.
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaraccessdev/html/ODC_JetDatabaseEngineLicensingandSolutionDistribution.asp[^]
Also found this:
Access 2003 Developer Extensions are part of the new Visual Studio Tools for the Microsoft Office System software package.
Licensing and Distribution Rights
The licensing agreements included with Access 2003 Developer Extensions simplify the distribution of solutions or code segments. They include a royalty-free Access Runtime, which allows for the distribution of Access solutions and Access Data Projects, and free use and distribution of portions of the tools source code as part of your solutions.
http://msdn.microsoft.com/office/technologyinfo/devtools/accessextensions/default.aspx[^]
Matthew Hazlett
Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).
-- modified at 23:08 Friday 27th January, 2006
|
|
|
|
|
Hi,
Am running the .NET Framework 1.1 and need to send e-mail via an SMTP connection via an SSL-enabled connection (for example, a GoogleMail account connection).
I have worked around the POP3 connection to receive e-mail using open source components online. But can anyone either give me, or point me in the direction of, advice on how to implement Secure Socket Layer on the SMTP connection in .NET 1.1
Thanks in advance!
Fred
|
|
|
|
|
In .NET 1.1, I don't think there is any support for SSL SMTP. In 2.0, there is the System.Net.Mail implementation that is a SMTP client that I think implements SSL.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am having problems getting the column order in a DataGridView object to display how I want it. Here are my objects:
Data object
<br />
class CData<br />
{<br />
private uint id;<br />
private string name;<br />
private object otherstuff;<br />
...
public uint ID{<br />
get{ return id; }<br />
set{ id = value; }<br />
}<br />
...
I then create multiple CData objects and place them in a List<CData> object "myList". When I go to bind this list to a DataGridView I use the following code
<br />
BindingList<CData> bindlist = new BindingList<CData>(myList);<br />
myDataGridView.DataSource = bindlist;<br />
myDataGridView.Refresh()<br />
the problem comes when my form is shown and my data is presented. Currently I can not figure out how to order the columns generated from my CData class properties. By default I thought they would show up in the order that they are declared like:
| ID | Name | OtherData |
but I find that the order is chosen at random (or some other factor I can not figure out) and they display something like:
| OtherData | ID | Name |
Now normally this wouldnt be too big of a problem but in my real world application I am using a Data object with over 100 fields which are generated from a file with a strict structure layout and it is critical that I see my columns in the proper order.
I hope I explained this properly and would appreciate any help that can be offered on the matter.
Thank you.
PS: If some moderator or something feels I will get more response in the C# forum, please move this post or advise me to move it.
There are only 10 types of people in this world; Those who understand binary, and those who don't.
-- modified at 17:30 Friday 27th January, 2006
|
|
|
|
|
bump to the first page. I still need help on this issue.
There are only 10 types of people in this world; Those who understand binary, and those who don't.
|
|
|
|
|
Hi,
I heard 2.0 is not compatible with 1.1. Is that truee? and do all the code written by vs 2003 can be compiled without change?
I am thinking move to vs 2005!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Are they compatible? In most cases, yes! But it depends on the specific code.
Does all code written in 2003 compile without change in 2005? No, but most does. Some modification will be necessary in some places, but again, it depends on the specific code.
You can read through the Breaking Changes in .NET Framework 2.0[^] for more information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: You can read through the Breaking Changes in .NET Framework 2.0[^] for more information.
Dave,
Thanks for the link. I've been wondering about any issues between 1.1 and 2.0 migrating.
Paul
|
|
|
|
|
I have a Dataset that has returned data from SQL Server. I would like to read in what the SQL Server type is for each Column and what the size is. For instance is the column is a nvarchar(20) I would like to be able to find out that the column has a size of 20. Is this possible? I can't seem to figure this out even using the DataColumn.
DataColumn.MaxLength is returning -1.
I tried also SQL Command:
SELECT COL_LENGTH('MyTable','MyColumnName') AS 'MyColumnLength'
it's running fine in SQL Query analyzer but it's returning 0 in C#
Any idea?
thanks
|
|
|
|
|
dear all,
I want to know manually dispose() is better than destructor().If you know that, sent message for me. (thanks.)
With Regards.
hk,linn
|
|
|
|