|
Sadaf Naeem wrote: i am sorry if u mind it
It's not just him. It's an abuse of CodeProject resources and considered bad behavior for any member to do it.
Sadaf Naeem wrote: I needed help as soon as possible
So does everyone, you're not special? Try reading these posting guidelines[^].
led mike
|
|
|
|
|
Does anyone happen to know how to extend the limit of the RichTextBox of Visual Studio .Net
so i can open text files up to 4Gb. Can anyone point me in the right direction...
Thanks.
|
|
|
|
|
jazy1 wrote: Can anyone point me in the right direction...
Even if the system could do that it would be bad practice. The preferred method is to buffer the data in far smaller chunks in response to the user navigating through the file. Of course this is no small undertaking.
led mike
|
|
|
|
|
I guess so. Thanks for your reply...
|
|
|
|
|
Please help.. im having a difficulties to figure out this problem...
Is it possible to cancel or not to invoke the MyBase.Deactivate in vb windows Forms??
I have an application which starts up after the windows environment load in XP... and my application will automatically loads up.. and i need to make it stay the form active and has focus on it under the desktop windows environment.. for the first load it has the focus and of course the active form.. but i dont know what's happening after when my win application load? it lost its focus and its title bar above becomes deactivated and lost focus or not to be active form.. may be because there is still some windows services are still loading by the OS?... correct me if im wrong...
even though i've already removed all the auto-start up application in my pc except my application?
so what i need is a code in my winform application to make it sure that when the deactivation event is trigger? then it will just trigger again some functions or event function to re-activate my win application and stay active inside the desktop environment...
and ohhh.. reminders.. my application is accepting input from a barcode reader that's why i need to make it sure my application always got the focus.. because i assign a pc which has only one functionality, there's no other winforms application is running except my winforms, in such a reason...
here's my sample code thats won't work enough...
this code only just select the icon in the task bar but not to re-activate the whole winform and can accept input from the barcode reader..
*********************************
<br />
Private Sub MaskedTextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles MaskedTextBox1.LostFocus<br />
Me.MaskedTextBox1.Focus()<br />
MaskedTextBox1.Select(0, Me.MaskedTextBox1.TextLength)<br />
'Me.MaskedTextBox1.SelectAll()<br />
End Sub<br />
<br />
Private Sub frmTimeLogger_Deactivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Deactivate<br />
Try<br />
Me.Activate()<br />
Me.Focus()<br />
Me.MaskedTextBox1_LostFocus(sender,e)<br />
Catch ex As Exception<br />
MsgBox(ex.ToString())<br />
End Try<br />
End Sub<br />
***************************************
please anybody who have an idea about this?? please help...
thanks for kindness in advance...
modified on Tuesday, March 4, 2008 1:17 AM
|
|
|
|
|
hi,
i want to show checkbox near headertext column of datagrid in VB.NET window application.how to do it?guide me how to do
|
|
|
|
|
i want to upload an image in sql server.am doing an windows application .i need the code for the above......pls reply
|
|
|
|
|
|
how can i change the title bar context menu to my own context menu......
|
|
|
|
|
|
using WndProc:
protected override void WndProc(ref Message m)
{
const int WM_CONTEXTMENU = 0x007B;
if (m.Msg == WM_CONTEXTMENU)
{
this.Dlg_Menu.Show(Cursor.Position.X, Cursor.Position.Y);
return;
}
base.WndProc(ref m);
} See my stuff on: <img src="http://www.gstatic.com/codesite/ph/images/code_small.png" />
|
|
|
|
|
Hi,
We are implementing explorer like a virtual folder in windows vista and while creating "New" menu along with our customized context menu it is not loading default sub menu items("New Text document", "New Word Document" etc as shown in snapshot Windows_contextmenu.jpg (http://www.driveway.com/c6f1j0y1y3)) for the "New" menu of our customized explorer as shown in snapshot customeized_contextmenu.jpg ( http://www.driveway.com/h3q9s0x9q2 )
We are creating the shell folder using SHCreateShellFolderView() routine.
any suggestions..... how to solve this...........
aditya
modified on Monday, March 3, 2008 5:51 AM
|
|
|
|
|
in my project i have three forms.
in form1 there are two buttons.if we click one button form2 will display and this form should be closed.and in form3 i have one button when we click form1 will display and this form will closed.
how can i handle this withou creating the objects.thanking you.
|
|
|
|
|
rizwan1 wrote: withou creating the objects
Not sure what you mean by this.
If you have several forms and only one should show at a time, the best way is to create the forms as controls, and show them all, one at a time, on the one form.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I'm looking for a control for Winform which like DayPilot,But DayPilot is only for webform.
I want to use the scheduling function in my winform applications.
Free Component is best.
Could anyone Help or give me any tips ? Thanks.
|
|
|
|
|
Hi everyone,
Does anybody know how to list all tollStripMenuItems of a MenuStrip
Thanks
Paulo
|
|
|
|
|
You may access each ToolStripMenuItem which are under main menu strip, using 'for each' structure of code. Following is a small code snippet which will return you all items of a given menu strip object-
----------------------------------------------
For Each MnuItm As ToolStripMenuItem In Me.MenuStrip1.Items
MsgBox(MnuItm.Text)
For Each DropItm As ToolStripMenuItem In MnuItm.DropDownItems
MsgBox(DropItm.Text)
Next
Next
-----------------------------------------------
I hope this helps.
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hi friends.
How to add contextmenu in form titlebar..
modified on Thursday, February 28, 2008 1:55 AM
|
|
|
|
|
See here: http://www.codeproject.com/script/Forums/View.aspx?fid=387161&msg=2446210
www.wickedorange.com
www.andrewvos.com
|
|
|
|
|
Hi
I'm trying to use a separate form with a webbrowser control on it to show context-sensitive help for my application (don't ask why I don't use the Help class plz). Let's call this form HelpBrowser. When the user requests help for the first time, HelpBrowser is created from the main thread and shown using HelpBrowser.Show() as I want it modeless.
This all works fine except for this; if the HelpBrowser is already open and the user opens a dialog box (modal form) from the main form, HelpBrowser can not be accessed by user anymore as long as the dialog box is open (it can no be moved, resized, scrolled, etc. anymore but it still shows new help if user requests it). I guess this is because the modal dialog box freezes all other open forms while it is open. However, if HelpBrowser is opened for the first time from a dialog box everything works fine.
Is there a way to keep control of the HelpBrowser form at all times even when a dialog box is opened from the main form, while still keeping everything in one process? Passing the main form as an argument when calling Show doesn't make any difference.
Thanks
|
|
|
|
|
The way most apps handle this is to make the help type program, a seperate program. That's what VS does, for example.
A modal dialog is going to stop any other dialog in the same application from responding.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I see.
What then would be a good way to send help requests to the Help program?
Thanks.
|
|
|
|
|
Hello I'm a newbie in form design
I'm trying to figure out how a toolstripSplitButton can be used in a toolstrip
Can I found some example ?
|
|
|
|
|
Hi,
ToolStripSplitButton is used to provide several option under a single button (similar to MenuItems).
Each option can be coded to perform certain taks on click events. Below is the code snippet which creates ToolStripLabel,ToolStripSplitButton,ToolStripComboBox,ToolStripProgressBar etc.
BEGIN CODE
Imports System
Imports System.Data
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Data.SqlClient
public class MainClass
Shared Sub Main()
Dim form1 As Form = New Form1
Application.Run(form1)
End Sub
End Class
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Public Class Form1
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.ToolStrip1 = New System.Windows.Forms.ToolStrip
Me.ToolStripButton1 = New System.Windows.Forms.ToolStripButton
Me.ToolStripLabel1 = New System.Windows.Forms.ToolStripLabel
Me.ToolStripSplitButton1 = New System.Windows.Forms.ToolStripSplitButton
Me.ToolStripDropDownButton1 = New System.Windows.Forms.ToolStripDropDownButton
Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator
Me.ToolStripComboBox1 = New System.Windows.Forms.ToolStripComboBox
Me.ToolStripTextBox1 = New System.Windows.Forms.ToolStripTextBox
Me.ToolStripProgressBar1 = New System.Windows.Forms.ToolStripProgressBar
Me.ToolStrip1.SuspendLayout()
Me.SuspendLayout()
'
'ToolStrip1
'
Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripButton1, Me.ToolStripLabel1, Me.ToolStripSplitButton1, Me.ToolStripDropDownButton1, Me.ToolStripSeparator1, Me.ToolStripComboBox1, Me.ToolStripTextBox1, Me.ToolStripProgressBar1})
Me.ToolStrip1.Location = New System.Drawing.Point(0, 0)
Me.ToolStrip1.Name = "ToolStrip1"
Me.ToolStrip1.Size = New System.Drawing.Size(647, 25)
Me.ToolStrip1.TabIndex = 0
Me.ToolStrip1.Text = "ToolStrip1"
'
'ToolStripButton1
'
Me.ToolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.ToolStripButton1.Image = New Bitmap("figure2.bmp")
Me.ToolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta
Me.ToolStripButton1.Name = "ToolStripButton1"
Me.ToolStripButton1.Text = "ToolStripButton1"
'
'ToolStripLabel1
'
Me.ToolStripLabel1.Name = "ToolStripLabel1"
Me.ToolStripLabel1.Text = "ToolStripLabel1"
'
'ToolStripSplitButton1
'
Me.ToolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.ToolStripSplitButton1.Image = New Bitmap("figure2.bmp")
Me.ToolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta
Me.ToolStripSplitButton1.Name = "ToolStripSplitButton1"
Me.ToolStripSplitButton1.Text = "ToolStripSplitButton1"
'
'ToolStripDropDownButton1
'
Me.ToolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.ToolStripDropDownButton1.Image = New Bitmap("figure2.bmp")
Me.ToolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta
Me.ToolStripDropDownButton1.Name = "ToolStripDropDownButton1"
Me.ToolStripDropDownButton1.Text = "ToolStripDropDownButton1"
'
'ToolStripSeparator1
'
Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
'
'ToolStripComboBox1
'
Me.ToolStripComboBox1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText
Me.ToolStripComboBox1.Name = "ToolStripComboBox1"
Me.ToolStripComboBox1.Size = New System.Drawing.Size(121, 25)
Me.ToolStripComboBox1.Text = "ToolStripComboBox1"
'
'ToolStripTextBox1
'
Me.ToolStripTextBox1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText
Me.ToolStripTextBox1.Name = "ToolStripTextBox1"
Me.ToolStripTextBox1.Size = New System.Drawing.Size(100, 25)
Me.ToolStripTextBox1.Text = "ToolStripTextBox1"
'
'ToolStripProgressBar1
'
Me.ToolStripProgressBar1.BackColor = System.Drawing.Color.Black
Me.ToolStripProgressBar1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText
Me.ToolStripProgressBar1.Name = "ToolStripProgressBar1"
Me.ToolStripProgressBar1.Size = New System.Drawing.Size(100, 22)
Me.ToolStripProgressBar1.Text = "ToolStripProgressBar1"
Me.ToolStripProgressBar1.Value = 66
'
'Form1
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(647, 125)
Me.Controls.Add(Me.ToolStrip1)
Me.Name = "Form1"
Me.Text = "UseToolstrip"
Me.ToolStrip1.ResumeLayout(False)
Me.ToolStrip1.PerformLayout()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents ToolStrip1 As System.Windows.Forms.ToolStrip
Friend WithEvents ToolStripButton1 As System.Windows.Forms.ToolStripButton
Friend WithEvents ToolStripLabel1 As System.Windows.Forms.ToolStripLabel
Friend WithEvents ToolStripSplitButton1 As System.Windows.Forms.ToolStripSplitButton
Friend WithEvents ToolStripDropDownButton1 As System.Windows.Forms.ToolStripDropDownButton
Friend WithEvents ToolStripSeparator1 As System.Windows.Forms.ToolStripSeparator
Friend WithEvents ToolStripComboBox1 As System.Windows.Forms.ToolStripComboBox
Friend WithEvents ToolStripTextBox1 As System.Windows.Forms.ToolStripTextBox
Friend WithEvents ToolStripProgressBar1 As System.Windows.Forms.ToolStripProgressBar
End Class
END CODE
I hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hi I am crating windows application ,Here i am able to insert the data
sql to Excel but i have to apply the formulas like (=exact(A1:b1))so i have to insert according to the conditions
pls help me
|
|
|
|