tabpage conceal
hi, everybody,
I want to conceal a tabpage from the user.
I find tabpage has the hide method, I call it,
but it dosen't work. The tabpage dosen't hide.
Dose anyone have the same problem?
Thanks. Tag: can I have A datagrid that is invisible Tag: 59701
Form settings
Hi
What settings do I need so my main form touches the task bar but dope snot
go over it. This is just like other applications do. Also, what happens on
windows xp where a window's borders are thicker than on windows 2000?
Thanks
Regards Tag: can I have A datagrid that is invisible Tag: 59697
BeginUpdate/EndUpdate causing mouse move
I have implemented a custom control with BeginUpdate/EndUpdate
functionality. The implementation of BeginUpdate basically sends the
WM_SETREDRAW message by P/Invoking SendMessage and setting wparam to 0 and
EndUpdate sends the same message with wparam = -1. When I invoke these
methods on my custom control, I am also getting the MouseMove event. Has
anyone else seen this? Is there a way to prevent the MouseMove event on the
control when BeginUpdate/EndUpdate is called?
Thanks,
Abhishek Tag: can I have A datagrid that is invisible Tag: 59692
WinForms inside Browser
Can I start the Windows Form Application inside the IE Browser, like a
Applet.
Some article or code sample appr.
Thx
Nikolay Tag: can I have A datagrid that is invisible Tag: 59691
run access report from VB .net
I have some nice reports in MS Access that I want to run
from an application in VB.net, is that possible? Like we
could do in vb 5...
Anyone can help me? Tag: can I have A datagrid that is invisible Tag: 59685
ListView row height and custom text
I am working with the ListView control and I only seem to
be able to place regular text in each cell. I would like
to place say a paragraph of text (that does not require
the user to lengthen the column width), basically a word-
wrap function inside a cell. I cannot seem to be able to
place say a label control into a ListViewItem. Does
anyone know if you can place controls other than text
strings into a listview item or if there's an easy way to
make column widths word-wrap instead of requiring resizing?
Thanks so much! Tag: can I have A datagrid that is invisible Tag: 59678
Databinding to custom class
I have a custom class with its properties bound to controls on a Form. If I
change the values of the controls, the changes are carried back to the
object. Is there any way to reverse this - so that programmatic changes
made to the object are reflected back to the form? I'm not making a
list-type object, so I don't want to have to use IBindingList.
Thanks,
Dave Hagedorn Tag: can I have A datagrid that is invisible Tag: 59677
Ser printdialog to default printer?
Hi,
There are four printers installed on our customer network.
Each pc has a defaulted printer from one of those. My
customer would like to see the his/her defaulted printer
on PrintDialog class by default. Means when PrintDialog
loads then the defaulted printer be high lighted.
Currently the last printer in the list high lighted.
Thanks in advance. Tag: can I have A datagrid that is invisible Tag: 59670
Can anyone help with user controls
Hi, can anyone help me with passing values from a user
control to a parent form in a windows application. I have
a button in my user control object that reads a value when
clicked. How do I return that object to the parent form
and trigger an event to update the form?
thanks in advance! Tag: can I have A datagrid that is invisible Tag: 59667
How to prevent Form submission if users hit enter.
In my Web Form I have more than one Textbox for user input. If I hit
enter to any Textbox its submitting the form. How can I prevent Form
submission if users hit enter to the textbox? I want to submit the
form only when user will hit submit button.
Thanks for any help.
Pamela. Tag: can I have A datagrid that is invisible Tag: 59666
Strange ComboBox Behavior
I am experiencing strange behavior working with multiple
ComboBoxes on a form.
I have several ComboBoxes that I configure in code the
way I have in the past (only a single ComboxBox on the
form). Whatever I configure the last ComboxBox to, it
changes all the previous ComboBoxes to the same displayed
value.
Here is the code:
private void Form1_Load(object sender, System.EventArgs e)
{
da.Fill(ds.tblQuestions);
daTypes.Fill(ds.tblQuestionTypes);
BindCB1();
BindCB2();
}
private void BindCB1()
{
comboBox1.DataSource = ds;
comboBox1.DisplayMember
= "tblQuestionTypes.QuestionTypeDesc";
comboBox1.ValueMember
= "tblQuestionTypes.QuestionTypeNumber";
comboBox1.DataBindings.Add("SelectedValue",
ds, "tblQuestions.Question01Type");
comboBox1.DropDownStyle.Equals("DropDownList");
}
private void BindCB2()
{
comboBox2.DataSource = ds;
comboBox2.DisplayMember
= "tblQuestionTypes.QuestionTypeDesc";
comboBox2.ValueMember
= "tblQuestionTypes.QuestionTypeNumber";
comboBox2.DataBindings.Add("SelectedValue",
ds, "tblQuestions.Question02Type");
comboBox2.DropDownStyle.Equals("DropDownList");
}
Any help is greatly appreciated. Tag: can I have A datagrid that is invisible Tag: 59665
nullref in base Form object
I'm occasionally seeing this exception in our application
and have no idea what could be causing it, making it very
difficult to debug this error:
System.NullReferenceException: Object reference not set to
an instance of an object
at System.Windows.Forms.ChildWindow.Callback(IntPtr hWnd,
Int32 msg, IntPtr v ...)
any ideas ?
thanks! Tag: can I have A datagrid that is invisible Tag: 59655
Getting the actual size of my form
Hi !
I want my app to fit the desktops boundries (like the
taskbar) you get the available size, calling
Screen.PrimaryDevice.workingArea. That works fine.
But when i set the height of my form to that of the
workingArea it is the menu height to large. So somehow
the menu doesn't cares about the height of the form.
First question, how do i get the height of the menu to
substract it from the actual height of the form.
The second thing is, to determine the actual
drawingRectangle of my form, that mean first without the
menu, okay. But the second thind is that calling
this.ClientRectangle seems not to substract the Window
Caption Bar with the maximizebox and close button.
Second question, how do i get the height of the Forms
Caption Bar.
Thanks for the help,
nick Tag: can I have A datagrid that is invisible Tag: 59651
TreeNode collection without user data
Hello,
TreeNode collection inserted into TreeView does not (by my investigations)
contain any reference to user supply data which could identify the node or
could link some user data to the node. So how to achieve the aim.
Ondra. Tag: can I have A datagrid that is invisible Tag: 59644
Message Box Globalization
Hi,
First of all, sorry if this post is posted in the wrong
newsgroup.
My problem is the following:
I'm building an VB.NET application for use in 8 countries.
I've managed to create all windows forms for those 8
countries using the globalization technics. My problem is
with message box strings. What I need is to have a
resource file (like those in VB6) with MsgCode and Msg for
those 8 countries. I need a function (function getMsg
(msgCode as string) as string) so I can use it like
messagebox.show(getMsg("xpto")).
Any help on these two subjects (resource file and
function) whould be very appreciated. This is a bit urgent.
Best regards all
Miguel Figueiredo Tag: can I have A datagrid that is invisible Tag: 59639
MDI FORMS
Hi All!
Does anybody know how to collapse expanded windows to their original state?
(not layout)
Thanks! Tag: can I have A datagrid that is invisible Tag: 59630
How make item in listbox selected when mouse over it
Hi all,
When mouse move over the item I get the position of mouse anh then get index
of item.
When listbox control have scroll bar, how can I get i temin mouse position.
Please tell me!
Thank in advance. Tag: can I have A datagrid that is invisible Tag: 59626
chain of responsibility
Has anyone got a practical C# example of using the chain of responsibility
in Windows Forms?
For example, I have a button inside a container inside a TabPage, etc.
If I click on the button I want to send a notify event up through the
hierarchy.
Thanks,
Jamie. Tag: can I have A datagrid that is invisible Tag: 59625
Form Resize
Hi,
When i do a dock change (meaning changing a component's
docking property) the screen flickers. Is there a way to
control flickering effect and provide a smooth resize.
Thanks,
Jagan Mohan Tag: can I have A datagrid that is invisible Tag: 59622
How to drop down menu at run time?
hi,
im building a voice enabled application using VC#,in which
we try to control the menu using Voice commands.. for
example if thereb are menus like .. " file " " edit" ..etc
then when i say file.. i want the file menu to drop down..
how do i do that?
plz reply soon
thank you
arjun Tag: can I have A datagrid that is invisible Tag: 59621
combo box selectIndex problem
Hi All,
I have a problem, if I have a combo box, displaying a name with a
valueMember,
when I have a selectIndexChange, I need to get back the value to do the
binding a datagrid, but if the form load, it will fail because selectIndex
is out of range Tag: can I have A datagrid that is invisible Tag: 59616
what .cab should be include in the installation package?
I finish a .net cf application (using SQL CE 2.0), and package it to a .cab
file.
This application is supposed to be run on PPC2003 PPC, should I include .net
cf and SQL CE 2.0 installationn file in the package? Tag: can I have A datagrid that is invisible Tag: 59613
Can Microsoft sue me?
I'm designing GUI for my WinForm and I really liked the Outlook 2003 so I
stared to put list view in a middle, IE control on right and I developed
similar bar that outlook 2003 have on the left. This software is to be into
Electrical Industry has nothing to do with messaging, still it looks very
familiar to outlook...(someone who is used outlook before wouldn't have
problem navigating) now the question. Can I get into trouble by using MS
design?
Main question: can you use the MS design (the controls layout) in your
software? Or do you need special permissions for that??
Thanks in advance Tag: can I have A datagrid that is invisible Tag: 59605
App.EnableVisualStyles kills my Toolbar icons
I am calling Application.EnableVisualStyles() before
calling Application.Run() as prescribed.
I have a Toolbar control docked at the top of the main
program's window. This control is attached to an
ImageList control set for 16x16 bit icons.
When the main window displays there are no icons
displayed on the toolbar buttons.
If I run the app without calling EnableVisualStyles the
toolbar button icons display properly.
Any ideas?
Thanks. Tag: can I have A datagrid that is invisible Tag: 59603
Building menus - Design time / Run time
Hi,
I'm in a bit of indecision now, should I build my menus in design time/run
time. I feel like doing them in run time but after a while I see this
massive amount of code that put me off a bit. Feels like working in Java :P
Anyone has any input?
thanks.
/m Tag: can I have A datagrid that is invisible Tag: 59601
Applicartion Block for User Interface Process.
Has anybody made use of the Application Block for User Interface Process for
a Real-Time Desktop Applicaiton ? Tag: can I have A datagrid that is invisible Tag: 59597
Anchor problem on dynamic form
I have a form inside my application (mdi child) to which
I add a varying number of custom display objects at
runtime. To do this, I suspend layout, add the items,
and then resume layout. I am having a problem with the
header image of the page. Since the form is resizable, I
am trying to anchor a picturebox to the top of the form.
When I do this, the image is drawn off center by 100
pixels to the left or so (and moves with a resize). If I
anchor it top and left, it works fine but is not centered
in the screen (and does not move with a resize, as one
would expect). Has anyone seen this type of behavior?
Thanks in advance.
-Rob Tag: can I have A datagrid that is invisible Tag: 59596
How to have a control docked outside the form?
I want to have a control with no visibility.
Something like the error control, so I want it docked
outside my form in the bottom of the screen.
Anybody knows how to do that? Tag: can I have A datagrid that is invisible Tag: 59594
Bizarre bug: Can't close form
Hi,
One day, when I was testing my application, I tried to use the
main form's close button to exit it, but it didn't work. I right-clicked the
taskbar's icon and used the close menu item, but it didn't work either. I
stopped execution and added an exit menu item (using Form.Close(); the
application is in the early stages of development), but it also didn't work
when I ran it again. What's wrong? I haven't done anything out of the
ordinary to prevent the form from closing!
Here is the form's code. I'm still using VB.NET 2002 & .NET 1.0.
Help!
' Declaração de importações
Imports System.Windows.Forms
Imports Normando.Focus.Controls
Public Class Main
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
' Associa os eventos da botão Serviços
AddHandler ServicesPage.Click, AddressOf Pages_Click
AddHandler ServicesPage.MouseEnter, AddressOf Pages_MouseEnter
AddHandler ServicesPage.MouseLeave, AddressOf Pages_MouseLeave
' Associa os eventos da botão Cadastros
AddHandler RecordsPage.Click, AddressOf Pages_Click
AddHandler RecordsPage.MouseEnter, AddressOf Pages_MouseEnter
AddHandler RecordsPage.MouseLeave, AddressOf Pages_MouseLeave
' Associa os eventos da botão Relatórios
AddHandler ReportsPage.Click, AddressOf Pages_Click
AddHandler ReportsPage.MouseEnter, AddressOf Pages_MouseEnter
AddHandler ReportsPage.MouseLeave, AddressOf Pages_MouseLeave
' Associa os eventos da botão Opções
AddHandler OptionsPage.Click, AddressOf Pages_Click
AddHandler OptionsPage.MouseEnter, AddressOf Pages_MouseEnter
AddHandler OptionsPage.MouseLeave, AddressOf Pages_MouseLeave
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
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.
Friend WithEvents Tray As System.Windows.Forms.NotifyIcon
Friend WithEvents MenuBar As System.Windows.Forms.MainMenu
Friend WithEvents Pages As System.Windows.Forms.Panel
Friend WithEvents OptionsPage As System.Windows.Forms.Label
Friend WithEvents ReportsPage As System.Windows.Forms.Label
Friend WithEvents RecordsPage As System.Windows.Forms.Label
Friend WithEvents ServicesPage As System.Windows.Forms.Label
Friend WithEvents Page As System.Windows.Forms.Panel
Friend WithEvents FileMenu As System.Windows.Forms.MenuItem
Friend WithEvents FileExit As System.Windows.Forms.MenuItem
Friend WithEvents HelpMenu As System.Windows.Forms.MenuItem
Friend WithEvents HelpContents As System.Windows.Forms.MenuItem
Friend WithEvents HelpSeparator As System.Windows.Forms.MenuItem
Friend WithEvents HelpAbout As System.Windows.Forms.MenuItem
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.Tray = New System.Windows.Forms.NotifyIcon(Me.components)
Me.MenuBar = New System.Windows.Forms.MainMenu()
Me.FileMenu = New System.Windows.Forms.MenuItem()
Me.FileExit = New System.Windows.Forms.MenuItem()
Me.HelpMenu = New System.Windows.Forms.MenuItem()
Me.HelpContents = New System.Windows.Forms.MenuItem()
Me.HelpSeparator = New System.Windows.Forms.MenuItem()
Me.HelpAbout = New System.Windows.Forms.MenuItem()
Me.Pages = New System.Windows.Forms.Panel()
Me.OptionsPage = New System.Windows.Forms.Label()
Me.ReportsPage = New System.Windows.Forms.Label()
Me.RecordsPage = New System.Windows.Forms.Label()
Me.ServicesPage = New System.Windows.Forms.Label()
Me.Page = New System.Windows.Forms.Panel()
Me.Pages.SuspendLayout()
Me.SuspendLayout()
'
'Tray
'
Me.Tray.Text = ""
Me.Tray.Visible = True
'
'MenuBar
'
Me.MenuBar.MenuItems.AddRange(New System.Windows.Forms.MenuItem()
{Me.FileMenu, Me.HelpMenu})
'
'FileMenu
'
Me.FileMenu.Index = 0
Me.FileMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem()
{Me.FileExit})
Me.FileMenu.Text = "&Arquivo"
'
'FileExit
'
Me.FileExit.Index = 0
Me.FileExit.Text = "Sai&r"
'
'HelpMenu
'
Me.HelpMenu.Index = 1
Me.HelpMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem()
{Me.HelpContents, Me.HelpSeparator, Me.HelpAbout})
Me.HelpMenu.Text = "A&juda"
'
'HelpContents
'
Me.HelpContents.Index = 0
Me.HelpContents.Text = "&Conteúdo"
'
'HelpSeparator
'
Me.HelpSeparator.Index = 1
Me.HelpSeparator.Text = "-"
'
'HelpAbout
'
Me.HelpAbout.Index = 2
Me.HelpAbout.Text = "&Sobre o Focus Café..."
'
'Pages
'
Me.Pages.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte),
CType(64, Byte), CType(64, Byte))
Me.Pages.Controls.AddRange(New System.Windows.Forms.Control()
{Me.OptionsPage, Me.ReportsPage, Me.RecordsPage, Me.ServicesPage})
Me.Pages.Dock = System.Windows.Forms.DockStyle.Top
Me.Pages.Name = "Pages"
Me.Pages.Size = New System.Drawing.Size(488, 24)
Me.Pages.TabIndex = 6
'
'OptionsPage
'
Me.OptionsPage.BackColor = System.Drawing.Color.Transparent
Me.OptionsPage.ForeColor = System.Drawing.Color.LightGray
Me.OptionsPage.Location = New System.Drawing.Point(184, 2)
Me.OptionsPage.Name = "OptionsPage"
Me.OptionsPage.Size = New System.Drawing.Size(56, 20)
Me.OptionsPage.TabIndex = 3
Me.OptionsPage.Tag = "OrdersPage"
Me.OptionsPage.Text = "Opções"
Me.OptionsPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'ReportsPage
'
Me.ReportsPage.BackColor = System.Drawing.Color.Transparent
Me.ReportsPage.ForeColor = System.Drawing.Color.LightGray
Me.ReportsPage.Location = New System.Drawing.Point(120, 2)
Me.ReportsPage.Name = "ReportsPage"
Me.ReportsPage.Size = New System.Drawing.Size(64, 20)
Me.ReportsPage.TabIndex = 2
Me.ReportsPage.Tag = "SuppliersPage"
Me.ReportsPage.Text = "Relatórios"
Me.ReportsPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'RecordsPage
'
Me.RecordsPage.BackColor = System.Drawing.Color.Transparent
Me.RecordsPage.ForeColor = System.Drawing.Color.LightGray
Me.RecordsPage.Location = New System.Drawing.Point(56, 2)
Me.RecordsPage.Name = "RecordsPage"
Me.RecordsPage.Size = New System.Drawing.Size(64, 20)
Me.RecordsPage.TabIndex = 1
Me.RecordsPage.Tag = "ClientsPage"
Me.RecordsPage.Text = "Cadastros"
Me.RecordsPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'ServicesPage
'
Me.ServicesPage.BackColor = System.Drawing.Color.Transparent
Me.ServicesPage.ForeColor = System.Drawing.Color.LightGray
Me.ServicesPage.Location = New System.Drawing.Point(0, 2)
Me.ServicesPage.Name = "ServicesPage"
Me.ServicesPage.Size = New System.Drawing.Size(56, 20)
Me.ServicesPage.TabIndex = 0
Me.ServicesPage.Tag = "StartPage"
Me.ServicesPage.Text = "Serviços"
Me.ServicesPage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'Page
'
Me.Page.Dock = System.Windows.Forms.DockStyle.Fill
Me.Page.Location = New System.Drawing.Point(0, 24)
Me.Page.Name = "Page"
Me.Page.Size = New System.Drawing.Size(488, 374)
Me.Page.TabIndex = 7
'
'Main
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.FromArgb(CType(224, Byte), CType(224,
Byte), CType(224, Byte))
Me.ClientSize = New System.Drawing.Size(488, 398)
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Page, Me.Pages})
Me.Menu = Me.MenuBar
Me.Name = "Main"
Me.Text = "Focus Café"
Me.Pages.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Pages_MouseEnter(ByVal sender As Object, ByVal e As
System.EventArgs)
' Ilumina a etiqueta da página
Dim PageLabel As Label = DirectCast(sender, Label)
PageLabel.BackColor = Color.LightGray
PageLabel.ForeColor = Color.DimGray
End Sub
Private Sub Pages_MouseLeave(ByVal sender As Object, ByVal e As
System.EventArgs)
' Escurece a etiqueta da página
Dim PageLabel As Label = DirectCast(sender, Label)
PageLabel.BackColor = Color.Transparent
PageLabel.ForeColor = Color.Gainsboro
End Sub
Private Sub Pages_Click(ByVal sender As Object, ByVal e As System.EventArgs)
' Obtém o botão pressionado
Dim Button As Label = DirectCast(sender, Label)
' Simplifica o acesso à coleção de controles
With Page
' Testa se a página ativa não é a mesma que tenta-se
' exibir
If Not .Controls(0).GetType().Name.ToUpper() = Button.Name.ToUpper() Then
' Remove a página anterior
.Controls.Clear()
' Exibe a nova página
.Controls.Add(Activator.CreateInstance(Type.GetType("Normando.Focus.Cafe.Ser
ver." + Button.Name)))
.Controls(0).Dock = DockStyle.Fill
End If
End With
End Sub
Private Sub Main_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
' Cria a página inicial
Dim StartPage As ServicesPage = New ServicesPage()
StartPage.Dock = DockStyle.Fill
' Adiciona a página inicial no container
Page.Controls.Add(StartPage)
End Sub
Private Sub FileExit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles FileExit.Click
' Sai do programa
Close()
End Sub
End Class Tag: can I have A datagrid that is invisible Tag: 59588
.NET Framework 1.0 Validating event bug?
Hi,
I'm putting together an app where I need to be
able to stop the user from switching focus from
a control (e.g. a DataGridTextBox) if the value
in the box is bad. I have a test app where I
dump out a log message on all the standard events
(enter/leave/validating/validated, etc.). When
I'm in a DG cell and enter a bad value (checked
during Validating and set e.Cancel = true), I've
found that events past Validating continue.
In this case, the DG's MouseDown handler is called,
then a whole bunch more entering and leaving (including
of the original textbox and ultimately the bad value
is sent through ColumnChanging on the DataTable under
the grid.
Any idea why Validating doesn't seem to stop the
event progression? Setting Cancel = true stops
the Validated event from showing up, but does
nothing about the MouseDown and later stuff.
Are there known bugs in .NET 1.0 about this? I was
unable to find anything in searching the MSDN
Knowledge Base and various Google references.
Any help (including "it works in 1.1, use that")
would be GREATLY appreciated!
Thanks,
Dave Combs
combs@edgedynamics.com Tag: can I have A datagrid that is invisible Tag: 59586
disabled toolbar button images
An exhaustive search of all dotnet groups seems to indicate that no
one has been able to solve the problem of disabled toolbar button
images providing a grey box or some other lame appearance.
Has anyone been able to solve this? From the postings it sounds like
it may have something to do with the imagelist transparency color, the
imagelist color depth, and possibly the original image file color
depth. Anyone?
Scott. Tag: can I have A datagrid that is invisible Tag: 59585
Control Names in the designer
I have a control with a property of type collection with a
special editor that lets me select controls from the
available controls on the form.
When clicking the "..." on that property, I build a list
of all the controls in order to show what's available.
I'm using the .Name property of each control on the form.
The problem is with "my" controls as opposed to the dotNet
controls.
If I have a TextBox on the form and I change it's name in
the property window, then the next time I view the list of
controls I see the new name. But when I do the same
with "my" control (which inherits either from Control or
from UserControl) the name isn't changed.
Has anyone seen this behaviour ? Tag: can I have A datagrid that is invisible Tag: 59584
form returning on event
hi
how can i make a form return a value on a event (keypress).
I cant do it from inside the event handler code ('return' statement in a Sub
or a Set cannot return a value) Tag: can I have A datagrid that is invisible Tag: 59581
Visual Studio selection frame
hiya-
i am trying to implement a selection frame like visual
studio has in the form designer when you select a control
on a form. the frame has little handles for resizing and
allows the user to know what controls are selected.
i wrote a control that does this and it works well except
for one thing. the frame needs to be one layer below the
selected control. i have found no methods to set the z
order other than bringtofront/sendtoback.
anyone have any thoughts on how ms implmented there
selection frame or a better way to do mine. basically i
want it to be as close as possible to what is in visual
stuido.
thanks - fragget Tag: can I have A datagrid that is invisible Tag: 59578
Returning value from specific cell in a datagrid row
Hi
i have made a datagrid with a number of rows and made sure it selects the
entire row when you click a single cell. but now i have to make the datagrid
Return the value in the first cell in the selected row. how is that possible
(its a indexnumber from a order database)? Tag: can I have A datagrid that is invisible Tag: 59574
Form AfterLoad
I need to execute some code after the form loads. OnLoad
event doesn't work, because it fires before form is
displayed. I need the form to display, and then do
something.
Is there any event that I can use?
Thanks. Tag: can I have A datagrid that is invisible Tag: 59572
tough inheritence question
-Form A inherits from form B.
-I am iterating over the controls on an instance of form A.
-Is there any way for me to tell if a given control came
from form A or form B?
I suspect not, but I thought I'd ask. Tag: can I have A datagrid that is invisible Tag: 59565
How many labels can a form suport
hi there, i'm developing an aplication that uses 4 forms.
Each form has about 2000 labels, when I try to open my
third form, an error ocurrs, but no error mesage appears.
I've realised that if I try to crate a form collection
like:
sub Test()
Dim f as new Form1
f.show
end sub
and if form1 has 300 labels and no other controls, the
program hangs, when the 33rd form appears (about 9900
labels).
What can I do to work this Out ?
Thanks Tag: can I have A datagrid that is invisible Tag: 59563
Picturebox and icons bug?
Hi,
I've come across a strange problem when using the Picturebox to display an
32x32 pixel Icon file. When first setting the "SizeMode" property to
"StretchImage", it seems to work properly (i.e. the Icon is displayed with
the full 32x32 resolution). However after closing and opening the form
designer, the image seems to revert back to 16x16 resolution which looks
horrible when stretched to the 32x32 pixel size of the picturebox.
Here's the steps I used to recreate this problem.
1) Add a picturebox to a form
2) Make it's size 32x32
3) Assign an .ico file to the picturebox's Image Property.
4) Set the "SizeMode" property to "StretchImage". Notice how the icon uses
the full 32x32 resolution.
4) Save and close the form designer.
5) Reopen the form designer - the icon now looks crap with its 16x16
resolution stretched to 32x32
I'm using VB.net in Visual Studio 2003 and .net framework 1.1
Any help anybody can give would be much appreciated.
Best Regards,
Trev. Tag: can I have A datagrid that is invisible Tag: 59561
Listview item activation programatically?
Is it possible to activate a ListView item programatically or, in any other
way, to cause the ItemActivate event from within one's program?
Thanks for any help you might offer. Tag: can I have A datagrid that is invisible Tag: 59558
failed to load resource from resources, please check your setup
L.S.
I get this error:
failed to load resource from resources, please check your setup
when I starting up a deployed C# .net application after the splash
screen on a computer where I installed my application through a setup
wizard. The application is using crystal reports. When I'm logged in
as an administator there's no problem. But when i'm logged in as a
normal user the program doesn't start (installation also doesn't work,
but that's not a big issue, simply install as an administrator)
Erald Kulk Tag: can I have A datagrid that is invisible Tag: 59556
queryengine error
hi,
i created a dataset in runtime. then inserted records into it in runtime
too. then i saved dataset as xml files. then i use to display report using
data from these xml files.
reports are displayed on my comp correctly. but when i install application
on another machin. while displaying report. query engine error messege box
is displayed and report is not displayed.
i tried to show report directly using the dataset i created at runtime. both
ways report is displayed on my machine, but not on any other machine.
can anybody help???
thanks in advance
sachin
PS: if i dont use runtime dataset and insert records in physical table in a
ms-access database. reports are displayed without any glitches. Tag: can I have A datagrid that is invisible Tag: 59555
datagrid backspace delete
We have a datagrid VB6.0 with columns A, B and C. I enter text into A
and then B, then click on C and then click back on B. The cursor is at
end-of-text and I backspace each character to delete the text, then
click on A and text in A is highlighted and I press backspace once and
text is deleted but column B text magically reappears in column B.
What is this? Please - would appreaciate any help. Thank you. Tag: can I have A datagrid that is invisible Tag: 59552
List view problem
Hi!
is their a way to embbed a picture inside a sub item of listview item.
i have a project in wich i want to show a user a seiries of pictures
depending on the state of the row,
the problem is that i can only do that on the Listview Item itself and not
on it's sub items
Please help! Tag: can I have A datagrid that is invisible Tag: 59550
output parameter + Data Reader VB.NET
VB.NET
I want to return an output parameter along with a
DataReader recordset from a stored procedure.
Is it possible?
myReader = CMMD.ExecuteReader --returns data
NumOfRows = CInt(CMMD.Parameters("@NumOfRows").Value) --
Nothing Tag: can I have A datagrid that is invisible Tag: 59549
Crystal Reports - number of pages after drill-down
An application uses Crystal Reports for Visual Studio .NET.
How can you retrieve the number of pages after drill-down in a report?
Code:
CrystalDecisions.Shared.ReportPageRequestContext prc = new
CrystalDecisions.Shared.ReportPageRequestContext();
return rpt.FormatEngine.GetLastPageNumber(prc);
retrieve the number of pages only main report. Tag: can I have A datagrid that is invisible Tag: 59546
failed to load resource from resources, please check your setup
L.S.
I'm trying to install a c# .net application on client machines. When I
start the program as an administrator everything works fine. If I
start as a normal domain user I get the error message:
failed to load resource from resources file, please check your setup.
'
I am changing the locale of the current thread (a threat) to "nl-NL"
it is what seems to be problem. How do I fix this???
greetings
Erald Kulk Tag: can I have A datagrid that is invisible Tag: 59543
Emptying the Controls collection prevents form from closing.
Why does disposing all of the controls and emptying the controls collection
in a form prevent it from closing?
At the minute we have the lovely choice of not destroying our controls and
having a major memory leak, or we destroy the controls, and find ourselves
unable to close the form.
Any advice appreciated.
Cheers,
4Space Tag: can I have A datagrid that is invisible Tag: 59540
HI all
can I have A datagrid that is invisible, inside that datagrid, i want to
have serveral datagrids that are group by some headers
Jason