Microsoft Report Viewer Control
anyone has a code sample to connect the Microsoft Report Viewer Control
using Microsoft SQL Server stored procedure? Tag: RDLC manual Tag: 117657
TableLayoutPanel scroll bar issues
Hi .
I am using a table layout panel with autoscroll = true
I found several issues which dont seem to work properly
1. when I have more rows then in view and the vertical scroll bar is added
it sometimes also adds the Horizontal scroll bar because it doesnt adjust the
width properly and the scrollbar takes up part of the client area. This isnt
consistent, sometimes the horizontal appears and sometimes it doesnt .
2. I have noticed something funny . I want to remove and add a control and
while doing that I want to maintain the scroll position so I do
int prevVal = m_TableLayoutPanel.VerticalScroll.Value;
.... ADD AND REMOVE
m_TableLayoutPanel.VerticalScroll.Value = prevVal;
The funny thing is that if I call athe above line once it doesnt change the
VerticalScroll.Value . IF I call it TWICE then the second time it does change
the Value.
so my code looks like this
m_TableLayoutPanel.VerticalScroll.Value = prevVal;
m_TableLayoutPanel.VerticalScroll.Value = prevVal;
Andy idea why this happens ????????? Tag: RDLC manual Tag: 117650
MDI child forms: how can one open another form?
Hi,
In an MDI Windows forms architecture, I have several child forms which I
need to be able to open fellow child forms. How is this done?
--
Thanks in advance,
Juan Dent, M.Sc. Tag: RDLC manual Tag: 117646
System.ComponentModel.Win32Exception: Error creating window handle.
Hi All,
I am using WinForm and .NET 2.2 framework in my application. My application
mainly uses Infragistics WinGrid. I am extending infragistics grid to
support some functionality by adding winform's toolstrip control (which
intern hosted in a User Control) on Grid Headers. The way I extend this grid
is by implementing Infragistic's IUIElementCreationFilter interface. This
interface provides two methods, AfterCreateChildElements and
BeforeCreateChildElements. The issue that I am facing is, when I load grid,
I am getting following error and it kills my application.
"System.ComponentModel.Win32Exception: Error creating window handle".
This error occurs only when I set BackColor property of my user control to
Transparent. If I do not set BackColor or set it to some color my
application just works fine. I checked the number of window handles and also
GDI Object count at the time this error is thrown. Window handle count is
around 500 and GDI Object count is around 125. Also this error does not
occur all the time. In my application I have several modules where I use
infragisitcs WinGrid which in tern calls same implementation of
IUIElementCreationFilter interface and the code work fine for other modules.
I am not able to figure out as to why this issue is occurring sometimes and
what is that causing it.
During my investigation I found that adding user control with BackColor =
Transparent into Grid's control collection invokes OnPaint event handler and
which intern calls AfterCreateChildElements method in recursive way.
AfterCreateChildElements method is called after an element's ChildElements
have been created. The child element's can be repositioned here and/or new
element's can be added.
The stack trace is given below:
System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at Orion.Dashboards.DashboardPartControl.ShowAlert(Object sender,
AlertRaisedEventArgs e) in
C:\FRSDev\DevRoot\foundation61\Orion\Source\Common\Orion.Dashboards\Controls\DashboardPartControl.cs:line
1097
at Orion.Dashboards.DashboardPartControl.OnAlertRaised(Object sender,
AlertRaisedEventArgs e) in
C:\FRSDev\DevRoot\foundation61\Orion\Source\Common\Orion.Dashboards\Controls\DashboardPartControl.cs:line
986
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Fusion.Windows.Forms.VirtualListGrid.RaiseAlert(Exception ex) in
C:\FRSDev\DevRoot\foundation61\Fusion\Source\Presentation\Fusion.Windows.Forms\Widgets\VirtualListGrid.cs:line
1024
at Fusion.Windows.Forms.VirtualListGrid.OnPaint(PaintEventArgs pe) in
C:\FRSDev\DevRoot\foundation61\Fusion\Source\Presentation\Fusion.Windows.Forms\Widgets\VirtualListGrid.cs:line
638
at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs
e, Rectangle rectangle, Region transparentRegion)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e,
Rectangle rectangle, Color backColor, Point scrollOffset)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e,
Rectangle rectangle)
at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
at
System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32
x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef
hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32
x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef
hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at
Fusion.Windows.Forms.FilteringCreationFilter.AfterCreateChildElements(UIElement
parent) in
C:\FRSDev\DevRoot\foundation61\Fusion\Source\Presentation\Fusion.Windows.Forms\Widgets\FilteringCreationFilter.cs:line
106
at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at
Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at
Infragistics.Win.UltraWinGrid.DataAreaUIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at
Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements(ControlUIElementBase
controlElement, Boolean recursive)
at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive)
at Infragistics.Win.ControlUIElementBase.VerifyIfElementsChanged(Boolean
verify, Boolean syncMouseEntered)
at Infragistics.Win.ControlUIElementBase.get_CurrentCursor()
at Infragistics.Win.UltraControlBase.get_Cursor()
at System.Windows.Forms.Control.WmSetCursor(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
A first chance exception of type 'System.ComponentModel.Win32Exception'
occurred in System.Windows.Forms.dll
A first chance exception of type 'System.ComponentModel.Win32Exception'
occurred in System.Windows.Forms.dll
Error creating window handle.
Please let me know incase anyone has any clue or idea as to how to proceed
on resolving this issue.
Thanks in advance,
-Tushar Tag: RDLC manual Tag: 117643
Fancy Windows Form
I started using Windows Live Mail and really like the main form design.
I was wondering if anyone knew what tools were used to develop that
kind of form. It is a lot like the new MS Office forms with very customized
title bar and buttons.
TIA
Larry Tag: RDLC manual Tag: 117642
Protected forms and cell growth
Hi,
I have a protected form with lots of areas for data entry (comments, goals,
etc.). I formatted the cells to wrap but the cell does not resize itself
when lots of information is entered. Is it possible to have the cell grow as
data is entered?
Kathleen Tag: RDLC manual Tag: 117641
complicated forms design
How others have approached having extremely large forms that duplicate
database structures.
I am currently designing an application with a lot of tables and a lot of
controls. Problem is that the forms are very much overloaded and
therefore my basic structure is very wrong.
I have about 40 database tables, a few forms, multiple tabs on each with
moderately complicated layout on each tab. You can imagine the whole
design, number of events, and how it ends up.
How have others managed this sort of complicated design?
Do you break off the database into a separate class, how can you keep
this visual?
Can you layout a tab on its own visually and then embed in the actual
form at runtime.
Ta
Ken Tag: RDLC manual Tag: 117640
Changing the Form Default BackColor at Runtime
I have a program that have over 10 forms in it. The BackColor for each form
defaults to System.Drawing.SystemColors.Control.
How can I override or change what that color is? Basically what I would
like to do is have different color schemes available to the user without
having to program each and forms/controls in the application.
How can I build a new color pallete that will override the SystemColors
without affecting the base OS color scheme.
Thank you. Tag: RDLC manual Tag: 117636
ObjectDisposedException
Hi,
I have an invisible button in my form. I have a timer
(System.Windows.Forms.Timer) with interval 300 ms. In the timer tick event I
check for a certain flag, and if that flag is true, the button becomes
visible (After setting the flag's status to false again).
The problem is that if the event happened and the button became visible, and
then I closed the form, and then reopened it and let the event happen again,
then the operation of making the button visible throws an exception of type
System.ObjectDisposedException.
It looks like when I reopen the form, I already haven't got the button. One
could think it's been Garbage Collected, but I'm not sure about that, because
the button is part of the form which is reopened (Form f = new Form(); ).
Can someone please explain the source of the problem and the solution?
Thanks a lot Tag: RDLC manual Tag: 117632
Trap Play/Pause key from keyboard
Is there a way to trap the play/pause key so that windows does *not*
open the windows media player when the key is pressed, but instead
plays/pauses music in my app (also start my app if not already open).
I managed it to get the key notification in my app with installing a
keyboard hook but windows media player is opened afterwards anyway.
I tried returning one, zero or whatever from the HookCallback function
but windows media player still opens.
What can I do about it?
private static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
{
if (nCode >= 0 && wParam == (IntPtr)WM_KEYDOWN &&
lParam.ToInt32() == 1307112)
{
int vkCode = Marshal.ReadInt32(lParam);
//return CallNextHookEx(IntPtr.Zero, 0, wParam,
IntPtr.Zero);
//return new IntPtr.Zero;
return new IntPtr(1);
}
else
{
return CallNextHookEx(_hookID, nCode, wParam, lParam);
}
} Tag: RDLC manual Tag: 117631
Click Once FORCES signing
We have a couple of apps on our intranet, needing only to be published
within our network, so we don't need signing
On one developer's computer, every time we try to Publish the application,
(even though we UNCHECK the signing checkbox in the Signing tab), it
automatically checks it again, and then, because it's not signed, will throw
an error and not publish.
Any ideas on where there might be a setting so I can stop this behavior? Tag: RDLC manual Tag: 117629
Strange modal form behaviour
Hi guys, it's a little problem but I'm quite stuck with it. I'm
developing a Windows Forms application with VS2008 and I have noticed
this little graphical bug. I have a main form with ShowInTaskbar=true.
I open a modal form (with showdialog()) with ShowInTaskbar=false.
Then, just sometimes, when a use the "Show Desktop" icon or I change
the active program when I go back to mine I can see just the main form
(the modal form is somehow hidden) and obviously it's locked, I can't
interact with it. Neither I can see use the modal form because it's
hidden, so I have to change the active program with ALT+TAB and the go
back to my application. With this move I can get back my modal form
and can continue working. How can I avoid this and keep my modal form
"hidden" from the taskbar?
Thank you in advance for your help
cold Tag: RDLC manual Tag: 117628
C# -- invoke Microsoft Internet Explorer in web folder view
Hi,
I apologies if this type of question was posted before.
I am invoking internet explorer and open the HTTPS website from my c#
application like this:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
System.Diagnostics.Process.Start("IEXPLORE.EXE", "https://
10.206.207.208/abc/xyz");
I have 2 questions that are mention below:
1. How can i programmatically give username and password before
invoking IE opening an HTTPS website?
2. In IE, we can see the folder view by going File -> Open -> Open as
Web Folder. How can i invoke this programmatically directly in IE?
Thanks in advance. Tag: RDLC manual Tag: 117626
getting the connectionstring from app.config
Hi, I have a windows forms c#.net app and I want to get the connection string
from my app.config file which is shown below:
how do I achieve this
Thanx in advance
Robert
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="DataAccess.Properties.Settings.MARSConnectionString"
connectionString="Data Source=LON-OXBRD01;Initial
Catalog=MARS;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration> Tag: RDLC manual Tag: 117624
listview offset
I have a listview with large icons. When user clicks, say the top left
of an icon, and in
the mouse down event i have
Point p = listview1.PointToClient(new Point(MousePosition.X,
MousePosition.Y)),
if I then compare p to listviewitem.Position, where listviewitem is
the icon the user clicked,
then in some cases the two points aren't equal. Anyone that can
explain why this offset exists
and is there a way to know what this offset would be? i.e. is there
e.g. a property of the listview
that holds this? Tag: RDLC manual Tag: 117620
ClickOnce deployment gets messed up after going from 2.0 to 3.5
Hi yall!
I got a locally published website and client (deployed by ClickOnce) that I
install on several servers. I'm using mage.exe to update and re-sign the
application and deployment manifests. Everything worked like a charm when
using 2.0
Now we moved to 3.5 and I updated mage.exe and added the now necessary
Microsoft.Build... assembly. The whole resigning process worked fine, but
when I try to install the client on a fresh machine, I get the following
following error:
Code:
ERROR DETAILS
Following errors were detected during this operation.
* [07.07.2008 13:52:14]
System.Deployment.Application.InvalidDeploymentException
(ManifestSemanticValidation)
- Application contains an assembly with the same identity as the
application or deployment: PcVclient.application, Version=1.2.99.0,
Culture=neutral, PublicKeyToken=b2cb5e85fcd37978, processorArchitecture=msil.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object
sender, DownloadEventArgs e)
at
System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.OnModified()
at
System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at
System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at
System.Deployment.Application.FileDownloader.Download(SubscriptionState
subState)
at
System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState
subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri
sourceUriBase, String targetDirectory, String group, IDownloadNotification
notification, DownloadOptions options)
at
System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState
subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory&
downloadTemp)
at
System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at
System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri
activationUri, Boolean isShortcut, String textualSubId, String
deploymentProviderUrlFromExtension)
at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
Any ideas, hints, tipps much appreciated. Thanks for reading tat far.
Cheers,
Nessi Tag: RDLC manual Tag: 117614
Application exiting before doing what it should do
Hi
My app involves an Infragistics control but as problem seems to be more with
how vb.net works when using SUB Main so I am posting it here nevertheless. I
want my app to pick up the first command line argument, pass it to
infragistics desktop alert control to display and then exit. My code is
given below. Problem is that app exits as soon as it is run and desktop
alert does not get time to be displayed. However the same alert displays
fine if I use start-up form (instead of SUB Main) and use a button on form
to run the ShowDesktopAlert SUB.
What is the problem and how can I make it work using SUB Main?
Thanks
Regards
Module modMain
Friend WithEvents dalMain As New Infragistics.Win.Misc.UltraDesktopAlert
Sub Main(ByVal sArgs() As String)
Dim Tel As String = ""
Dim Caption As String = ""
If sArgs.Length > 0 Then
Tel = sArgs(0)
Caption = "Incoming Staff call " & Tel
ShowDesktopAlert(Caption, "Goto contact?")
End If
End Sub
Sub ShowDesktopAlert(ByVal Caption As String, ByVal Msg As String)
dalMain.Show(Caption & ":" & Msg, "Click here to go to contact
record.")
Application.DoEvents()
End Sub
End Module Tag: RDLC manual Tag: 117608
Using Sub Main with application framework
Hi
How can I use Sub Main (instead of start-up form) while still be able to use
application framework? At present it seems I can have one or the other. I
need it for an app that does not have a UI.
Thanks
Regards Tag: RDLC manual Tag: 117606
Display 2 decimal point
How do you display a double value in 2 decimal point?
For e.g., the value 2.2, I want to display it as 2.20 instead of 2.2. I
tried System.Math.Round(thevalue,2), but it still display the value as 2.2
and not 2.20.
I using .NET 2.0 Framework, Visual Basic. Thank you. Tag: RDLC manual Tag: 117598
Flicker in with Layered Windows
I am displaying a semi-transparent dialog window (Opacity=50%) over
another window. Whenever the background window is Invalidated, it
causes a flicker in the foreground layered window.
For example, an animated gif will cause this flicker in any region of
the layered window that is over the animation.
Is there any solution to this?
(fyi, double-buffered doesn't do anything. Setting Opacity=100%
resolves this but then i lose the semi-transparency) Tag: RDLC manual Tag: 117596
Suhali Leather Lockit PM Verone M91790 - www.luxury-gift.org
Suhali Leather Lockit PM Verone M91790 - www.luxury-gift.org
Luxury Gift : http://www.luxury-gift.org
Louis Vuitton handbags : http://www.luxury-gift.org/Handbags/Louis-Vuitton-handbags.html
Suhali Leather Lockit PM Verone M91790 Link :
http://www.luxury-gift.org/Handbags/Handbags-7483.html
Suhali Leather Lockit PM Verone M91790 Information :
Brand : Louis Vuitton handbags
Code :
Description :
This goatskin city bag can be carried on the arm or hand-held.The
Lockit small model features an inside patch pocket and is ideal for
everyday essentials.- Suhali goatskin and polyester lining- Golden
brass pieces - Zipper closure with padlock- Internal zipped pocket -
Contrasting topstitch and traditional studs of the House- Carried on
the arm or hand-held- LV padlock- Small detachable bell to hold the
key - Four protective studs on the baseSize: 12.6" x 10" x 6.1"This
Suhali Leather Lockit PM Verone handbag comes with:Serial and model
numbers, the LV dust bag, care booklet, LV cards, and copy of the
genuine receipt from an official LV store.
Suhali Leather Lockit PM Verone M91790 Link :
http://www.luxury-gift.org/Watches/Handbags-7483.html Tag: RDLC manual Tag: 117588
DataGridView and ThreeState
Hello,
I have a DataGridView with a DataGridViewCheckBoxColumn. I want to be
able to have the checkbox display in an indeterminate state, so I've
set the ThreeState property to True. However, I want the indeterminate
state to only be set programatically - whenever the user clicks the
checkbox, it should only toggle between Checked and Unchecked.
Now, this is the default behaviour of a standard CheckBox control - as
detailed in the CheckBox.ThreeState property documentation:
"the CheckState property value can only be set to the Indeterminate
value of System.Windows.Forms.CheckState in code and not by user
interaction"
How would I achieve this with DataGridView? I'm committing the changes
to the checkbox cells immediately by catching the
CurrentCellDirtyStateChanged event and calling CommitEdit as suggested
in the documentation for DataGridView. However, if I try catching the
indeterminate state in this event or in CellValueChanged, and setting
Value to CheckState.Unchecked, the cell's Value property changes but
the display does not update until the control loses focus or another
row is selected.
As this is the default for the CheckBox control, I'm sure it can't be
that difficult to get the DataGridView to do it. What am I missing?
Thanks in advance for your help,
Steven Tag: RDLC manual Tag: 117582
ClickOnce on a Terminal Services server farm
Hello,
I think I know the answer to this, I would just like a second opinion
and other ideas.
We have a ClickOnce application that one of our clients would like to
install in a Terminal Services server farm. The application is
installed from a URL and added to the Start menu and uses the .NET 2.0
framework.
The ClickOnce application files are stored in the directory
C:\Documents and Settings\<username>\Local Settings\Application Data.
The issue is that the Local Settings folder is not part of Profile
Synchonization (or folder redirection). Their policy is that files in
the Local Settings folder are removed when the user logs off. The
result is that the application is re-installed each time the user runs
the application from the start menu. This is of course unacceptable.
I am afraid that the only solution is to have them use an MSI file,
but I am looking for other ideas?
I have read conflicting reports that there is a way to modify the
ClickOnce store on each server? Anyone?
Thanks in advance.
Glenn Smith Tag: RDLC manual Tag: 117580
DoubleBuffered not working in panel?
For a kiosk-type application I have a form with some labels placed directly
onto it, and an empty panel that covers part of the form.
During program execution, labels are added to and removed from that panel
to display different information.
The form has a background image.
Its DoubleBuffered property = True to avoid flickering during updates, but
double buffering seems to be used only for controls placed directly on the
form, not for those within the panel. Updating the panel without visible
flicker seems to be impossible.
Each "flicker" consists of the background image within the panel's
boundaries first disappearing (replaced by the form background color), and
reappearing immediately thereafter.
When the background image reappears, that doesn't happen in a single
stroke: it becomes visible first for about half of the area. The rest
follows at the next display refresh (I mean monitor vertical sync).
If you ask me, this (disappearing / reappearing in more than one display
refresh) means it is either not being double-buffered, or the working
buffer is copied into the screen buffer to soon, while it is still being
repainted.
The platform is XP Professional (application being developed for later use
on XP Embedded).
The flicker does NOT seem to occur on my development machine, which is
running Vista, but this machine is also equipped with a more performant
processor and display adapter, which may explain the difference too. Tag: RDLC manual Tag: 117578
Newbie question: Cstr vs toString
Hi
I have a WinForm app with a bound form. When user enters a value in field
rateid I lookup the respective rate amount from a table and assign it to
field rate.I am using the DLookup function to achieve this (full code given
below). This function returns a value of type object so I need to convert it
to string. If I use the function as below (using ToString) it works fine;
Me.txtRate.Text = DLookup(<parameters here>).ToString
but if I use it with a CStr
Me.txtRate.Text = CStr(DLookup(<parameters here>))
and then browse through 2-3 record the form stops showing data in the bound
fields. This brings me to question; what is the difference between CStr and
tostring that could be causing the above problem?
Thanks
Regards
=======
Function DLookup(ByVal SearchFld As String, ByVal SearchTbl As String, ByVal
SearchCriteria As String) As Object
Dim Cmd As OleDb.OleDbCommand
Dim Reader As OleDb.OleDbDataReader
Cmd = New OleDb.OleDbCommand("SELECT " & SearchFld & " FROM " & SearchTbl
& " WHERE " & SearchCriteria, DBConnection())
Reader = Cmd.ExecuteReader()
If (Reader.Read()) Then
DLookup = Reader.GetValue(0)
Else
DLookup = DBNull.Value
End If
Reader.Close()
Reader = Nothing
Cmd = Nothing
End Function Tag: RDLC manual Tag: 117577
.NET & Accessibility
Hi *.*,
I'm using Accessibility (oleacc.dll) for getting some informations from
foreign programs, e.g. with "AccExplorer32.exe". Normally, I can get several
informations about the "ObjectFromPoint", such as Role, State, Name etc. and
also WindowHandle. On WinForms, I don't get a Handle (always zero). Bug or
feature? It seems to me that the support for Accessibility in .Net Framework
is not (yet) perfect...
Juergen. Tag: RDLC manual Tag: 117575
Registered messages in C#
I have to interface with an unmanaged DLL. This involves passing a
registered message value into the DLL, and it posting the registered
message back to my app's window when an event occurs. But I've
searched the web all morning and can't find _anything_ on handling
registered messages in C# Winforms apps.
Can anyone point me in the right direction?
Bob Moore
http://bobmoore.mvps.org/ Tag: RDLC manual Tag: 117574
C# Web Browser Control -- drag n drop web contents on HTTPS website
Hi,
I apologies if this similar message was posted before.
I need to develop an application which connects to HTTPS website and
show the contents (web folders) just like windows explorer, so i can
apply drag n drop, cut, copy and paste operations. The functionality
should be similar to the Internet Explorer File --> Open --> Open as
Web Folder.
Currently, i am using Visual C#.Net 2.0 as a programming language, Web
Browser component in my application.
Thanks in advance. Tag: RDLC manual Tag: 117572
Compatible Type for DataGridViewRowCollection + 'SelectedRowCollec
Good afternoon (for everyone in time zones -10 through +1, at the moment).
This is a minor problem, but it's bugging me, it seems like there should be a
graceful solution.
I need to iterate over either the selected rows in a DataGridView, or (if
none are selected) ALL the rows. Either way I perform the same operations.
At the moment, I have a switch leading to one of two foreach loops, each with
identical content. What I'd like to do is choose one of two collections
(.Rows or .SelectedRows) and then iterate over it - no repeated code.
However, the types of these parameters are DataGridViewRowCollection and
DataGridViewSelectedRowCollection rather than IEnumerable<DataGridViewRow>.
The docs say that they implement this interface, or rather implement
IEnumerable, but it's invalid to cast up. This is what I'd like to get
working:
IEnumerable<DataGridViewRow> rows =
DataContacts.SelectedRows.Count == 0 ?
DataContacts.Rows : DataContacts.SelectedRows;
foreach (DataGridViewRow row in rows)
/*Do stuff with the row*/
This fails at compile time; casting .Rows and .SelectedRows to
IEnumerable<DataGridViewRow> fails at runtime. This is my inelegant
workaround:
if (DataContacts.SelectedRows.Count == 0)
{
foreach (DataGridViewRow row in DataContacts.Rows)
/*Do stuff with the row*/ }
else
{
foreach (DataGridViewRow row in DataContacts.SelectedRows)
/*Do stuff with the row*/ }
Any thoughts? I suppose could wrap the "Do stuff" part in a function, or
use a delgate, but it seems clumsy. Thanks! Tag: RDLC manual Tag: 117566
Icon size in listview
Hi,
When the user drags an icon in the listview, i want to prevent him
from dropping
the icon such that it overlapps with another icon. Therefore i need to
know the size
of the icons. Is there a way to know the size?
Thanks,
Lior Tag: RDLC manual Tag: 117564
Cartier Santos 100 Chronograph w20090x8, Best Luxury Watch -
Cartier Santos 100 Chronograph w20090x8, Best Luxury Watch - www.luxury-gift.org
Luxury Gift : http://www.luxury-gift.org
Cartier Watches : http://www.luxury-gift.org//cartier-watches.html
Cartier Santos 100 Chronograph w20090x8 Link :
http://www.luxury-gift.org/Watches/cartier-watch-530.html
Cartier Santos 100 Chronograph w20090x8 Information :
Brand : Cartier Watches
Series : Santos 100 Chronograph
Code : w20090x8
Gender : Mens
Case Material : Stainless Steel
Dial Color : Silver
Bracelet Strap : Leather - Black
Movement : Automatic Chronograph
Clasp Type : Deployant Clasp
Bezel : Fixed
Crystal : Scratch Resistant Sapphire
Case Back : Solid
Case Diameter : 38mm x 38mm not including lugs
Case Thickness : 10.5mm
Water Resistant : 30m/100ft.
Silver dial with Large Black Roman numerals, Luminous hands, crown set
with sapphire, Date between the 4 & 5.
Cartier Santos 100 Chronograph w20090x8 Link :
http://www.luxury-gift.org/Watches/cartier-watch-530.html Tag: RDLC manual Tag: 117560
Rado Sintra Superjubile Ladies Watch R13633709, Best Luxury Watch -
Rado Sintra Superjubile Ladies Watch R13633709, Best Luxury Watch -
www.luxury-gift.org
Luxury Gift : http://www.luxury-gift.org
Rado Watches : http://www.luxury-gift.org//rado-watches.html
Rado Sintra Superjubile Ladies Watch R13633709 Link :
http://www.luxury-gift.org/Watches/rado-watch-2209.html
Rado Sintra Superjubile Ladies Watch R13633709 Information :
Brand : Rado Watches
Series : Rado Sintra
Code : Rado-Sintra-Ladies-Watch-R13633709
Gender : Ladies
Case Material : White Ceramic and 18kt White Gold
Dial Color : White With 4 Diamonds
Bracelet Strap : White Ceramic and 18kt White Gold With
Diamonds
Movement : Quartz
Clasp Type : Hidden Deployment
Bezel : 40 Diamonds
Crystal : Scratch Resistant Sapphire
Case Back :
Case Diameter :
Case Thickness :
Water Resistant : 30m/100ft
White ceramic and 18kt white gold case and bracelet set with diamonds.
Bezel set with 40 diamonds. White dial with 4 diamond hour markers.
Scratch resistant sapphire crystal. Hidden deployment clasp. Case size
21mm x 17mm. Quartz movement. Water resistant at 30 meters (100 feet).
<br><br><b> </b><br> <table width="100%" border="0"><tr
valign="top"><td width="119" nowrap bgcolor="#EFEFF1"><font
color="#000066" size="2" face="Arial, Helvetica, sans-serif"><b>Brand</
b></font></td><td width="641" bgcolor="#EFEFF1"> <font color="#000000"
size="2" face="Arial, Helvetica, sans-serif"> Rado</font></td></tr><tr
valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Series</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> Rado Sintra</font></td></tr><tr
valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Gender</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> Ladies</font></td></tr><tr valign="top"><td
nowrap bgcolor="#EFEFF1"><font color="#000066" size="2"
face="Arial,Helvetica,sans-serif"><b>Case Material<br></b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> White Ceramic and 18kt White Gold</font></td></
tr><tr valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Dial Color</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> White With 4 Diamonds</font></td></tr><tr
valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Bezel</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> 40 Diamonds</font></td></tr><tr
valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Movement</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> Quartz</font></td></tr><tr valign="top"><td
nowrap bgcolor="#EFEFF1"><font color="#000066" size="2" face="Arial,
Helvetica, sans-serif"><b>Clasp</b></font></td><td
bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> Hidden Deployment</font></td></tr><tr
valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Bracelet</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> White Ceramic and 18kt White Gold With
Diamonds</font></td></tr><tr valign="top"><td nowrap
bgcolor="#EFEFF1"><font color="#000066" size="2" face="Arial,
Helvetica, sans-serif"><b>Water Resistant</b></font></td><td
bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> 30m/100ft</font></td></tr><tr valign="top"><td
nowrap bgcolor="#EFEFF1"><font color="#000066" size="2" face="Arial,
Helvetica, sans-serif"><b>Crystal</b></font></td><td
bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> Scratch Resistant Sapphire</font></td></tr><tr
valign="top"><td nowrap bgcolor="#EFEFF1"><font color="#000066"
size="2" face="Arial, Helvetica, sans-serif"><b>Warranty</b></font></
td><td bgcolor="#EFEFF1"><font color="#000000" size="2" face="Arial,
Helvetica, sans-serif"> 2 Year Jomashop.com Warranty</font></td></tr></
tr></table><br><br>Rado watches are well-known for the highly scratch-
resistant materials used in their watch collections. Instead of the
easy-tarnished, conventional materials used in other luxury watch
brands (such as steel and gold); Rado uses unique materials such as
high-tech ceramics, hardmetal, platinum, diamonds, and lanthanum in
their watches for superior longevity. Rado watches truly combines
exquisite form with function, as the movement accuracy embedded within
the watch internally complements its durable exterior. Jomashop.com is
proud to offer an extensive line of discounted Rado watches: Rado
Integral watches, Rado Ceramica watches, Rado Sintra watches, Rado
Couple watches, Rado Ovation watches, Rado Anatom watches, Rado Cerix
watches, and other Rado watch series are available
Rado Sintra Superjubile Ladies Watch R13633709 Link :
http://www.luxury-gift.org/Watches/rado-watch-2209.html Tag: RDLC manual Tag: 117558
Chopard Mille Miglia 168992-3003 (16/8992/3), Best Luxury Watch -
Chopard Mille Miglia 168992-3003 (16/8992/3), Best Luxury Watch -
www.luxury-gift.org
Luxury Gift : http://www.luxury-gift.org
Chopard Watches : http://www.luxury-gift.org//chopard-watches.html
Chopard Mille Miglia 168992-3003 (16/8992/3) Link :
http://www.luxury-gift.org/Watches/chopard-watch-553.html
Chopard Mille Miglia 168992-3003 (16/8992/3) Information :
Brand : Chopard Watches
Series : Mille Miglia
Code : 168992-3003 (16/8992/3)
Gender : Mens
Case Material : Stainless Steel
Dial Color : White
Bracelet Strap : Leather - Black
Movement : Automatic Chronograph Chronometer
Clasp Type : Deployant Clasp
Bezel : Fixed
Crystal : Scratch Resistant Sapphire
Case Back : Transparent
Case Diameter : 42mm
Case Thickness : 14.2mm
Water Resistant : 50m/165ft.
Polished steel case, White dial with date at 3 o'clock, Second time
zone, Luminous hands and hour markers.
Chopard Mille Miglia 168992-3003 (16/8992/3) Link :
http://www.luxury-gift.org/Watches/chopard-watch-553.html Tag: RDLC manual Tag: 117557
Lookup in gridview
Hi
I have a gridview bound to a backend table A via dataset/data adapter. A
drop down is bound to a second table B. When user selects a value form drop
down I want to lookup another column in table B based on value selected from
drop down and assign the lookup value to a column in gridviw. How can I pick
the value selected by user and do the lookup from table B?
Thanks
Regards Tag: RDLC manual Tag: 117556
ClickOnce installs to Vista Client
I have placed a ClickOnce installation package on a Windows 2003 server. I
am able to install from this location to a Windows XP client. However, when
I attempt to install to a Vista client, the installation is unsuccessful.
The log shows the error message "Unable to connect to the remote server. No
connection could be made because the target machine actively refused it."
Vista has no problem obtaining and displaying the publish.htm page, so I
know this client has access to the server. The server is capable of serving
up the install properly to an XP client, so I think the server is configured
properly. So what needs to be changed so I don't get this error on a Vista
client? Tag: RDLC manual Tag: 117555
Impact of Verisign Timestamping Service on ClickOnce deployed Apps
We have a number of applications that are deployed using ClickOnce and we use
the VeriSign timestamping service. The VeriSign timestamping service is being
upgraded to use SHA-1 instead of MD5 and I need to gauge how this will affect
our applications.
From what I understand when the application is signed the TimeStamping
Service is called to generate a hashed timestamp that is inserted in the code
with the signature. When the client verifies the signature it verifies the
timestamp and if it is valid it ignores the expiration date of the
certificate.
This means that nothing should change on the deployment side but it will
affect client machines with older operating systems (Pre Win2k) that don't
know how to deal with SHA1 timestamp.
Can anyone confirm this information and tell me if any other problems await
me? Tag: RDLC manual Tag: 117554
class libraries and components
I'm posting here rather than in the controls group because mine is a
multi-part question, only partially involving components. It's more a
design issue. The environment is VS2008, BTW.
I am a long-time C++ MFC consultant (who also does native code
Delphi), stepping temporarily into the dotnet world to solve a
specific problem. For our new system I have developed a communications
interface, the details of which need not concern us here. Suffice it
to say that you talk to this beast via a DLL, using messages in a
fixed (binary) format. That works fine for the C++ server apps. But C#
client-side programs will now also need to talk to this interface.
Obviously the C# message objects have to be marshalled into this
binary format. I already have the code to do a subset of the necessary
marshalling developed for an earlier prototype which talked to an
older version of the comms utility, using the old obsolete DDE format
(it used the NDDE DLL that some kind soul published). That code was
standalone classes within a single project. Now I need something that
can be shared among multiple developers.
So in essence, I have a bunch of classes to represent the messages,
which C# apps need to use, and a bunch of functions which implement
the DLL interface, which C# apps also need to use, passing the one
into the other.
For the sake of simplicity, it seems to me that the connection to the
comms subsystem should be handled via a component which C# developers
can just drop onto their form. This would be a non-visual component,
which would encapsulate the DLL interface. I then thought that the
classes would form an ordinary class library... but it seems like the
only way for multiple C# apps to share code is via a referenced
assembly. There seems to be no equivalent of a simple shared unit of
code, like a Delphi unit.
Also, because of the interop issues, for a C# app the DLL interface
only makes "sense" when viewed via the classes implemented in the
class library, so it looks like the classes really belong inside the
component. C# apps certainly can't send the binary format that the DLL
expects, so the component needs to do the marshaling as well.
I am _really_ lost in this alien enviroment. Can anyone offer advice,
or point me at a good book/site on component authoring?
Bob Moore
http://bobmoore.mvps.org/ Tag: RDLC manual Tag: 117553
Cartier Santos 100 w20072x7, Best Luxury Watch - www.luxury-gift.org
Cartier Santos 100 w20072x7, Best Luxury Watch - www.luxury-gift.org
Luxury Gift : http://www.luxury-gift.org
Cartier Watches : http://www.luxury-gift.org//cartier-watches.html
Cartier Santos 100 w20072x7 Link :
http://www.luxury-gift.org/Watches/cartier-watch-520.html
Cartier Santos 100 w20072x7 Information :
Brand : Cartier Watches
Series : Santos 100
Code : w20072x7
Gender : Mens
Case Material : Stainless Steel & Gold
Dial Color : White
Bracelet Strap : Leather - Brown
Movement : Automatic
Clasp Type : Deployant Clasp
Bezel : Fixed
Crystal : Scratch Resistant Sapphire
Case Back : Solid
Case Diameter : 38mm x 38mm not including lugs
Case Thickness : 10.5mm
Water Resistant : 30m/100ft.
Steel Case with 18kt Gold Bezel. Large Black Roman numerals. Luminous
hands.
Cartier Santos 100 w20072x7 Link :
http://www.luxury-gift.org/Watches/cartier-watch-520.html Tag: RDLC manual Tag: 117551
Damier Canvas Chelsea N51119 - www.luxury-gift.org
Damier Canvas Chelsea N51119 - www.luxury-gift.org
Luxury Gift : http://www.luxury-gift.org
Louis Vuitton handbags : http://www.luxury-gift.org/Handbags/Louis-Vuitton-handbags.html
Damier Canvas Chelsea N51119 Link :
http://www.luxury-gift.org/Handbags/Handbags-6987.html
Damier Canvas Chelsea N51119 Information :
Brand : Louis Vuitton handbags
Code :
Description :
This stylish bag combines the practicality of a briefcase with the
modernism of a messenger bag. The open compartment, with a pair of
flat patch pockets, is perfect for notebooks or small electronics,
while the two exterior pockets hold pencils, cell phone, and other
smaller essentials. - Damier canvas with chocolate brown leather trim
- Terracotta canvas lining with two inside patch pockets and a D-ring
- Two outside pockets, each 5" x 7.5" x 1.5" - Leather top handle -
Adjustable textile strap to carry on the shoulder or across the body
Size: 14.5" L x 9.5" H x 5" WThis Damier Canvas Broadway Handbag comes
with:Serial and model numbers, the LV dust bag, care booklet, LV
cards, and copy of the genuine receipt from an official LV store.
Damier Canvas Chelsea N51119 Link :
http://www.luxury-gift.org/Watches/Handbags-6987.html Tag: RDLC manual Tag: 117549
Best method for including a static file within project
Refresh my memory please. Assume you have a static (i.e. text or xml) file
you want to include in your project (VB, Visual Studio 2005). What is the
best (simplest) method for accessing it programatically? (Feel like I'm
forgetting something.) Tag: RDLC manual Tag: 117547
The wish to pass a value from a (child) class to a (parent) form
I have a MainForm class and a second class which initializes an
instance of a second class which I call CommunicationManager.
This is just a simplified representation of the MainForm class:
partial class MainForm : Form
{
[STAThread]
static void Main()
{
Application.Run(new MainForm());
}
// Public accessor
public string textToDisplayBox
{
set { this.textBox4.Text = value; }
}
// CommunicationManager
CommunicationManager comm = new CommunicationManager();
}
The CommunicationManager class has a simple function, i.e. to collect
in a string the output from the comport...
My troubles stem from the fact that I am unable to reference back to
the form which second class is initiated.
Do you have any suggestions on how to achieve this?
Best regards,
H Tag: RDLC manual Tag: 117545
Quick question about XML manipulation
I have just been told I need to write a quickie throwaway program that
generates an XML file. I am a bit rusty. The program will be written using
VB in Visual Studio 2005.
Do I understand this correctly - If I include a reference to an XSD or DTD
file at the start of the XMLDocument object, there will be automatic
validation of the data as it is added to the structure? (Assuming the XSD or
DTD is in an accessible location?) Tag: RDLC manual Tag: 117544
i want to know where can i download a PDF version of the reporting
defination language RDLC?