Option Strict and Late Binding
Hello,
I have the following code.
Private Sub ABC_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnA.Click, btnB.Click,
btnC.Click
if sender.name = "btnA" then
Do something etc, etc
else
Do something else etc, etc
end if
End Sub
This code works fine until I turn Option Strict On. Then
I get a blue line under the words "sender.name" with the
following message "Option Strict On disallows late
binding". I am unsure how to get access to the properties
of the button clicked in this situation using "sender".
Can anyone point me in the write direction?
Thanks
Felicity Tag: Smart client using IE web control doesnt work. Tag: 60671
Scaled Pen DashStyle
It appears that the DashStyle of a Pen object is not
effected by the scale transform like the pen's width is.
Is this true and if so is this an oversight? How do I
scale the existing DashStyles?
Thanks!
Bob
Pen pen = new Pen(Color.Red, 1.0f);
pen.DashStyle = DashStyle.Dash;
pen.ScaleTransform(0.1f, 0.1f); Tag: Smart client using IE web control doesnt work. Tag: 60663
Adding Row To Displayed Child Table Fails
Using vs 2003, vb.net, sql msde
I have a Parent/Child related datagrid and datatables. When only the parent
is displayed, I can add 200 rows in a loop to the child table with out a
problem and then display these new child table rows. If I display the Child
table first, and then try to add 200 rows, it fails on the first row adding
attempt with the following error. I am only adding rows to the DataSet
Child Table, not updating any datasource.
"A first change exception of type 'System.IndexOutOf RangeExcetpion'
occurred in system.windows.forms.dll
Additional information: Index was outside the bounds of the array."
What is going on?
Bob Day Tag: Smart client using IE web control doesnt work. Tag: 60662
.Net Application Updater
Hi
I am using .Net updater to distribute updated versions of the
application to clients through internet. Could somebody tell me how to
exactly create a public and private key pairs, signing the assembly
and deploy them. I read the document with App.Updater but could not
successfully proceed with that. If somebody could tell me step by step
of doing this, would be great.
thanks Tag: Smart client using IE web control doesnt work. Tag: 60661
Resource problems
Hi all,
I am writing a winforms application, and whenever I set the icon for the
main form, I get the following exception message (A
MissingManifestResourceException) on running it:
Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure "ScoreSheet.resources"
was correctly embedded or linked into assembly "PMDLScorereTest".
baseName: ScoreSheet locationInfo: PMDLScorereTest.ScoreSheet resource
file name: ScoreSheet.resources assembly: PMDLScorereTest,
Version=1.0.1405.29676, Culture=neutral, PublicKeyToken=null
I don't understand what is going on here. The .resx file has a base64
encoding for this.icon. As far as I can remember, i havn't changed any
culture settings. Does anyone know what the problem is here?
As a note, this is the app.ico file that VStudio generates in a new project.
Thanks for the help
Adam Tag: Smart client using IE web control doesnt work. Tag: 60658
DataGridCell.GetHashCode() is a very bad hash function
This is the hash function used by DataGridCell:
public override int GetHashCode()
{
return (((~this.rowNumber * (this.columnNumber + 1)) & 0xffffff00)
>> 8);
}
I tested this hash function over 1000x1000 cells, and found only 4000
distinct hash values were generated. A good hash function should have
generated just under 1e6 distinct hash values.
Also, for small values of rowNumber and columnNumber (roughly, where
rowNumber*columnNumber < 256), GetHashCode() always returns the same
value, 65535.
I think the intention is for this hash function to operate akin to the
mid-square hash function of Knuth, but in practice, the result is
pretty bad.
All in all, this is a terrible hash function.
In fact, the treatment of hash functions throughout the MS libraries
is generally pretty bad.
Object.GetHashCode() returns object identity, a number that increments
by one for each object allocated. If you allocate a series of objects,
the difference between two successive hashcodes will be 1.
Throughout the examples in the MSDN docs, combining hashcodes is
inevitably shown as a.GetHashCode() ^ b.GetHashCode(). Given that
objects allocated close together in time will have hashcodes close
together, this is a very bad way of combining hash codes.
If youre going to use an object or struct as a key, except for
strings, you should always define your own GetHashCode().
A quick and dirty way to define your own GetHashCode() is to multiply
the system GetHashCode() by a large, odd, and preferably prime,
number.
class HashRand
{
private static readonly Random _rand = new Random();
public static int Next()
{
return HashRand._rand.Next() | 0x00010001;
}
}
class Key
{
private static readonly int _hashmul = HashRand.Next();
public override GetHashCode()
{
return base.GetHashCode() * Key._hashmul;
}
}
struct Key2
{
private static readonly int _hashmul1 = HashRand.Next();
private static readonly int _hashmul2 = HashRand.Next();
int x, y;
public override GetHashCode()
{
return x * Key2._hashmul1 + y * Key2._hashmul2;
}
} Tag: Smart client using IE web control doesnt work. Tag: 60657
A very good DYNAMIC sizing routine for DataGrids if you want it
It literally requires only one line of code to attach it to any
existing Winform DataGrid, you can give it percentages like the
ASP.NET data grid and minimum column widths, the default of course is
to size all columns equally, it's very cool and the columns always
take up the full client rect of your grid making it look very
professional. I can't believe I had to write this.
Email me at dearpolycarp @ hotmail.com ... Put DATAGRID in the
subject.
I'll send you a tiny little sample with the source code, use it at
will. Tag: Smart client using IE web control doesnt work. Tag: 60656
Datagrid and scrolling
My question concerns navigation with the DataGrid on my
Windows Form.
Private Sub btnNext_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
btnNext.Click
' Move to the next record
NextRecord()
' Highlight the entire row for user feedback.
grdXNew.Select(grdXNew.CurrentCell.RowNumber)
End Sub
' Move the BindingContext Position to the next record.
Public Sub NextRecord()
' The position of the binding context controls
the "current record"
Me.BindingContext(dtXNew).Position += 1
End Sub
The code seems to work fine, except that after
GrdXNew.Select is fired, the Datagrid scrolls back to the
first record. The row that was navigated to is selected,
but if it is not within the bounds of the grid, the row is
not viewable. The user would then have to scroll the
Datagrid to see what row is highlighted. It appears the
behavior is that the grid always scrolls to the top after
a selection is made programmatically.
My question is: Is there a way to maintain the highlighted
row in the viewable area of the grid?
Thank you in advance. Tag: Smart client using IE web control doesnt work. Tag: 60644
Simulating Longhorn Sidebar
Hi,
Is there a component available to simulate Longhorn style Sidebar on
Windows XP ? Or is there a sample application somewhere to show how to do
that ?
Thanks in advance and regards
Navin Tag: Smart client using IE web control doesnt work. Tag: 60642
Problem when changing button font at runtime
I create a simple Windows Forms application and drop a simple button
on the form with the designer. I define the Text of the button (i.e.
"Button test") and I set the button width so I have plenty of space to
display the text (i.e. 120). Then I add the following code in the
button's click handler.
private void button1_Click(object sender, System.EventArgs e)
{
button1.Font = new Font(FontFamily.GenericSansSerif, 10,
FontStyle.Bold);
}
When I click the button, the button's text is displayed with the new
Font but the last letter (t) is truncated and not displayed properly.
I can't isolate exactly the conditions in which this behavior is
produced but the above conditions produce the bug. The complete code
is below.
Any ideas on this? A bug in the button code? Any way to avoid this?
Olivier
---
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace WindowsApplication1
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(16, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(120, 24);
this.button1.TabIndex = 7;
this.button1.Text = "Button test";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(216, 110);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void button1_Click(object sender, System.EventArgs e)
{
button1.Font = new Font(FontFamily.GenericSansSerif, 10,
FontStyle.Bold);
}
}
} Tag: Smart client using IE web control doesnt work. Tag: 60639
I need Microsoft.Web.Services Dll (Hell)
Hello All,
I am wanting to get a dll called Microsoft.Web.Services.
Can someone email me the dll? or send me the url to get to
it?
I down loaded WSE10SP1.exe, but I still don't have the dll.
Any help would be appreciated!
Ken Tag: Smart client using IE web control doesnt work. Tag: 60638
Databindings get lost on change?
I'm seeing a situation where a textBox value looses its
databinding if the value of the textBox is manually
changed. Is this supposed to happen or a bug?
To recreate:
create a simple dataset
Create a new form and add dataset and textBox and button
bind the textBoxt.Text property to a column in the dataset
NOTE: The dataset is not used in conjunction with any
other database objects
In the constructor of the form, add code to add a row to
the dataset.
In the button, change the value of the cell in the dataset
Run app and press button. notice the value appropriately
is displayed automatically in the testbox on the form.
change the value of the textbox directly
now notice pressing the button does not update the textbox
any longer.
Thanks
Bill Tag: Smart client using IE web control doesnt work. Tag: 60632
Checked List Box
Hi All,
I am working with the checked list box control in VB.NET. I am
displaying the names of the employees (display member) in the list box
and storing id as value member. Now i want to get all the employees how
have been selected (checked=true) from the checked list box. So I want
the ID of all the employees selected from the list box.
Any help would be appreciated
Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: Smart client using IE web control doesnt work. Tag: 60630
MDI Child Form Problem
Hey guys, maybe someone can help me with some MDI issues I have. A
co-worker asked me a very simple question, one that I blew off as trivial,
and it has become a time-consuming issue.
Simply put, there is an MDIForm and a child form.
The MDIForm does the usual from within its constructor...
this.IsMdiContainer = true;
Form2 frm = new Form2();
frm.MdiParent = this;
frm.Show();
Okay, so nothing special there.
The child form then has a combobox on it. The question was, how do I get my
child form to close if I pick a particular item from the combobox. Or, to
make it easier, close the child form when the item selection changes in the
combobox.
So the following is in the child form...
private void comboBox1_SelectedIndexChanged(object sender,
System.EventArgs e)
{
this.Close();
}
Unfortunately this throws an exception indicating that the combobox has
already disposed itself and a null-reference exception is raised.
So I suggested the following...
private void comboBox1_SelectedIndexChanged(object sender,
System.EventArgs e)
{
this.Dispose(false);
}
This gets rid of the exception, but the child form is really not disposed,
even though visually it looks like it has gone away. It can be made to come
back sporadically by clicking inside the MDI parent form.
Using a true argument in the Dispose yields the same null pointer exception.
So with that, my understanding of forms went down the tubes, along with my
understanding of how the GC works and how correct implementations of
IDisposable work.
Can someone comment on how to get an MDI child form to close itself (i.e.
commit suicide)? Closing the child from a menu or toolbar on the parent
form is not a problem.
Thanks in advance.
MD Tag: Smart client using IE web control doesnt work. Tag: 60628
Datagrid question
Using VS 2003, VB.NET, sql msde...
This is really a question about a winform datagridcontrol (if there is a
better newsgroup for these winform datagridcontrol questions, let me know).
A parent/child relationship exists. When you click the + next to the parent
row, the relationship name "Display Details" appears. You then click that,
and everything previously FILLed to the child DataSet table displays. All
works as expected.
My question are:
1) Is there an event triggered by clicking on "Display Details" so you could
dynamically FILL the child table at that point, instead of having to fill it
prior it "Display Details" being click? If not an event, any other way to
do it?
2) Since the child table in the DataSet is held in memory, should I be
worried about how large it might get? Can it get to large or does Windows
XP/.NET still handle it appropriately regardless of its size? In my case,
the child could get quite large, constantly being added to by the program
automatically (which is the main reason I would like to load it when needed
via #1 above).
Thanks!
Bob Day Tag: Smart client using IE web control doesnt work. Tag: 60624
Loop through MDI chlids
How do I loop through all opened child forms of a MDI parent, and how do I
check weather the child form is of a specific type or not.
/Steffo Tag: Smart client using IE web control doesnt work. Tag: 60622
where is dotnet.framework.windowsforms.design?
It was here yesterday now its gone from the web interface.
Is it ever comming back? Is it still a managed workgroup?
Nick Tag: Smart client using IE web control doesnt work. Tag: 60620
Splitter max move to right
Hello,
is there a method to limit "splitter's" ability to move right or left
based on the size of the free space (panel) left on the appropriate side?
Ondra. Tag: Smart client using IE web control doesnt work. Tag: 60616
BUG: HScroll has 2 diff behaviours on scroll events
Hi,
When I process a HScroll scroll event I get one event fired for a increase
value using the > button.
When I make a User control with a HScroll on it and catch the message and
forward my own, I get two events fired yet I send one. I get a
SmallIncrement and then a EndScroll e.Type.
Why the difference in events, its confusing. Tag: Smart client using IE web control doesnt work. Tag: 60615
Panel (container) added after member controls
Hello,
I would like to add now (after some controls already added) new "panel".
When I add the panel to the form, I want to move previously added controls
to be managed (anchored, padded) to the panel, but they are still related to
the base form, where they were created at first. How to move them to the
panel?
Ondra. Tag: Smart client using IE web control doesnt work. Tag: 60614
Bug in PrinterSetting ???
Hi
Using the PrinterSettings class I want to get the No. Of copies of the
document to be printed. But it is always giving 1 as the copies to be
printed. I am using following code
dgPrintDialog.PrinterSettings.Copies = 2
dgPrintDialog.ShowDialog()
NoOfCopies= dgPrintDialog.PrinterSettings.Copies
What is wrong with this code. Most of the people have raised the same issue
and told that this is bug. If it is a bug is there any way to get the NoOf
copies?
Need Help
Nanda Tag: Smart client using IE web control doesnt work. Tag: 60613
Problem with UITypeEditor
Hello to everybody.I make a class that inherits from
UITypeEditor to customizing the view of the value of an
image in a PropertyGrid.I have a problem when I want to
cancel the image selected (hitting the Canc button).In
fact when I hit Canc button the application throws an
error. Anyone know how to intercept the pression of a
button directly in my custom UITypeEditor class. Tag: Smart client using IE web control doesnt work. Tag: 60608
showdesktop
Hi all,
I want to minimise all other windows (like show desktop) and show only
my applcation.How do i go about
Regards,
... Tag: Smart client using IE web control doesnt work. Tag: 60605
Urgent~~ Datagrid Error
This is a multi-part message in MIME format.
------=_NextPart_000_16BD_01C3A48D.CAF677C0
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
HI ALL,
Here I have a question on the datagrid... I would like to change the =
column header so i have written the following code to change column =
header text when current cell has been changed. But I found a situation =
will cause the grid error when the focus is on the last (add new) row =
and then click on any other controls will raise an error. A BIG RED =
CROSS will then be shown on the datagrid instead of all block of cells.
Does anyone know why the following code will cause the error??... Notes =
that if the .Refresh() statement is remarked.. the error never happens.. =
but the column header text will not update unless the last (add new) row =
is selected. It will make the column header text changed base on the =
last selected row before the last (add new) row is selected.
With CType(objDataGrid, DataGrid)
If =
objTable.Rows(.CurrentCell.RowNumber).Item("SizeType") <> "" Then
objRow =3D =
objTable.Rows.Find(.Item(.CurrentCell.RowNumber, 0))
objCaption =3D =
objSizeTable.Items(objRow.Item("SizeType"))
For Index =3D 1 To 17
=
.TableStyles(strTableName).GridColumnStyles(Index).HeaderText =3D =
objCaption.Items(Index).Description
Next Index
' .Refresh()
End If
End With
I have been suffering in this error for a few weeks but I still have no =
one can answer my question. Please give me a hand. Thanks.............
Ivan
------=_NextPart_000_16BD_01C3A48D.CAF677C0
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>HI ALL,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Here I have a question on the =
datagrid... I would=20
like to change the column header so i have written the following code to =
change=20
column header text when current cell has been changed. But I found a =
situation=20
will cause the grid error when the focus is on the last (add new) row =
and then=20
click on any other controls will raise an error. A BIG RED CROSS =
will then=20
be shown on the datagrid instead of all block of cells.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone know why the following code =
will cause=20
the error??... Notes that if the .Refresh() statement is remarked.. the =
error=20
never happens.. but the column header text will not update unless the =
last (add=20
new) row is selected. It will make the column header text changed =
base on=20
the last selected row before the last (add new) row is =
selected.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
With =
CType(objDataGrid,=20
DataGrid)</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbs=
p;  =
;=20
If objTable.Rows(.CurrentCell.RowNumber).Item("SizeType") <> ""=20
Then<BR>  =
; =
=20
objRow =3D objTable.Rows.Find(.Item(.CurrentCell.RowNumber,=20
0))<BR> =
&=
nbsp; =20
objCaption =3D=20
objSizeTable.Items(objRow.Item("SizeType"))<BR> &n=
bsp; &nb=
sp; =20
For Index =3D 1 To=20
17<BR> &=
nbsp; &n=
bsp; =20
.TableStyles(strTableName).GridColumnStyles(Index).HeaderText=20
=3D objCaption.Items(Index).Description<BR> &=
nbsp; &n=
bsp; =20
Next=20
Index<BR>' &nb=
sp; &nbs=
p; .Refresh()<BR> &nb=
sp; &nbs=
p; =20
End If</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
End =
With</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have been suffering in this error for =
a few weeks=20
but I still have no one can answer my question. Please give =
me a=20
hand. Thanks.............</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ivan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV>
<DIV><BR></DIV></FONT><FONT face=3DArial size=3D2>
<DIV><BR> </DIV>
<DIV></FONT> </DIV></BODY></HTML>
------=_NextPart_000_16BD_01C3A48D.CAF677C0-- Tag: Smart client using IE web control doesnt work. Tag: 60604
Holding a form in memory
Hi All,
I have a module level form variable as I want to react to custom events that
form raises:
Dim WithEvents m_frmSearchForm As frmPartSearch_Alt
When the user clicks the search button, I carry out this code:
If m_frmSearchForm Is Nothing Then
m_frmSearchForm = New frmPartSearch_Alt
With m_frmSearchForm
m_frmSearchForm.KeepOpen = False
m_frmSearchForm.MdiParent = MyBase.ParentForm
m_frmSearchForm.CaptionText = "Component Search"
m_frmSearchForm.SearchOption =
frmPartSearch_Alt.eSearchOptions.AllowSelect
m_frmSearchForm.Show()
End With
Else
m_frmSearchForm.Show()
End If
Which basically just loads the form and shows it.
The KeepOpen property allows the form to remain open.
The searchoption property tells to allow selection.
Both of these don't affect the problem.
Now, when the user closes the form using the x button, and then clicks the
search button again to execute this code then m_frmSearchForm isn't nothing
and the m_frmSearchForm.Show() is called, however nothing appears.
Can anybody help me with this????
When the x button is used to close a form, how can I ensure that the global
variable is emptied?
I don't want to open the form using showdialog.
Thanks
Alex Stevens Tag: Smart client using IE web control doesnt work. Tag: 60603
PropertyGrid editor: DateTime numericUpDown
Do you know how can I change the default editor of DateTime in a
propertyGrid in order to control date/time value ( like the ShowUpDown
using DateTimePicker control), i.e. without Calendar, that only controls
date information.
Is it possible ? Do you have some idea ?
Where can I find information about that ?
I really appreciate your answer...
Monica Tag: Smart client using IE web control doesnt work. Tag: 60601
Configuration file
Hello all,
I've an assembly a.exe which has a configuration file
a.exe.config. Now this assemblly loads a class from
another assembly b.dll. Can I've a configuration file for
this assembly, that is something like b.dll.config? This
way I'll be able to separate configuration for different
files.
I tried this, but this newer class tries to find its
appsettings from a.exe.config, and gives error if it is
not found.
Thanx in advance.
Meghansh. Tag: Smart client using IE web control doesnt work. Tag: 60600
Resizing an Image to fit in a PictureBox
I have a question about how to format the display of a JPEG image in a
PictureBox control. My current code is the fullowing....
Image image = Image.FromFile( strFileName );
pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox.Image = image;
The images are loaded dynamically, and I do not have control of the size and
aspect ratio of the images. With the StretchImage mode selected, I get
some strange stretching (either vertically or horizontally, when the aspect
ratio of the image is noticably different from the aspect ratio of the
PictureBox.)
What mechanism can I use to effectively resize the image myself before
displaying it in the PictureBox? As yet I'm unable to find either a method
on the Image class or on the PictureBox class to resize the image before
display. I'd like to be able to adjust it to either fit snug vertically or
horizontally depending on respective aspect ratios.
Thanks,
and Cheers,
-- Bruce Tag: Smart client using IE web control doesnt work. Tag: 60599
asynchronous programming question
Hello,
With asynchronous programming :
Why does the callback-function (running in a worker thread) may not update
the state of a control on the main-form ?
The docs say that you must use a MethodInvoker instead as in following
example :
Private Sub CallBtn_Click(ByVal sender ...) Handles CallBtn.Click
webServiceObj = New MyDatabaseWSClass()|
Dim delCB As New AsyncCallback(AddressOf MyCallBack)
aResult = webServiceObj.BeginConnectToDB(CInt(txtSeconds.Text), delCB,
Now)
End Sub
Private Sub UpdateUI()
OutputLabel.Text = "Async: Web service call complete."
End If
Private Sub MyCallBack(ByVal result As IAsyncResult)
If webServiceObj.EndConnectToDB(result) = True Then
DisplayMessage(result)
End If
' following is NOT allowed although it works fine ?????
OutputLabel.Text = "Async: Web service call complete."
Dim mi As New MethodInvoker(AddressOf Me.UpdateUI)
Me.BeginInvoke(mi)
End Sub
Any ideas ?
Thank you
Chris Tag: Smart client using IE web control doesnt work. Tag: 60597
Problem in printing multiple copies
Hi,
I want to get the print data from the PrintDialog box and pass it to
the crystal reports. But using the following code I am not able to get
data.
Private dgPrintDialog As New PrintDialog()
dgPrintDialog.Document = Nothing
dgPrintDialog.AllowSelection = False
dgPrintDialog.AllowSomePages = True
dgPrintDialog.AllowPrintToFile = False
dgPrintDialog.ShowNetwork = True
dgPrintDialog.ShowDialog()
NoOfCopies= dgPrintDialog.PrinterSettings.Copies
It is showing NoOfCopies as 1 though I have given 2 in the print dialog box.
How I can retrive the data from PrintDialog box.
Or Is there any other alternative for this problem
Need Help
Nanda Tag: Smart client using IE web control doesnt work. Tag: 60596
lisf of win app
How can i get the list of applications that appears on
the "New" option when i right-click in Windows.
I mean, first u right click, then select the option "New"
and u can see a list of items that u can create, for
example a winzip or a word file.
My question is how can i get that list?
Thanks. Tag: Smart client using IE web control doesnt work. Tag: 60594
Clipboard
In the moment when a user right click a file and select=20
the option cut or copy, the file is sent to the clipboard
(portapapeles).The question is:
-=BFHow can i know wich of the options(cut or copy) has=20
select the user?
Thanks Tag: Smart client using IE web control doesnt work. Tag: 60592
MenuItem.OwnerDraw problem
I all.
I have an application in an MDI structure. Both, MDIParent and MDIChilds
have Menus and all those menus are OwnerDraw, ie, MenuItem.OwnerDrawn =
true; The problem is when I have more than 1 child windows opened and close
them all, When i close the last one, the menus in the MDI Parent desapeared.
Can any one help me?
Sorry my English (I'm Portuguese).
Thanks Tag: Smart client using IE web control doesnt work. Tag: 60585
Helpprovider-control ????
Hi,
I dragged a Helpprovider-control on the form
namespace-property is set to a help-file : "myhelp.htm"
(I have set an anchor in this file <a name="Form">)
then, setting the help-properties for a button on the form :
HelpKeyword : "Form"
HelpNavigator : KeywordIndex
Pressing help opens the help-file all right but does not jump to the anchor
????
what am I doing wrong ?
thank you
chris Tag: Smart client using IE web control doesnt work. Tag: 60582
Closing form kills the app
Hi
I have this problem on winxp/offixexp machine but not on win2k/office2k
machines.
I have a main form which has a panel which has a child form. The child form
opens a dialog form. When the dialog form is closed using the 'x' button or
using me.close in code, the app crashes. The source the error is pointed as
my main app loop; Application.Run(frmMain) in Sub Main.
I am totally baffled by this error. Any ideas to solve this would be
appreciated. I am using vs.net 2003 with framework 1.1.
================================================
For those with a stronger heart, here is more information; I used the
Windows Debugging Tools which provided the trace but with added problem that
app crashes earlier during the opening of the child form. Here is the trace
anyhow. Thanks.
Microsoft (R) Windows Debugger Version 6.2.0013.1
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: C:\Events Manager\Contacts\bin\Contacts.exe
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
ModLoad: 11000000 11074000 Contacts.exe
ModLoad: 77f50000 77ff7000 ntdll.dll
ModLoad: 79170000 79196000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 77e60000 77f46000 C:\WINDOWS\system32\KERNEL32.dll
ModLoad: 77dd0000 77e5d000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 78000000 78086000 C:\WINDOWS\system32\RPCRT4.dll
(a90.884): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffdf000 ecx=00000000 edx=77f51301 esi=00241eb4
edi=00241f48
eip=77f75a58 esp=0012fb38 ebp=0012fc2c iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
ntdll.dll -
ntdll!DbgBreakPoint:
77f75a58 cc int 3
0:000> SXE clr
0:000> g
ModLoad: 63180000 631e5000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77c10000 77c63000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77c70000 77cb0000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d40000 77dcc000 C:\WINDOWS\system32\USER32.dll
ModLoad: 791b0000 79412000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll
ModLoad: 7c340000 7c396000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSVCR71.dll
ModLoad: 79040000 79085000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
ModLoad: 773d0000 77bc2000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 71950000 71a34000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
.10.0_x-ww_f7fb5805\comctl32.dll
ModLoad: 77340000 773cb000 C:\WINDOWS\system32\comctl32.dll
ModLoad: 79780000 79980000
c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll
ModLoad: 79980000 79ca6000
c:\windows\assembly\nativeimages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c56193
4e089_e39a4bbf\mscorlib.dll
ModLoad: 79510000 79523000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll
ModLoad: 771b0000 772d1000 C:\WINDOWS\system32\ole32.dll
ModLoad: 5ad70000 5ada4000 C:\WINDOWS\System32\uxtheme.dll
ModLoad: 74720000 74764000 C:\WINDOWS\System32\MSCTF.dll
ModLoad: 79430000 7947c000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSCORJIT.DLL
ModLoad: 51a70000 51af0000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll
ModLoad: 7b610000 7b806000
c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\sy
stem.windows.forms.dll
ModLoad: 7b810000 7baee000
c:\windows\assembly\nativeimages1_v1.1.4322\system.windows.forms\1.0.5000.0_
_b77a5c561934e089_4fe4239f\system.windows.forms.dll
ModLoad: 7b0a0000 7b1cc000
c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll
ModLoad: 7b1d0000 7b3aa000
c:\windows\assembly\nativeimages1_v1.1.4322\system\1.0.5000.0__b77a5c561934e
089_1f74a331\system.dll
ModLoad: 7b490000 7b506000
c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.d
rawing.dll
ModLoad: 7b510000 7b5de000
c:\windows\assembly\nativeimages1_v1.1.4322\system.drawing\1.0.5000.0__b03f5
f7f11d50a3a_72883c5a\system.drawing.dll
ModLoad: 0ffd0000 0fff3000 C:\WINDOWS\System32\rsaenh.dll
ModLoad: 30200000 30332000
c:\windows\assembly\gac\infragistics.win.v3\3.0.20033.16__7dd5c3163f2cd0cb\i
nfragistics.win.v3.dll
ModLoad: 30100000 30128000
c:\windows\assembly\gac\infragistics.shared.v3\3.0.20033.16__7dd5c3163f2cd0c
b\infragistics.shared.v3.dll
ModLoad: 31900000 3191e000
c:\windows\assembly\gac\infragistics.win.misc.v3\3.0.20033.16__7dd5c3163f2cd
0cb\infragistics.win.misc.v3.dll
ModLoad: 70d00000 70ea1000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.10.0_x-
ww_712befd8\gdiplus.dll
ModLoad: 7bc10000 7bd5a000
c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.d
ll
ModLoad: 7bd60000 7bf5e000
c:\windows\assembly\nativeimages1_v1.1.4322\system.xml\1.0.5000.0__b77a5c561
934e089_86ba097f\system.xml.dll
ModLoad: 52b80000 52bce000
c:\windows\assembly\gac\microsoft.visualbasic\7.0.5000.0__b03f5f7f11d50a3a\m
icrosoft.visualbasic.dll
ModLoad: 77c00000 77c07000 C:\WINDOWS\system32\version.dll
ModLoad: 30e00000 30ee4000
c:\windows\assembly\gac\infragistics.win.ultrawintoolbars.v3\3.0.20033.16__7
dd5c3163f2cd0cb\infragistics.win.ultrawintoolbars.v3.dll
ModLoad: 31300000 31374000
c:\windows\assembly\gac\infragistics.win.ultrawinexplorerbar.v3\3.0.20033.16
__7dd5c3163f2cd0cb\infragistics.win.ultrawinexplorerbar.v3.dll
ModLoad: 30d00000 30d2c000
c:\windows\assembly\gac\infragistics.win.ultrawinstatusbar.v3\3.0.20033.16__
7dd5c3163f2cd0cb\infragistics.win.ultrawinstatusbar.v3.dll
ModLoad: 7a6e0000 7a81e000
c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data
.dll
ModLoad: 605d0000 605d8000 C:\WINDOWS\System32\mslbui.dll
ModLoad: 77120000 771ab000 C:\WINDOWS\system32\oleaut32.dll
ModLoad: 30500000 30632000
c:\windows\assembly\gac\infragistics.win.ultrawingrid.v3\3.0.20033.16__7dd5c
3163f2cd0cb\infragistics.win.ultrawingrid.v3.dll
ModLoad: 31400000 31436000
c:\windows\assembly\gac\infragistics.win.ultrawintabcontrol.v3\3.0.20033.16_
_7dd5c3163f2cd0cb\infragistics.win.ultrawintabcontrol.v3.dll
ModLoad: 30400000 30452000
c:\windows\assembly\gac\infragistics.win.ultrawineditors.v3\3.0.20033.16__7d
d5c3163f2cd0cb\infragistics.win.ultrawineditors.v3.dll
ModLoad: 74e30000 74e9a000 C:\WINDOWS\System32\RichEd20.DLL
ModLoad: 76fd0000 77048000 C:\WINDOWS\System32\CLBCATQ.DLL
ModLoad: 77050000 77115000 C:\WINDOWS\System32\COMRes.dll
ModLoad: 1f890000 1f8fc000 C:\Program Files\Common Files\System\OLE
DB\oledb32.dll
ModLoad: 1f670000 1f693000 C:\WINDOWS\System32\MSDART.DLL
ModLoad: 763b0000 763f5000 C:\WINDOWS\system32\comdlg32.dll
ModLoad: 1f900000 1f911000 C:\Program Files\Common Files\System\OLE
DB\OLEDB32R.DLL
ModLoad: 1b570000 1b5c4000 C:\WINDOWS\System32\msjetoledb40.dll
ModLoad: 1b000000 1b170000 C:\WINDOWS\System32\msjet40.dll
ModLoad: 1b5d0000 1b665000 C:\WINDOWS\System32\mswstr10.dll
ModLoad: 1b2c0000 1b2cd000 C:\WINDOWS\System32\msjter40.dll
ModLoad: 1b2d0000 1b2f6000 C:\WINDOWS\System32\MSJINT40.DLL
ModLoad: 75730000 75850000 C:\WINDOWS\system32\comsvcs.dll
ModLoad: 71c20000 71c6e000 C:\WINDOWS\system32\NETAPI32.dll
ModLoad: 750f0000 75102000 C:\WINDOWS\system32\MTXCLU.DLL
ModLoad: 71ad0000 71ad8000 C:\WINDOWS\system32\WSOCK32.dll
ModLoad: 71ab0000 71ac5000 C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71aa0000 71aa8000 C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 75130000 75143000 C:\WINDOWS\system32\colbact.DLL
ModLoad: 76f90000 76fa0000 C:\WINDOWS\system32\Secur32.dll
ModLoad: 55560000 55571000 C:\WINDOWS\System32\CLUSAPI.DLL
ModLoad: 750b0000 750c1000 C:\WINDOWS\System32\RESUTILS.DLL
ModLoad: 75a70000 75b15000 C:\WINDOWS\system32\USERENV.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b810000 1b84a000 C:\WINDOWS\System32\msjtes40.dll
ModLoad: 0f9a0000 0f9ab000 C:\WINDOWS\System32\VBAJET32.DLL
ModLoad: 0f9c0000 0fa22000 C:\WINDOWS\System32\expsrv.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 7ab90000 7ad32000
c:\windows\assembly\gac\system.design\1.0.5000.0__b03f5f7f11d50a3a\system.de
sign.dll
ModLoad: 7ad40000 7aea8000
c:\windows\assembly\nativeimages1_v1.1.4322\system.design\1.0.5000.0__b03f5f
7f11d50a3a_2b9d5922\system.design.dll
ModLoad: 79e40000 79e48000
c:\windows\assembly\gac\accessibility\1.0.5000.0__b03f5f7f11d50a3a\accessibi
lity.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
ModLoad: 1b270000 1b2bc000 C:\WINDOWS\System32\msrd3x40.dll
(a90.884): CLR exception - code e0434f4d (first chance)
First chance exceptions are reported before any exception handling. This
exception may be expected and handled. eax=0012ef20 ebx=00000000
ecx=00147b90 edx=00000000 esi=00000000 edi=00000000
eip=77e73887 esp=0012ef1c ebp=0012ef70 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\KERNEL32.dll -
KERNEL32!RaiseException+0x50:
77e73887 5e pop esi
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll - Tag: Smart client using IE web control doesnt work. Tag: 60580
Form created or not?
Hi
I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is
Nothing Then, but it does not work.
Thanks
Regards Tag: Smart client using IE web control doesnt work. Tag: 60579
DataGrid/ComboBox custom column problems
Hello,
I know this has been discussed a lot already because I've been searching
around for information the last few weeks.
I'm trying to implement a DataGridComboBoxColumn class. I've found
several examples on the web. They all seem to have problems, though
that I've been unable to resolve.
The most promising example I have found is at:
http://msdn.microsoft.com/msdnmag/issues/03/08/DataGrids/default.aspx
However, it has the following problems:
1) combobox selection works fine but then when you leave the cell
whatever you just selected goes away.
2) moving up and down in the data grid w/ arrow keys causes the
following exception to be thrown:
System.ArgumentException: The ListManager's position must be equal to rowNum.
Parameter name: rowNum
I've seen some comments about adding an event handler for
SelectionChangeCommited so I added the following:
private void comboBox_SelectionChangeCommitted(object sender, EventArgs e)
{
DataRowView rowView = (DataRowView) this.comboBox.SelectedItem;
string s = (string) rowView.Row[this.comboBox.ValueMember];
this.ColumnStartedEditing(this.comboBox);
this.SetColumnValueAtRow(this.cm, this.iCurrentRow, s);
}
This fixes problem #1 above but now it has a problem where the first
time you select something from the ComboBox it always selects the first
thing in the ComboBox list even if you clicked on the 2nd, 3rd or whatever.
Also, the arrow key problems are still there.
Does anybody know if there are more complete examples out there? Is
there a third party class that anybody is selling?
Also, I'm somewhat of a novice at this so if anybody could point to
some good books that have discussions of the relevant topics for
figuring this out, I'd really appreciate it.
thanks,
Bill Tag: Smart client using IE web control doesnt work. Tag: 60575