PC Review


Reply
Thread Tools Rate Thread

A couple questions

 
 
jy836
Guest
Posts: n/a
 
      23rd Feb 2004
1) When using images for an application (such as in an ImageList or as the
image for a button), are the images embedded in the application or must the
image files be included in the setup package?

2) Is there a way to adjust the individual column widths of a DataGrid which
has no TableStyles or GridColumnStyles? Also, is there a way to make it
impossible for the user to resize the columns and rows?


 
Reply With Quote
 
 
 
 
james
Guest
Posts: n/a
 
      23rd Feb 2004
#1. you can do either way. Embed them as a resource or add them to your
install package and have your app look for them in a particular directory.
#2. Not sure.
james

(I know, not a lot of help)

"jy836" <(E-Mail Removed)> wrote in message
news:B1e_b.104563$jk2.474135@attbi_s53...
> 1) When using images for an application (such as in an ImageList or as the
> image for a button), are the images embedded in the application or must

the
> image files be included in the setup package?
>
> 2) Is there a way to adjust the individual column widths of a DataGrid

which
> has no TableStyles or GridColumnStyles? Also, is there a way to make it
> impossible for the user to resize the columns and rows?
>
>



 
Reply With Quote
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      23rd Feb 2004
Hi,

2) You need a tablestyle to adjust the column width. You need to create a
new datagrid to prevent the column and row resize.

Public Class NoResizeDataGrid

Inherits DataGrid

Protected Overrides Sub OnMouseDown(ByVal e As
System.Windows.Forms.MouseEventArgs)

Dim hti As DataGrid.HitTestInfo = Me.HitTest(New Point(e.X, e.Y))

If hti.Type = DataGrid.HitTestType.ColumnResize Or hti.Type =
DataGrid.HitTestType.RowResize Then

Return 'no baseclass call

End If

MyBase.OnMouseDown(e)

End Sub





Protected Overrides Sub OnMouseMove(ByVal e As
System.Windows.Forms.MouseEventArgs)

Dim hti As DataGrid.HitTestInfo = Me.HitTest(New Point(e.X, e.Y))

If hti.Type = DataGrid.HitTestType.ColumnResize Or hti.Type =
DataGrid.HitTestType.RowResize Then

Return 'no baseclass call

End If

MyBase.OnMouseMove(e)

End Sub

End Class



Ken

-----------------------------

"jy836" <(E-Mail Removed)> wrote in message
news:B1e_b.104563$jk2.474135@attbi_s53...
> 1) When using images for an application (such as in an ImageList or as the
> image for a button), are the images embedded in the application or must

the
> image files be included in the setup package?
>
> 2) Is there a way to adjust the individual column widths of a DataGrid

which
> has no TableStyles or GridColumnStyles? Also, is there a way to make it
> impossible for the user to resize the columns and rows?
>
>



 
Reply With Quote
 
jy836
Guest
Posts: n/a
 
      23rd Feb 2004
"james" <jjames700ReMoVeMe at earthlink dot net> wrote in message
news:eiKVSob%(E-Mail Removed)...
> #1. you can do either way. Embed them as a resource or add them to your
> install package and have your app look for them in a particular directory.
> #2. Not sure.
> james
>
> (I know, not a lot of help)


How do you embed an image as a resource (for a button)? Simply by adding an
image to the image property of a button? Thanks.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
couple of questions cjbarron5 Microsoft Excel Misc 10 2nd Jun 2008 01:46 AM
Couple of Questions Toysforfids Microsoft Excel Misc 4 14th Sep 2006 05:20 AM
Couple of questions Alon Brodski Windows XP Networking 0 12th Jun 2004 10:07 AM
a couple of questions please...... =?Utf-8?B?Y2F0aGVyaW5lc2Vl?= Windows XP General 4 18th Jan 2004 01:51 AM
A couple of questions Vel Microsoft Access Getting Started 1 19th Sep 2003 05:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 PM.