Show Blank value in Combo Box
I need to display a blank value as well as other values. I do not want to
alter any current records but just be able to display this blank value
amongst the list.
I have not been able to figure out how to do this in a combo box. Any help
will be greatly appreciated.
carlt@gicw.org Tag: where is ip address control? Tag: 76803
Alignment of HeaderText of DataColumnStyle
Hi,
I am using DataGrid to develop my application. My screen design have to
shows all column on datatable in datagrid must be display text on center
alignment. When I set RightToLeft property to Yes then the column HeaderText
automatically align Right even I used to set to Center but the Data in row
still align Center.
Can anyone explain to me about behavior of datagrid when is set to right to
left?
How possible to set the HeaderText always align Center?
Cheer,
KPH Tag: where is ip address control? Tag: 76802
COM Add-in toolbar click events only fire once if window is initialized
This is a very bizare problem. So, I have a C# COM Add-in for Excel
which creates a toolbar, then pops-up meaningful windows when you
click the toolbar buttons. Everything works fine the first time.
After that, my event handlers do not get called when I click the
toolbar handlers. I've isolated the problem down to initializing a
dialog window (never actually showing the window). Explicitely, the
VisualStudio IDE is initializing the first component, failing on:
this.instructionLabel.Location = ((System.Drawing.Point)
(resources.GetObject("instructionLabel.Location")));
in InitializeComponent(). If I comment out the rest of the
initialization code from this line to "this.ResumeLayout(false);", the
event will fire every time. Note that there are plenty of lines
before this with plenty of equally 'severe' calls:
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(AuthenticationPopup));
this.instructionLabel = new System.Windows.Forms.Label();
this.userIdLabel = new System.Windows.Forms.Label();
...
this.SuspendLayout();
...
this.instructionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)
(resources.GetObject("instructionLabel.Anchor")));
...
Unfortunately, this isn't a clear relationship, as I can't duplicate
it in a simple sample app where I create the add-in, toolbar, form
(localized), and one simple label. Other things happening:
- If I comment out all of the form stuff, there is also a networking
class that basically does XML-RPC http client calls that causes the
same problem. Commenting out the 2 together allows for multiple
firings.
- I was previously developing this app as a simple COM interop
application launching it from some Excel VB code. This issue wasn't
present in that mode.
Thanks,
Carlos
versions: .NET 1.1, OfficeXP, VisualStudio.NET 2003 (latest service
packs) Tag: where is ip address control? Tag: 76800
Simple use of ToolTip in VB not working
OK, my understanding of the simple use of the tooltip is to do the
following:
Drag the ToolTip from the toolbox on to your form. Once this is done
all the controls have a new property added to them called "ToolTip on
ToolTip1" (default name).
For each control you can go and enter the specific text for that
particular control. Then when the mouse is hovered over your controls
any ToolTips you've defined for the controls should be displayed.
I COULD NOT GET THIS TO WORK until I did the additional step:
On my first control I added an event handler for mouse over as
follows:
Private Sub lblAddOne_MouseHover(ByVal sender As Object, ByVal e As _
System.EventArgs) Handles lblAddOne.MouseHover
ToolTip1.SetToolTip(sender, "Move Selected Items From List 1 to List
2")
End Sub
Once I added this code the ToolTip on the first control worked fine.
I then just configured the properties of the second control's ToolTip
and IT worked fine without any extra code!
What am I missing here?
TIA.
JB Tag: where is ip address control? Tag: 76794
disposing of SystemBrushes
Hi
If i create a Brush object I believe it is good practice to explicitly
dispose it or use it within a using block.
Is it correct to assume that this does not apply to brushes from the
SystemBrushes collection?
Adam Tag: where is ip address control? Tag: 76793
remove combox 3d border
How can I remove the 3d border of a combobox on a windows form.
even on a box using xp style it is painting with a 3d border.
it does not seem to have a BorderStyle property.
could I do this by overriding OnPaint at all?
Adam Tag: where is ip address control? Tag: 76792
how to add button column in Datagrid
Hello everyone,
I was wondering if I can extend the Windows Forms Datagrid to add my own
ButtonColumn (like in ASP.NET Datagrid). I also would like to add my own
Formatted Text box column. Is it possible to extend the current Datagrid to
do this.
Please let me know
Thanks
--
Rajiv Tag: where is ip address control? Tag: 76786
Running with XP-Style
In MSDN the topic "Add the Manifest to the Executable File"
under "Using Windows XP Visual Styles With Controls on Windows Forms"
explains how to add the manifest resource to the executable after it's been
built.
So after a subsequent rebuild the proccess (of adding the resource) must be
repeated.
Is there a way the VS.NET 2003 IDE can do this automatically?
Thanks,
Opher. Tag: where is ip address control? Tag: 76782
TextBox carret not placed correctly
Hi,
When a user clicks a TextBox on a modal form, the caret immediately
moves to the clicked location within the existing text. On a non-modal form,
the user's TextBox click sets the focus appropriately, but fails to set the
caret. How do I correct this behavior? When the user clicks in the midst of
a word within a TextBox, the caret should be placed precisely between the
two characters at the click-point. Any ideas?
Thanks... Tag: where is ip address control? Tag: 76781
AutoScroll property
Hi,
I have a very long Form whose AutoScroll property is set to true. The
user can easily scroll vertically through the form. The problem is that as
the user drags the scroll marker up and down, the form doesn't actually
scroll. Instead, the user must release the mouse button before the form
redraws. Is there any way to make scrollable forms behave like every other
Windows application on the market (Word, VS.NET, etc.) in that the view
would actually scroll in real-time as the user drags the scroller knob?
Thanks... Tag: where is ip address control? Tag: 76780
ClickOnce Provider
Ok, I ran into this problem also ;-(
http://weblogs.asp.net/klaus.aschenbrenner/archive/2004/08/25/220475.aspx
Instead of un-installing / reinstalling or using mageui ... does anyone know
what registry setting is used so I can just have clickonce pick the info up
from there? Tag: where is ip address control? Tag: 76778
AutoScale and MDI child maximized forms
Hi,
We have developed a MDI application using small fonts, when running the
application in a Large fonts setup it works ok AS LONG we make sure that the
mdi child forms open in normal mode (not maximized), if they open maximized
the control on the right and bottom of the form are lost (because the
controls are wrongly resized).
I do want the controls to resize... what i don't want is it to fail while it
does it.
Also: we worked around it so any time you open a form it opens normalized
instead of maximized (and that works fine, but it is a workaround).
Is this a bug?
José Tag: where is ip address control? Tag: 76776
Inherits TextBox and then?
Hi,
I have inherit a class from TextBox. In my class I do some stuff. But how
can I get my class to a form? Placing a normal TextBox and changing TextBox
to MyTextBox will not work. The box disappears from the form.
What must I do?
Thanks
Werner Tag: where is ip address control? Tag: 76769
clipboard
Hello,
Is it possible to put in the Clipboard, an object which implements the
IDataObject interface but that knows only a format that is not defined in
the DataFormats?
What i want to do is to pull an object from the clipboard lke this:
IDataObject pulledObject = Clipboard.GetDataObject();
if ( pulledObject != null && pulledObject.GetDataPresent(
"MyObjectFormat" ) )
{
CMyClass A = pulledObject.GetData( "MyObjectFormat") as
CMyClass;
}
Pascal Tag: where is ip address control? Tag: 76764
Object Excel and explore Issue
I have a Windows form application that creates
a report and display data in Excel. When I open the
Excel file with Explore I can only see the Excel Menu
without the workbook. If I click on the View menu and
Full Screen item menu, then the workbook is displayed.
Why is this?
The following example code is below from MSDN.
Thanks
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
'Start a new workbook in Excel.
oExcel = CreateObject("Excel.Application")
oBook = oExcel.Workbooks.Add
'Add data to cells of the first worksheet in the
new workbook.
oSheet = oBook.Worksheets(1)
oSheet.Range("A1").Value = "Last Name"
oSheet.Range("B1").Value = "First Name"
oSheet.Range("A1:B1").Font.Bold = True
oSheet.Range("A2").Value = "Doe"
oSheet.Range("B2").Value = "John"
'Save the Workbook and quit Excel.
oBook.SaveAs(sSampleFolder & "Book1.xls")
oSheet = Nothing
oBook = Nothing
oExcel.Quit()
oExcel = Nothing Tag: where is ip address control? Tag: 76762
Form Minimize.
Hi.
How can I make something when user minimize Form (push standard toolbar
minimize button on the top of the form).
After it, I'd like to hide my form and show notifyicon (like many programs
having)
Thanks for wrote-nice day. Tag: where is ip address control? Tag: 76761
Q: Menu, Toolbar, DockingWindows free controls recomendation?
Hello!
Availability of different Win.Forms controls libraries makes choice hard, so
I decided to ask community.
I do look for libraries which would provide at least following
functionality:
Office 2003 command bar
VS.NET docking windows
One limtiation I have is that they need to be LGPL/MIT or any other open
source licence based - which would allow for integration with simple
commercial product. We do need to have full source code at our unlimited
disposal.
Using commercial solutions i.e. Infragistics, ComponentOne or others was
ruled out after some tests and licence condition evaluations.
Any suggestions?
Cheers
Jacek Tag: where is ip address control? Tag: 76757
ButtonClick method.
Hi.
How can I raise button method with no pushing that button manualy.
I would like to do something like that:
button1->click().
Just want to execute button event function.
Good Day, havy nice work (going fast). Thanks. Tag: where is ip address control? Tag: 76755
Form.Close() returns void?
Hi,
At a certain point in my application, I have access to a Form object. I
want to close that form:
form.Close();
There are any number of reasons why this form might not close. A common
reason might be that the user answered "No" when the form's OnClosing()
override asked him "Are you sure you want to close this form?"
It seems like Form.Close() should return a *bool* indicating whether or
not the closure was successful. I can think of lots of tricky workarounds to
get a hold of this value, but the fact that Close() isn't designed to return
this crucial value directly makes me wonder if I'm using the wrong approach
to close the form. Is there another method that I should consider?
Thanks... Tag: where is ip address control? Tag: 76746
C++.Net Performance
Hi Guys,
I'm writing some addin modules for my C# app in managed C++.Net. I've
noticed that managed C++ is slower than C#, or at least it seems to be. The
startup for an empty form takes noticeably longer. Is this just a startup
thing, or is there really a performance difference between C# and manged
C++?
James Tag: where is ip address control? Tag: 76745
Can I do this - Control Focus despite Tab Order ?
Using the tab order in VB on a form works fine but to me it seems
tedious (at times) to have to set or be concerned with the tab order.
I can't seem to get a control to have focus on the load form
event...am I doing something wrong or do I just need to control this
thru tab order?
TIA
JB Tag: where is ip address control? Tag: 76741
Controls on a tabcontrol share the same keyboard shortcut scope
There is a known bug in 1.1 Framework that all the controls on multiple
tabpages of a tabcontrol share the same keyboard shortcut scope. Does anyone
know how to work around this problem? Thanks fro your help.
http://support.microsoft.com/?kbid=836745 Tag: where is ip address control? Tag: 76740
Databound Combobox doesn't call SelectedIndexChanged event
I have a databound drop-down-list style combobox that is databound to a
dataset. Initially there are no items in the dataset/list. But when I
later do a Fill on the dataset when data is present. When this happens, one
item is added to the listbox and that item becomes selected. However, the
SelectedIndexChanged event is not getting called. If I select the item
again in the GUI, then the event does get called. Why isn't it getting
called initially?
I tried creating a basic combobox that is not databound and tried adding a
single item to that list in code. The event gets called correctly in this
case. So it apparently is just when the item is generated from the data
binding that the event isn't called. Tag: where is ip address control? Tag: 76739
form spawning on its own
I have a form that uses the UIP app. block for navigation. The app is a
testing application. The first part is the tutorial test. The 2nd part is
the actual test. Both parts share the same form. When I go from the tutorial
to the test part, a new form is spawned by itself. This didn't used to
happen. I think it started happening after I was working on a section that
changes the current culture when a button is clicked. I'm not doing anykind
of new() calls on the form, it just spawns automatically.
Does anyone know any ideas to help figure out why?
thanks a lot! Tag: where is ip address control? Tag: 76738
Adding Controls to a User Control at Design Time
I posted this to ms.p.d.framework.windowsforms.controls but the only
response was from somebody who had the same problem.
Can anybody here give me any guidance - or suggest a more appropriate
group?
I am building a small control with two panels and a splitter.
When I use the control in designing an app at design time I want to be
able to add this control to my form and then drag other controls on to
it to be contained within the panels.
Although I can drag controls on to it they do not get 'captured' by it.
I added a couple of properties so that the contained controls can be
specified but I would rather go the drag and drop route.
Any pointers or examples that you are aware of?
Many thanks.
--
Jeff Gaines - Damerham Hampshire UK
Posted with XanaNews http://www.wilsonc.demon.co.uk/d7xananews.htm Tag: where is ip address control? Tag: 76734
OCR with MODI
Hi!
I'm using MODI activex from Microsoft Office 2003 and Microsoft VB.NET to
get the text from an OCR acquired image.
Why after OCR the image, the MODI component rotate the image?
Sometimes the MODI rotates the image 90 degrees and the OCR, obviously, can'
t do its job. Any ideia why this is happening?
There is my code:
Dim miDoc As MODI.Document
Dim miWord() As MODI.Word
Dim strWordInfo As String
Dim i, j As Long
Dim str As String
Dim Cont As Long
Dim IMG As Long
miDoc = New MODI.Document
miDoc.Create("C:\MultiPage.tif")
str = ""
Cont = 0
IMG = miDoc.Images.Count - 1
miDoc.OCR(MiLANGUAGES.miLANG_ENGLISH, True, True)
For j = 0 To IMG
miDoc.Images(j).rotate(0)
For i = 0 To miDoc.Images(j).Layout.Words.count - 1
ReDim Preserve miWord(Cont)
miWord(Cont) = miDoc.Images(j).Layout.Words(i)
Cont += 1
Next
Next
For i = 0 To miWord.Length - 1
str = str & " " & miWord(i).Text
Next
miDoc.Close(False)
miWord = Nothing
--
Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: passos@rcsoft.pt
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401 Tag: where is ip address control? Tag: 76731
ComboBox ReadOnly properities
Hi.
How can I set ReadOnly status with my ComboBox control?
I don't want to let user change current text value in my combobox.
Good day. Thanks. Tag: where is ip address control? Tag: 76726
Windows Forms through IE
I have an ASP/SQL project that we are looking to port to .Net. At this
point, much of the functionality is handled using DHTML and RDS. We have
been looking to change over to something like a DLL that is displayed in IE.
I have seen some writeups that indicate that windows forms can be displayed
in IE, but I can't find anything to confirm this or to tell me how to do it.
Can anyone help me out here?
TIA
Ron L Tag: where is ip address control? Tag: 76725
Detect Form Closing
I have a main form that is open by using: Application.Run(New
fFormCriteria)
And then I have a form that runs invisible that is open by using: Dim
myForm As New fVersionTimer
The fFormCriteria form is the form that the user will close to exit the
program. How do I detect the Form_Closing event on frmVersionTimer? Is it
possible?
Derek Hart Tag: where is ip address control? Tag: 76724
index from object in collection
Hey there,
I'm gonna need a fast reply on this if possible cause I have exams tomorrow.
I'm using an Enumerator to go through a collection, and want to remove the
object I'm searching when it is found. So now i need a way to get the index
of this object in the collection, but I can't figure out how
Here is a part of my code
Private Sub haalBtn_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles haalBtn.Click
Dim licensepl As String
Dim voertuig1 As Voertuig
Dim lezer As IEnumerator
Dim tijd As Date = Now()
Dim kosten As Double
Dim seconds, pos As Integer
licensepl = getnumTB.Text
lezer = autos1.GetEnumerator
While lezer.MoveNext
voertuig1 = lezer.Current
pos = CInt(autos1.Item(lezer.Current))
If voertuig1.Nummerplaat.Equals(licensepl) Then
seconds = DateDiff(DateInterval.Second, tijd, voertuig1.Geplaatst())
kosten = seconds * 2
autos1.Remove(pos)
tel1 = autos1.Count
garage1.Text = CStr(tel1)
End If
End While
Thanks in advance Tag: where is ip address control? Tag: 76722
Display Form
I am new to VC++ and I have an issue. If I create a project and place a
form on it, it compiles and runs, showing the form. However, when I add a
form to some other project, the form does not show even though the host
projects runs.
Here's what I have:
1. I have a project (just for testing) called HelloWorld and it just prints
"Hello, World".
2. I added a form using Project->Add New Item then under the Visual C++
folder I selected the "Windows Form (.NET)" template and give it the name
"Test".
3. From there I #include "Test.cpp" (Test.cpp includes Test.h), built the
project (it compiles successfully) and execute.
4. The program runs and prints "Hello, World" but the form does not show.
What do I do here?
Jazz Tag: where is ip address control? Tag: 76718
Grabing the FormLoad Message from the Message Queue
I have written a Custom Message Filter. And want to trace the Form_Load or
similar Message and write this to console. Can Anybody help me here.
Public Function PreFilterMessage(ByRef m As System.Windows.Forms.Message) As
Boolean Implements System.Windows.Forms.IMessageFilter.PreFilterMessage
If m.Msg <> ??? Then Console.WriteLine("Form Loaded")
End Sub
Its urgent..
- Saurabh Tag: where is ip address control? Tag: 76709
AppUpdater not working with webservice
We're having some problems with the AppUpdater control. We're trying
to call a web service from the OnCheckForUpdate event. The
OnCheckForUpdate event works fine and returns a true/false and the
UpdateUrl/Path to the server media. The problem is that the download
does not occur after the OnCheckForUpdate successfully fires. We've
got the AutoFileLoad=True, ChangeDetectionMode=DirectFileCheck,
ValidateAssemblies=False, AutoStart=True, and
DownloadOnDetection=True. I've also got the webservice folder(s)
marked for directory browsing. I've included a snippet from the
AppUpdater.log and AppUpdater.xml files. Please let me know if you
know of something I'm missing or how I might be able to get additional
support (even pay support).
Thanks,
Aaron
--------------------------------------
8/31/2004 7:43:31 PM: UPDATE FAILED with the following error message:
System.IO.IOException: Cannot create a file when that file already
exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.File.Move(String sourceFileName, String destFileName)
at Microsoft.Samples.AppUpdater.WebFileLoader.CopyStreamToDisk(Stream
responseStream, String filePath)
at Microsoft.Samples.AppUpdater.WebFileLoader.UpdateFile(String
url, String filePath)
at Microsoft.Samples.AppUpdater.ServerManifest.Load(String url)
at Microsoft.Samples.AppUpdater.AppDownloader.RunThread()
-------------------------------------
_UpdateFailureEncoutered>false</_UpdateFailureEncoutered>
<_UpdateFailureCount>0</_UpdateFailureCount>
<_DownloadSource id="ref-8">http://venue.mjmsports.com/MJMBrowserUpdate/Latest.xml</_DownloadSource>
<_DownloadDestination id="ref-9">C:\Documents and Settings\Aaron
Radich\My Documents\Visual Studio Projects\MJM Sports\Win32\MJM Web
Browser\MJMBrowser\bin\AppUpdate\</_DownloadDestination>
<_NewVersionDirectory href="#ref-7"/>
</a1:UpdateState>
<a2:SortedList id="ref-6"
xmlns:a2="http://schemas.microsoft.com/clr/ns/System.Collections">
<keys href="#ref-10"/>
<values href="#ref-11"/>
<_size>5</_size>
<version>5</version>
<comparer href="#ref-12"/>
<keyList xsi:null="1"/>
<valueList xsi:null="1"/>
</a2:SortedList>
<SOAP-ENC:Array id="ref-10" SOAP-ENC:arrayType="xsd:anyType[16]">
<item id="ref-13" xsi:type="SOAP-ENC:string">appupdater.dll</item>
<item id="ref-14" xsi:type="SOAP-ENC:string">axinterop.shdocvw.dll</item>
<item id="ref-15" xsi:type="SOAP-ENC:string">devcomponents.dotnetbar.dll</item>
<item id="ref-16" xsi:type="SOAP-ENC:string">interop.shdocvw.dll</item>
<item id="ref-17" xsi:type="SOAP-ENC:string">MJMBrowser.exe</item>
</SOAP-ENC:Array>
<SOAP-ENC:Array id="ref-11" SOAP-ENC:arrayType="xsd:anyType[16]">
<item href="#ref-18"/>
<item href="#ref-19"/>
<item href="#ref-20"/>
<item href="#ref-21"/>
<item href="#ref-22"/>
</SOAP-ENC:Array>
<a2:Comparer id="ref-12"
xmlns:a2="http://schemas.microsoft.com/clr/ns/System.Collections">
<m_compareInfo xsi:null="1"/>
</a2:Comparer>
<a1:Resource id="ref-18"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Microsoft.Samples.AppUpdater/AppUpdater%2C%20Version%3D1.0.0.38958%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_Name href="#ref-13"/>
<_Url xsi:null="1"/>
<_FilePath id="ref-23">c:\documents and settings\aaron radich\my
documents\visual studio projects\mjm sports\win32\mjm web
browser\mjmbrowser\bin\debug\appupdater.dll</_FilePath>
<_IsFolder>false</_IsFolder>
<_LastModified>0001-01-01T00:00:00.0000000-08:00</_LastModified>
<_AddedAtRuntime>true</_AddedAtRuntime>
</a1:Resource>
<a1:Resource id="ref-19"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Microsoft.Samples.AppUpdater/AppUpdater%2C%20Version%3D1.0.0.38958%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_Name href="#ref-14"/>
<_Url xsi:null="1"/>
<_FilePath id="ref-24">c:\documents and settings\aaron radich\my
documents\visual studio projects\mjm sports\win32\mjm web
browser\mjmbrowser\bin\debug\axinterop.shdocvw.dll</_FilePath>
<_IsFolder>false</_IsFolder>
<_LastModified>0001-01-01T00:00:00.0000000-08:00</_LastModified>
<_AddedAtRuntime>true</_AddedAtRuntime>
</a1:Resource>
<a1:Resource id="ref-20"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Microsoft.Samples.AppUpdater/AppUpdater%2C%20Version%3D1.0.0.38958%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_Name href="#ref-15"/>
<_Url xsi:null="1"/>
<_FilePath id="ref-25">c:\documents and settings\aaron radich\my
documents\visual studio projects\mjm sports\win32\mjm web
browser\mjmbrowser\bin\debug\devcomponents.dotnetbar.dll</_FilePath>
<_IsFolder>false</_IsFolder>
<_LastModified>0001-01-01T00:00:00.0000000-08:00</_LastModified>
<_AddedAtRuntime>true</_AddedAtRuntime>
</a1:Resource>
<a1:Resource id="ref-21"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Microsoft.Samples.AppUpdater/AppUpdater%2C%20Version%3D1.0.0.38958%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_Name href="#ref-16"/> Tag: where is ip address control? Tag: 76705
Heavy Net Framework 1.1
Hi.
Why every application written in WinForms based on NetFramework, starts so
slow and get round 7 MB free memory? - even most basic form ?
Good Day. Tag: where is ip address control? Tag: 76704
DatagridColumnStyles, mouse events
hi,
I have class inherited from DataGridColumnStyles. Override it's paint event
to draw an image. I want to track the mouse position when cursor moves
inside the image area. But the DataGridColumnStyles does not listen to mouse
events.
Is it possible to add mouse events to DatagridColumnStyles?
Thanks. Tag: where is ip address control? Tag: 76702
Work Offline Solution Needed
Hi am about to create a N-Teir Solution Using SQL Server 200 as the
Data Teir, XML Web Services as the Business Layer and Winforms as the
presentation layer.
I will be using Datasets that will peridically update the data back to
the SQL Database.
I wish to implement a Work Offline feature. That works now, untill the
App is closed.
What are best practices for storing data locally. Keep in mind that
this application will rely on web services to get data and stored
proceedures etc.
Is there a solution already for this IE a namespace?
Thanks Daren
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: where is ip address control? Tag: 76689
Find control on inherited form from base class
I have a base class that has a form that inherits from it. On this form is a
control I need to get a handle to. How do I get this handle from the base
class? I don't have a FindControl that i've been able to get intellisense on
like I do in a web form.
thanks for any help! Tag: where is ip address control? Tag: 76687
Adding an 'internal' control to the toolbox.
I frequently define internal UserControl-derived classes in my WinForms
apps:
internal class MyUserControl:UserControl{
...
}
I'll often need to embed these controls in a Form, whose class is
contained in the same assembly as the control. As far as I know, the only
way to do this using the designer is to add the UserControl-derived object
to the toolbox and then drag it from the toolbox to the target form.
To accomplish this, I use the toolbox's Add/Remove Items functionality.
When adding new UserControl(s) to the toolbox, the user is asked to choose
an assembly containing the UserControl. I browse for and choose the assembly
that I'm currently working on, call it /debug/MyAssembly.dll. The problem is
that the toolbox is only prepared to accept UserControl items that are
declared as "public," not those declared as "internal." For a variety of
reasons, I'd much prefer to have UserControls declared as internal if I'm
not exposing them to the outside world.
The only workaround is to temporarily change the scope of the
UserControl to public, recompile, Add the item to the toolbox, change the
modifier back to internal, and recompile again. I then have access to the
control from my toolbox. This clearly an ugly workaround. Do you know of an
easier way to add internal controls to the toolbox?
Thanks... Tag: where is ip address control? Tag: 76685
Printing Graphics.PageBounds not accurate
Hi,
I'm writing a check printing program that needs to put a MICR line 6/16" from the bottom of the page. Since the checks will be
printed on a laser printer using letter sized paper the printable area is not actually 8 1/2" x 11". I'm using an HP LaserJet 4000
and it cannot print all the way to the physical page boundaries. It has the following limitations:
Top Margin = 0.18"
Left Margin = 0.25"
Right Margin = 0.25"
Bottom Margin = 0.28"
The problem I'm having is the the graphics object being passed with PrintPageEventArgs is reporting its PageBounds property as the
full physical page size (850, 1100) instead of (804, 1050). The other properties are as follows:
Top = 0
Left = 0
Right = 850
Bottom = 1100
Width = 1100
Height = 950
I would have thought the PageBounds would be as follows:
Top = 18
Left = 25
Right = 1075
Bottom = 822
Width = 1050
Height = 804
It appears the drawing methods in the graphics are scaling the e.Graphics.PageBounds to fit within the physical page bounds which
makes it difficult to position gdi objects at exact physical locations on the printed page. In other words I can draw anywhere
within the e.Graphics.PageBounds and the results are visible on the printed page.
Is this a known bug in the .net printing or is it possibly a problem with my printer driver? Microsoft word does not have a problem
determing what the physical bounds of the printed page are.
Is there some other way to get the physical page bounds so that I can rescale the drawing points and rectangles?
Thanks for your help,
Gregg Walker Tag: where is ip address control? Tag: 76682
Tab Control ComboBox
Here's one!
I have a Tab Control that consists of 4 Tab Pages. These pages will be
removed and added as needed as the user checks and unchecks certain
checkboxes.
On the Form_Load event, I am calling routines that populate the various
ComboBoxes List's that are contained by these Tab Pages. When these Combo
Boxes are populated, I initialize the text property with a 'String.Empty'.
At this point, the Tab Pages have not been added to the Tab Control.
Now, when the user adds a Tab Page to the Tab Control, such as :
tabStaff.TabPages.Add(tbSystemUser)
the text property is automatically being set the the first item in the list.
This is what I DON'T want to happen.
My Qutestions are: Why or How are these properties being set and How can I
prevent it?
Any ideas would be greatly appreciated,
Jeff Tag: where is ip address control? Tag: 76680
Incorrect SQL conversion into String::Format statement.
Hi
A problem is - how can I make that statement correct? - I would like to
SELECT somenthink like that:
String *SQLstatement = String::Format(S" SELECT * FROM Table WHERE Date =
{0}", DateTimePicker1->Value->ToShortDateString() );
There is a String statement (*SQLstatement) so I concatenate DateTimePicker1
value as string value too. But I've got an "incorrect data type error". Is
there any
solution to make this cnvertion clear - maybe using any SQL finction inside
string?.
[Access file - "Date" column type: DateTime, oleDbDataAdapter]
Good day, thanks for wrote. Tag: where is ip address control? Tag: 76679
DataGrid question
I use the datagrid to display the results after a db search.
But i like only entire rows (not cells) to be selected, and when somebody
doubleclicks somewere on a row to have a doubleclick event for that row. Tag: where is ip address control? Tag: 76678
WebClient Timeout
I have an app that is working well. It uses the weblclient class uploaddata
method. Recently the server overhead increased causing communication
timeouts to occur. How can I increase the client recv timeout value to get
around this problem. Thanks for your help on this.
Best Regards,
Paul J. Lay Tag: where is ip address control? Tag: 76677
Web Browser Control
Hi all, i have used this group to answer a problem i had with loading
the web browser with html at form load in a windows form app. And now
i have an issue/question.
In I.E and other browsers there is the ability to increase the text
size of the page you are viewing. Is it possible to get this
functionality into a windows form with the web browser in place?
ideally i would like to have a button that increases the size and one
to decrease it.
Any ideas would be great.
Regards
Dave Tag: where is ip address control? Tag: 76674
richtext box and SES_EMULATESYSEDIT style
Hello,
I am trying to use EM_SETEDITSTYLE property on the rich text box by doing
following sendmessage
WindowsAPI.SendMessage(customControl11.Handle,1228/*EM_SETEDITSTYle*/, 1,1);
From richedit.h I find that style SES_EMULATESYSEDIT is represented by 1.
But this call returns 0 indicating that new style is not been updated.
I am curios how does rich text behaves when configured to emulate the normal
edit control.
basically I am trying to use rich control because it has the ability to
change the line spacings. All rest of the functionality of the rich text
box, I want to be same as the normal edit control.
Any clues / pointers on the same.
Thanks and Regard
sk Tag: where is ip address control? Tag: 76668
Form pops up when dataset changes
Hello,
I have a C/S application with several forms that are open at the=
same time=2E One of the forms contains an SqlDataAdapter, a=
dataset and a timer that updates the dataset (executes=
"MySqlDataAdapter=2EFill(Me=2EMyDataset)") every 3 minutes=2E
The problem: If the contents of the dataset has been changed=
since last update (records added to or deleted from the query=
result), then the form pops up and covers all the other forms of=
the application, even if it was behind them=2E How can I prevent=
it from doing that?
TIA
-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
<Id>Na2ZrVo0p0S3BPPlwLakTQ=3D=3D</Id> Tag: where is ip address control? Tag: 76667
scrollbar problem..
Dear all,
I'm writting a .net winForm application with C#, but I'm getting the
following exception when the user scrolls a scrollbar. The strange thing is
that the exception happens only some of the time, and seems pretty random.
However, once an exception occurs with a scrollbar and when I choose
'continue', that particular scrollbar will raise the exception everytime I
click on it from that point on.
Anyone encounter the same problem before? Any solution to this problem?
At the very least I wanna know how I could catch that exception..
Thanks~!
Paul
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam) Tag: where is ip address control? Tag: 76665
Use a "Satelite info form"
Hello,
I've the following problem:
From within my main form I want to lanuch another form for displaying some
information.
Launching this information form form the main form's load event results in a
info form which is blocked (means can't be used because seems to be in the
background)
I got the same result when using the VisibleChanged or the Activated (first
call only) event (I my opinion events fired when the form is "really")
But now launching this information form from within a buttons click event or
a timers tick event results full working form beside the main form.
My questions are: What is the difference and how can I launch a working info
form within the main form's load event?
Thx
Thorsten Tag: where is ip address control? Tag: 76661
Can you intercept click event?
Hello,
I am trying to control tooltips in my winform. I want to only turn them on
when the user chooses a menu item called WhatThe. When they do I change the
form's cursor to Cursors.Help and activate the tooltip. The problem is I
don't want the user to actually be able to interact with the form while in
this state. If they click the mouse I want to intercept that event and set
the form's cursor back to the default and deactivate the tooltip.
Is there a way I can intercept all click and double click events on the
winform? And if the cursor is currently set to Help cancel the event
otherwise forward it on to what ever they were clicking on? I would also
want to treat the keyboard the same way (if in help mode any keyboard event
would take it out of help mode).
thanks,
Scott Tag: where is ip address control? Tag: 76654
some forms are truncated on specific machine
Hi all,
I have a WinForms application which works well on several machine, but
shows truncated forms on a specific machine
such machine has the same configuration as the others: Win2000 Pro SP3
and .NET Framework 1.1
Anyone has a hint?
I have found only one message on this newsgroup on the topic, but it
had no replies
Thank you in advance!
-Gianluca Tag: where is ip address control? Tag: 76650
in vs.net 2003, a vc.net project, i want to add a ip address control on my
form,but i can't find it.where is it?