|
i tried it in vb.NET and its work fine my code is:
If TextBox1.Text.Trim = TextBox2.Text.Trim Then
MessageBox.Show("Yep")
Else
MessageBox.Show("Nep")
End If
i dunt know where is the error
|
|
|
|
|
Application Type: Windows Application (.Net 2005)
Development Language: C# .Net
Back End: MySQL
I have a requirement to select multiple rows in DatagridView as I select check boxes in the particular row and do bulk operations on the selected rows.
(The same case as in Shopping Cart grid having item detail columns as well as check box column to remove multiple items at a time in web application). But I can not achieve the same functionality in windows. Can you please help me how to do this?
Regards,
Tarang Pandya.
Software Engineer.
|
|
|
|
|
All,
I am looking to buy a component suite, mainly to get a good data grid. Performance is a must.
It looks like Infragistics and DevExpress are the most popular ones. Any opinions on which one to choose?
Thanks in advance,
Roel
|
|
|
|
|
My honest opinion...stay away from both, especially if all you need is a data grid control.
The Infragistics controls have an excellent visual look to them and are very customizable using themes, but the programming model is awkward at best and not very well documented. DevExpress controls, on the other hand, are a much better programming model and better documented, but have subtle visual problems.
If all you need is a data grid, check out SandGrid[^] from Divelements. I have used several of the Divelements controls and find that they are very easy to program to, have a very clean look, and are pretty well documented.
[Disclaimer: I'm not affiliated with Divelements in any way.]
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
You should really download the evaluation editions and try them out yourself. This is the only way to find out which one best meets your needs.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I keep reading here and there that Infragistics controls, especially the grid, do not perform well. Anybody has any experience with or comments on that?
Roel
|
|
|
|
|
Perform well in what sense? Most of the data grid controls have performance issues as the size of the underlying data increases. To help these problems, they all have some sort of "virtual" mode where only the data that is being displayed is loaded, and each load pulls in smaller "chunks" of the data.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
You should also look at Syncfusion component suite
|
|
|
|
|
Hi all i wanna update my windows applicarion of C#.Net2.0
since VS2005 give Clickonce i've adopted dat to use this, but i am not with the correct outcome, please help me how to update my application.
i have taken a button<named update=""> and whenever user clicks update it should check for the latest version and should be updated
, whenever i run the below code its asking me to check is ur application is running under click once,
my code,
if (ApplicationDeployment.IsNetworkDeployed)
{
// Hold a reference to the current deployment
ApplicationDeployment currentDeploy = ApplicationDeployment.CurrentDeployment;
// Check to see if an update is available on the server
if (currentDeploy.CheckForUpdate())
{
// One is available, go get it
currentDeploy.Update();
// Make sure you save application state here
DialogResult dr = MessageBox.Show(
"Update downloaded, restart application?",
"Application Update", MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes)
{
Application.Restart();
}
}
}
if (ApplicationDeployment.IsNetworkDeployed)
if i din't use this ApplicationDeployment.IsNetworkDeployed, its giving INVALIDDEPLOYMENTEXCEPTION--Application not installed.
Please help me how to overcome this thing..
Thnx in advance,
prashanth
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
I'm working on a shell replacement for Windows. I only have two big problems left. One is how to create my own system tray implementation. I thought that you could simply create a window of the class "Shell_TrayWnd" and receive icon notifications. I do that, but I never receive the notifications! From the look of other shell replacements, I'm supposed to receive messages in the form of WM_COPYDATA containing notify icon messages (and also appbar messages?). However, I never do! My implementation right now consists of calling RegisterClassEx, then calling CreateWindowEx. RegisterClassEx is given a pointer to the function I'm using as the WndProc. I can receive messages through it, but I never get the system tray ones. Is there something I'm missing?
|
|
|
|
|
hi everybody
can anyone helps me to get how converting a word document to an xml file
regardless
etretyertyery
|
|
|
|
|
Well, Word itself can save the document to XML (WordML). I would guess that this would be your starting point.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hello
the convertion should be done in C# with XML
thanks
etretyertyery
|
|
|
|
|
Yes - but you can use Word via Interop, so you can do this like that.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
can u give me some example with some snapshot
10x.
regards
etretyertyery
|
|
|
|
|
Hi All,
I have a windows application that was developed in .NET 1.1 Framework.
Recently I migrated the same application into .NET 2.0 Framework to find a number of cross thread operation exceptions being thrown.
After some research, I found that Anonymous methods and delegates could solve the issue. Hence, I implemented the same and the application was working fine except a case when the call to the delegate using 'Invoke' causes the application to hang.
Use of 'BeginInvoke' instead of 'Invoke' also didnt help me.
Anyone faced a similar situation and found a solution? Plz help.
Thanks in advance,
Murali
|
|
|
|
|
Hi
This is to print a form which contains a tab control.For this you have to instal Microsoft.Visual Basic.PowerPacks.Printing.dll.Then add one command button and a tab control to your form.Then add some other controls to your tabpages.Drag PrintDocument1 control from the tool box to your form.After that paste the code in the code behind.Press F5 to run it.Click on the button1 to print the pages.
Option Strict Off
Imports System.Drawing
Imports System.Drawing.Printing
Imports System.Runtime.InteropServices
Public Class Form1
Dim TabId As Integer
Dim i As Integer
Dim img As Bitmap
Dim WithEvents pd As PrintDocument
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.TabControl1.SelectTab(0)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
TabId = Me.TabControl1.TabCount
For i = 0 To TabId - 1
Me.TabControl1.TabIndex = i
Me.TabControl1.SelectTab(i)
'MsgBox(i)
Me.Refresh()
img = CaptureForm1()
pd = New PrintDocument
pd.Print()
Next
Catch ex As Exception
MsgBox(ex)
End Try
End Sub
Function CaptureForm1() As Bitmap
Dim g1 As Graphics = Me.CreateGraphics()
Dim MyImage = New Bitmap(Me.ClientRectangle.Width, (Me.ClientRectangle.Height), g1)
Dim g2 As Graphics = Graphics.FromImage(MyImage)
Dim dc1 As IntPtr = g1.GetHdc()
Dim dc2 As IntPtr = g2.GetHdc()
BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, (Me.ClientRectangle.Height), dc1, 0, 0, 13369376)
g1.ReleaseHdc(dc1)
g2.ReleaseHdc(dc2)
'saves image to c drive just, u can comment it also
MyImage.Save("c:\abc.bmp")
Return MyImage
End Function
Sub pd_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) Handles pd.PrintPage
Dim x As Integer = e.MarginBounds.X
Dim y As Integer = e.MarginBounds.Y
e.Graphics.DrawImage(img, x, y)
e.HasMorePages = False
End Sub
<dllimport("gdi32.dll", entrypoint:="BitBlt" ,="" _
setlasterror:="True," charset:="CharSet.Unicode," _
exactspelling:="True," _
callingconvention:="CallingConvention.StdCall)"> _
Private Shared Function BitBlt(ByVal hdcDest As IntPtr, ByVal nXDest As Integer, ByVal nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer, ByVal dwRop As System.Int32) As Boolean
' Leave function empty - DLLImport attribute forwards calls to MoveFile to
' MoveFileW in KERNEL32.DLL.
End Function
Hope this may b helpful for you sometimes.
Thanks
Vinidimple
dimp
|
|
|
|
|
hi,
how to use a flash file in windows application?"
i want to insert a clock in my application which will show the system timing.
plz help
p.sethi
|
|
|
|
|
I've never heard of embedding flash files directly, however, you can add a web browser control and navigate it to an html file with the embedded flash file.
|
|
|
|
|
Search google for an application that will convert flash files to XAML. You can then use WPF of .NET 3.0 if you have it to use the new XAML file.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Until recently I have been keeping Data layer objects and task logic as seperate from the UI logic as possible. I have been experimenting with custom user controls and attempting to integrate the custom datalayers with the designer by modifying the InitializeComponent method. I have been successful in integrating my data layer data into the designer, however, it doesn't like to stay. Are there any easy workarounds to this such as a way to tell the designer not to modify a peace of code in the InitializeComponent method?
|
|
|
|
|
SlingBlade wrote: Are there any easy workarounds to this such as a way to tell the designer not to modify a peace of code in the InitializeComponent method?
InitializeComponent is the designers method. You cannot change it because the designer will overwrite your changes. In VS2005 it has been moved out to a separate file which you should not be editing either.
SlingBlade wrote: I have been successful in integrating my data layer data into the designer
The data layer should be no where near the designer. What ever it is that you have done, it isn't separate the data layer from the presentation layer. The data layer and presentation layer should not meet at all. There should be a business layer in between.
|
|
|
|
|
I'm going to agree to disagree here. I'm pretty sure it is a lost cause trying to get support for something that is clearly defined as unsupported. Data, business and presentation is how I have always done it, but like I mentioned I am getting into developing custom controls that make the presentation layer much simpler and well defined to what need be accomplished, that and Microsoft offers the ability to define your entire data layer within the presentation layer. The data layer is still seperated with a business layer. I am really looking for a way to bring the schema into the designer so my custom controls can be assigned to the proper datatables that are returned in a data layer method without manually creating the schema for every table within the local Dataset for the control.
|
|
|
|
|
SlingBlade wrote: I'm going to agree to disagree here. I'm pretty sure it is a lost cause trying to get support for something that is clearly defined as unsupported.
I'm not entirely sure what you are disagreeing with. I'm suggesting that you cannot change the code in the InitializeComponent method because it is unsupported as Visual Studio will overwrite any changes you make. Then you say you disagree with me because it is a "lost cause trying to get support for something that is clearly defined as unsupported".
SlingBlade wrote: that and Microsoft offers the ability to define your entire data layer within the presentation layer.
Just because you can do something, doesn't mean you should do something. I can walk up a set of railway tracks. However, doing so is clearly inadvised.
|
|
|
|
|
I was refering to Microsoft not providing a way to manually interact with the designer. People come up with new design patterns all the time and I particularly considered what I was trying to accomplish as an innovative compromise to keeping the data layer seperate from the presentation layer but still be able to define how the presentation layer interacts with the data layer more clearly. Sorry for the run on sentence.
What I'm trying to get at here is that I am using VS Express and am not currently at liberty to make feature requests directly. Sure modifying InitializeComponent is a bit dangerous, but, it's my machine I'm crashing and it sounds like Microsoft is just being lazy with it's almost limitless supply of resources to not provide a workaround. Since when has Microsoft been about following all standards exactly?
|
|
|
|