|
Set the Autosize property of ToolStripDropDownButton to false and then set width as you want.
|
|
|
|
|
Ok it is official that I have asked the dumbest question of the day.
Thanks for you help!!
|
|
|
|
|
Not actually. Believe me.
|
|
|
|
|
hello friends,
I want zooming functionality in media player.
|
|
|
|
|
Then go find a component that offers such functionality.
Google would probably be a good place to start.
|
|
|
|
|
I search a lot on google but did not find anything.
|
|
|
|
|
Then you use Google to build yourself a list of possible components, then go to each manufacturer of that component and see if thye offer the zoom support you require.
|
|
|
|
|
i import a crystal report dll "CRAXDDRT.dll" . and i want to connect report database to sqlserver using code vb.net . in that dll has a method is logonserver(pDllname,pServer,pDatabase,pUserID,pPassword). and i want to know what is "pDllname" ?
modified on Sunday, July 12, 2009 11:24 PM
|
|
|
|
|
At a guess it's pointer to a string holding the name of a dll.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
|
Staff
Good afternoon, where with new icons to put in my application, especially the buttons? 
|
|
|
|
|
Hi, welcome to the forums.
You will find here on CodeProject a bunch of articles that will introduce you into creating your own controls. The reason I say this is because I have absolutely no idea what the hell your question was about, and all I saw was the word 'button', which made me think you want a new type of button.
|
|
|
|
|
Group
I am not very good in English, then I apologize for not being clear.
I just want a link or download site to get icons to put on and my Application, example icon to add the button to add, to look better on screen. 
|
|
|
|
|
I use Google image search[^, but be aware that most icons are copyrighted.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
modified on Monday, July 13, 2009 7:55 AM
|
|
|
|
|
A google search for public domain icons will give you the results. These icons are in the public domain, so anybody can use them. They might put restrictions on them though - you may not be able to use them in commercial applications; however these restrictions are fairly few and far between
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
If you are using Microsoft Visual Studio 2005, you can find a compressed archive in this folder:
C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary
Extract the archive by using WinRAR or WinZip, then you can use everything, include icons in the extracted folder.
Do similar things with other versions of Microsoft Visual Studio .NET
Good luck!
chilinhhacker
|
|
|
|
|
Axialis has several sets of icons which should fit for most tasks:
http://www.axialis.com/free/icons/[^]
The icons are licensed under the Creative Commons Attribution License.
|
|
|
|
|
Hi
I have a class, that contains 13 functions, if i declare one among them as static.
While doing the calling of that static function, will it use memory until the application is closed.
Thanks
|
|
|
|
|
Weird question. why would it use memory ? ALL your code is in memory for the lifetime of the application. Any code that uses memory, static or not, will use memory when it runs. If it doesn't clean itself up properly, you have to close your eyes and pretend the GC will take care of it for you, but it probably won't.
memory usage is never a reason to not write a static method.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
vb does not have 'static' functions? Do you mean 'shared'? If so, the routine is available without declaring a new instance of the class it belongs to but the content of the routine is not allocated until called.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Hello everybody,
I hope someone can help me out with the right idea how to solve a listbox issue. The challenge is to change the color of listbox items depending upon a flag (TRUE if successfully processed). I tried to integrate several snippets already, but there's always something that makes it fail...
Ok.. some important information in advance:
- The listbox 'lstTargetFiles' is bound to a List (Of FileInfo).
- It shows the filenames of all the files in that list.
- Due to databinding issues I can't use a listview control.
For changing the color of successfully processed files in that list I owner-draw the listbox. The drawitem event works fine on initialization:
Private Sub lstTargetFiles_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles lstTargetFiles.DrawItem
' Draw the background of the ListBox control for each item. Create a new Brush and
' initialize to a Black colored brush by default.
e.DrawBackground()
Dim myBrush As Brush = Brushes.Black
' Determine the color of the brush to draw each item based on the index of the item to draw.
Select Case e.Index
Case 0
myBrush = Brushes.Red
Case 1
myBrush = Brushes.Orange
Case 2
myBrush = Brushes.Purple
End Select
' Draw the current item text based on the current Font and the custom brush settings.
e.Graphics.DrawString((CType(sender, ListBox)).Items(e.Index).ToString(), e.Font, myBrush, e.Bounds, StringFormat.GenericDefault)
' If the ListBox has focus, draw a focus rectangle around the selected item.
e.DrawFocusRectangle()
End Sub This results in the first three items colored.
But how can reach my particular goal? Can I pass something like a flag or a user argument which could be triggered? I couldn't even find a way how to raise the event manually when the flag is true...
Thank you for your advice,
Michael
|
|
|
|
|
Meanwhile I found a workaround, but it's not very elegant so I just want to inform others about a working solution - and maybe inspire the gurus here to throw some of their 'cheap tricks' on me
What at least works is:
- I set the listbox's SelectionMode property to 'MultiExtended'
- After processing a file, I set its relevant listbox item to 'selected' in the same loop
Me.lstTargetFiles.SetSelected(Me.lstTargetFiles.Items.IndexOf(fileInfoItem), True)
- In the listbox's DrawItem event I (additionally) set the font for selected items to yellow
If e.State And DrawItemState.Selected Then myBrush = Brushes.Yellow
I'd really be interested in a more sophisticated approach, so please let me know if you have a better idea!
Thanks again
Michael
|
|
|
|
|
One thing that would work for this is to create a separate List (call it processedFilesList) derived from List(Of String) and then file paths/names would be added to that list when they are successfully processed, and removed if necessary when they change. In this new list Override the Add , Insert , Remove etc methods so that you can trigger an event when the list changes. Handle that event in your Form and trigger a repaint. In your lstTargetFiles_DrawItem include something like:
If processedFilesList.Contains((CType(sender, ListBox)).Items(e.Index).ToString())
myBrush = Brushes.Red
Else
myBrush = Brushes.Green
EndIf
Hope that helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
WOW - this one, Henry, sounds like an extremely smart and cool idea how to trick the limitation I faced.
Thank you in advance (without having tested it yet)
Michael
|
|
|
|
|
Hello all,I need some help here on reading specified column and row of data from the Excel Sheet. I have manage to read the full sheet into my datagridview now,but what I need is to read specified column and row but not all.I'll try to explain it like below:
Its a table in my excel that the table start at location in the PO Detail spreadsheet of A4 until G4. And thats the Header of the table,the Header name of each column are Product Code, Description , Internal Product Code, Selling Price , Order Quantity, Amount and other.
But currently my code now read all the data into my datagridview which is not convenient for me to do further process with some unuseful details inside the PO Detail excel sheet. Can anyone teach me how could you retrieve only the column and row I need and put into the datagridview?
This is the code I have currently which read everything into my datagridview:
<br />
Imports System.Data<br />
Imports System.Data.OleDb<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim MyConn As System.Data.OleDb.OleDbConnection<br />
Dim DtSet As System.Data.DataSet<br />
Dim MyCommand As System.Data.OleDb.OleDbDataAdapter<br />
<br />
Try<br />
MyConn = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; Data Source='c:\OrderingFormat.xls'; Extended Properties=Excel 8.0;")<br />
MyCommand = New System.Data.OleDb.OleDbDataAdapter("select * from [PO Detail$] ", MyConn)<br />
MyCommand.TableMappings.Add("Table", "TestTable")<br />
DtSet = New System.Data.DataSet<br />
MyCommand.Fill(DtSet)<br />
DataGridView1.DataSource = DtSet.Tables(0)<br />
MyConn.Close()<br />
<br />
Catch ex As Exception<br />
<br />
End Try<br />
End Sub<br />
Thank you for reading and hope someone can give me some guidance on this issue.
Regards
Drex
|
|
|
|