
smriti
Avatar/Signature-
Posts
56 -
Joined
-
Last visited
smriti's Achievements
Newbie (1/14)
0
Reputation
-
Hi, I need to write a program to check whether a webservice is up or not? The program should take the service as input and determine whether the webservice is up or not? Can you suggest me some ideas. Thanks, smriti
-
I installed VS 2005 set up. When I tried to create a new project. File->New Project asp.net web application is not listing in the window. IIS is working on my machine. what could be the problem?
-
hi, I had Visual studio .net 2003 .net frame work 1.1. web applications used to work properly. But I installed VSS 2005 on my system. After installing Visual Source Safe 2005 I am not able to open web applications. I am recieving the following error. The Web Server reported the following error when attempting to create or open the web project located at the following URL: 'http:\\localhost\WebApplication1'. 'HTTP/1.1 500 Internal Server Error'. can any one help me to solve the problem. Thanks
-
hi, I am using image buttons for saving data. on onclick of image button i need to display confirmation message "Do you want to save data?".This need to be done on client side. on "ok" i am updating the data. I wrote confirm message script.It is working, but validations present in the page are not working. can any one help me to solve this problem. I need both confirmation message and validations to work. Thanks
-
Hi, I need to display ms-access report from my vb.net application. Can any one guide me to do this? I did using the following code but its opening ms-access database. Dim oAccess As Access.ApplicationClass oAccess = New Access.ApplicationClass Dim Report1 As Object = "Table1" Try oAccess = CreateObject("Access.Application") oAccess.Visible = False oAccess.OpenCurrentDatabase("F:\Execute.mdb", True) oAccess.DoCmd.OpenReport(Report1, Access.AcView.acViewNormal, True) oAccess.DoCmd().Quit(Access.AcQuitOption.acQuitSaveNone) System.Runtime.InteropServices.Marshal. _ ReleaseComObject(oAccess) Catch ex As Exception MessageBox.Show(ex.ToString) End Try oAccess = Nothing Is there any alternate way? Thanks
-
Thanks a lot. It did most of my work. but now i don't want to set focus on any column how to do this. Thanks.
-
Dear friends, I want to disable two of my columns of windows forms datagrid. I am already using tablestyles and making the readonly property of both the columns to false. But on clicking the cell with mouse the cell is highlighting. How to prevent this. please helpl me. Thanks
-
How to make column header of grid visible clearly on right align
smriti replied to smriti's topic in Windows Forms
Hey I too did the same. but my grid displays master child relations and when viewing parent rows the column headers will be displayed with the appened "|". what to do now. Thanks. -
Dear friends, I am using table stlyes to display datagrid(windows forms). In that grid i am aligning some columns to right. Problem is that column headers are also aligning to right and last charecter in column header is not visible clearly, its covering under grid line. Is there any way to prevent column header from aligning to right, and only data to align right. or make the header clearly visible. Thanks.
-
Dear Friends, I am using combobox column in datagrid. And I am setting AlternatingBackColor of grid to Blue. But the combobox column is not displaying the AlternatingBackColor. How to do this. The following is the paint text method i used. Private Sub PaintText(ByVal g As Graphics, _ ByVal Bounds As Rectangle, _ ByVal Text As String, _ ByVal AlignToRight As Boolean) Dim BackBrush As Brush BackBrush = New SolidBrush(Me.DataGridTableStyle.BackColor) Dim ForeBrush As Brush = New SolidBrush(Me.DataGridTableStyle.ForeColor) PaintText(g, Bounds, Text, BackBrush, ForeBrush, AlignToRight) End Sub Private Sub PaintText(ByVal g As Graphics, _ ByVal TextBounds As Rectangle, _ ByVal Text As String, _ ByVal BackBrush As Brush, _ ByVal ForeBrush As Brush, _ ByVal AlignToRight As Boolean) Dim Rect As Rectangle = TextBounds Dim RectF As RectangleF = RectF.op_Implicit(Rect) ' Convert to RectangleF Dim Format As StringFormat = New StringFormat If AlignToRight Then Format.FormatFlags = StringFormatFlags.DirectionRightToLeft End If Select Case Me.Alignment Case Is = HorizontalAlignment.Left Format.Alignment = StringAlignment.Near Case Is = HorizontalAlignment.Right Format.Alignment = StringAlignment.Far Case Is = HorizontalAlignment.Center Format.Alignment = StringAlignment.Center End Select Format.FormatFlags = Format.FormatFlags Or StringFormatFlags.NoWrap g.FillRectangle(Brush:=BackBrush, Rect:=Rect) Rect.Offset(0, yMargin) Rect.Height -= yMargin g.DrawString(Text, Me.DataGridTableStyle.DataGrid.Font, ForeBrush, RectF, Format) Format.Dispose() End Sub If BackBrush is given as SolidBrush(Me.DataGridTableStyle.AltrenatingBackColor) then all the cells in the column are displaying in Blue. How to do this. Thanks.
-
Dear friends, In windows forms application. How to disable the columns of datagrid from resizing by using mouse. Is it possible? If so please guide me to do. Thanks
-
Hi all, I have one problem with queries. I am doing a program in vb.net and backend is ms access. My problem is... I have many controls on my form(windows application) In textboxes If I enter data(not mandatory) and click the search button. So depending upon the search criteria data will be displayed. I wrote the foolwing code. Dim ctl As Control Dim sSQL As String Dim sWhereClause As String sWhereClause = " Where " sSQL = "select * from Table1 " For Each ctl In Me.Controls If ctl.GetType.FullName = "System.Windows.Forms.TextBox" And & _ ctl.Text.Trim.CompareTo(String.Empty) <> 0 Then If ctl.Text.GetType.FullName = "System.String" Then If sWhereClause = " Where " Then sWhereClause = sWhereClause & Mid(ctl.Name, 4, ctl.Name.Length) & "='" & ctl.Text & "'" Else sWhereClause = sWhereClause & " and " & Mid(ctl.Name, 4, ctl.Name.Length) & "='" & ctl.Text & "'" '& ctl.Text End If Else If sWhereClause = " Where " Then sWhereClause = sWhereClause & Mid(ctl.Name, 4, ctl.Name.Length) & "=" & ctl.Text Else sWhereClause = sWhereClause & " and " & Mid(ctl.Name, 4, ctl.Name.Length) & "=" & ctl.Text '& ctl.Text End If End If End If Next ctl Dim strSQL As String strSQL = sSQL & sWhereClause When I run this code, it is displaying the exception as "Data type mismatch exception". Because some fields in the database are numeric fields, So for numeric fields it displays the exception. So I tried in another way as For Each ctl In Me.Controls If ctl.GetType.FullName = "System.Windows.Forms.TextBox" And & _ ctl.Text.Trim.CompareTo(String.Empty) <> 0 Then If sWhereClause = " Where " Then sWhereClause = sWhereClause & Mid(ctl.Name, 4, ctl.Name.Length) & "=" & ctl.Text Else sWhereClause = sWhereClause & " and " & Mid(ctl.Name, 4, ctl.Name.Length) & "=" & ctl.Text '& ctl.Text End If End If Next ctl When I execute this, it is also displalying the exception "datatype mismatch exception" for text type fields. How can I solve this problem, Thanks
-
Hi all, I am getting one problem with parameterized queries in Ms access I built one parameterized query in Ms access as follows PARAMETERS Proj Text ( 30 ); SELECT DISTINCT LEFT(PROJ_ID,13), PROJ_NAME FROM Multiplier WHERE PROJ_ID Like [Proj] & "*"; When I run this query it returns the correct result I am giving name this query to Query1 In my frontend application I am calling this as dim dataadapter=new dataadapter("Execute query1 '" & parametervalue & "'",con) dataadapter.fill(ds,"TableName") When I see the count of my dataset it retuns 0 rows. I cann't understand what is going to be wrong If anyone knows the solution to this , please provide me It's very urgent Thanks in advance
-
Dear all, I am using MS Access Database. I am building the queries in Access Database and Executing them using stmt "Execute QueryName". Is there Any way to pass the parameters to Access Queries. That is i want to Execute the query by passing a value to it. Is it possible to do so? If so please mention it. Thanks.