Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~9K People Reached
Favorite Tags
Member Avatar for Dimansu

I have a Login user control in a Login form. I want to set the default Enter press to a button called LoginButton in my user control.How can I do it in C# using Visual studio ?

Member Avatar for Eduardo_2
0
195
Member Avatar for Dimansu

Hi I am using RDLC in .Net framework for my reports. I have a field StartDate and it can be null in the database.I want to show the date as 02/12/2010 . My code is, =Format (Fields!StartDate.Value,"dd/MM/yyyy") But in the report it shows "dd/MM/yyyy". When there is no formatting i.e …

Member Avatar for Wai Zin Hnin
0
195
Member Avatar for Dimansu

Hi, I want to get a count of each english letter in a text file.The lower case and upper case letter should be taken as 1 letter(i.e A and a should be counted as 1 letter).This is my code but it takes capital A ans simple a as 2 letters. …

Member Avatar for ddanbe
0
241
Member Avatar for Dimansu

Hi, I am using RDLC in my reports.Can someone tell me the syntax for IF THEN ELSE statement in RDLC? I want to write else if loop in my expression. Thnx in Advance

Member Avatar for chan_lemo
0
3K
Member Avatar for Dimansu

hi, I have a textbox where i dont want numbers to be typed.I have a code for it but when the user types only letters and goes to a new line and saves it wont allow to save.How can i fix this? Match matchFullNameRegex = Regex.Match(fullNameTextBox.Text, "^[a-zA-Z ]*$"); if (!matchFullNameRegex.Success) …

Member Avatar for ddanbe
0
71
Member Avatar for Dimansu

I use a custom code in my report.But when it is compiled I get the error message "There is an error in line0 of custom code[BC0203]identifier expected".Below is the my code.Only the 1st part of the code is there.Thnx in advance. [CODE] Public Function check(TrainingMainCategory as string, PreferenceType as string, …

0
56
Member Avatar for Dimansu

Hi, I want to left outer join 2 tables called a and b.In the Where clause I want to check properties from both tables i.e like this [CODE] var query = from a in data.A join b in data.B on a.id == b.id where a.marks = 1 && b.archived == …

Member Avatar for davidsimmonds
0
729
Member Avatar for Dimansu

Hi, I am using RDLC in .Net framework for my reports.I have a field called marks in the Student report and I calculate marks in the report code.There is no field called marks in the database.I want to sort the students according to marks(decsending) and show in the report.Does anyone …

Member Avatar for Dimansu
0
50
Member Avatar for Dimansu

hi, In my Dataset I have 3 columns "EducationLevel","Skill" and "PreferenceType".In the report I have a field called marks.I give marks adding above 3 column values.i.e If "EducationLevel" is (High,15 marks),(Medium,10marks),(Low,5 marks). If "PreferenceType" is ("First" 15 marks),("Second" 10 marks),("Third"5 marks) If "Skill" is (High,15 marks),(Medium,10marks),(Low,5 marks). The Marks field …

Member Avatar for Dimansu
0
155
Member Avatar for Dimansu

Hi, Can anyone tell me the syntax for switch statement in RDLC to be coded in Expression tab of textbox? Thnx in Advance

Member Avatar for kvprajapati
0
56
Member Avatar for Dimansu

Hi, I am using RDLC for my reports. I have a report to show the profile of a person.This report may get printed in more than 1 page.I want to show the name of the person in every printed page at the top of the page.Currently I have a textbox …

Member Avatar for Excalibur69
0
133
Member Avatar for Dimansu

Hi, I have a textbox named fullnameTextbox. I want the user to only type letters in that textbox.I have a code for it but when there is a spacebar between 2 correctly typed words my error message pops up.How can i fix this? [CODE] Match matchMyRegex = Regex.Match(fullNameTextBox.Text, "^[a-zA-z]*$"); if …

Member Avatar for Geekitygeek
0
105
Member Avatar for Dimansu

Hi I have a user control which has 1 textbox and a Save button.If a user type some text in the textbox and forgets to save and moves to another tab,I want to show a dialog result.If the user selects yes then the user will move to another tab.But if …

Member Avatar for Geekitygeek
0
118
Member Avatar for Dimansu

Hi, In my DialogResult form which pops out when the user want to delete something ,the close button is shown disabled(cant click on it).How can i enable it? thnx in advance

Member Avatar for Renukavani
0
81
Member Avatar for Dimansu

Hi I want the user to only type letters (a-z simple or capital) in the Name textbox.If the user types any other character(like numbers or commas,semicolons) I want to show a message.How can I check for it(in C#)? Thnx in Advance

Member Avatar for Dimansu
0
83
Member Avatar for Dimansu

Hi, I have an IIF function in my textbox expression.This is my code. IIF(IsNothing(Fields!Duration.Value) , "Not released ",Int((Fields!Duration.Value/12)).ToString()+ "Y " +(Int(Fields!Duration.Value) Mod 12).ToString() + "M") But when Duration is null the true expression doesnt work instead it displays "#error".Can anyone help me to fix this? Thanx in Advance

Member Avatar for kvprajapati
0
149
Member Avatar for Dimansu

I am creating reports using RDLC.In my table I have 2 column scalled "NAME". and Address.I want to add a column to my table which shows the index of the record(i.e to show the no of records).How can I do it? Thanks in advance

Member Avatar for kvprajapati
0
50
Member Avatar for Dimansu

I have a database which is in another machine of my office network. How can i access that database from my program running on my machine(which is also in that network).

Member Avatar for sknake
0
85
Member Avatar for Dimansu

Hi In my crystal report the page is not displayed from the top of the page instead it is displayed from further down from top of the page leaving empty space on top.How can i display the report from the top? thanx in Advance

Member Avatar for DdoubleD
0
44
Member Avatar for Dimansu

I have a crystal report with 10 columns and the width of crystal report oage is not enough to display all 10 columns.Is there any way that I can display all the columns? Thanx in Advance

Member Avatar for kvprajapati
0
43
Member Avatar for Dimansu

Hi I have a column named Payment Type in my database which is of type number.In my crystal report I want to show if the Payment type is 0 "Cash" or if it is 1 "Cheque".How can I do it? thanx in Advance

0
59
Member Avatar for Dimansu

Hi I have a column name date in my listview.Currently its been sorted by date,month,year but I want this column to be sorted by year ,month,date.How can I do it?

Member Avatar for sknake
0
3K
Member Avatar for Dimansu

Hi In my windows application i have a combobox() and textbox().I want to show a messagebox if cmb1 is 0 and txtbx1 or txtbx2 is empty.The below code doesnt work.It shows the Messagebox even when cmb1== 0 and txt1 is empty if ((cmb1.Text != "0" &&( txtbx1.Text ==""|| txtbx2.Text =="" …

Member Avatar for darkocean
0
84
Member Avatar for Dimansu

Hi I want to show a crystal report in my windows application.In my Access DataBase I have a column called Payment type and its type is number.(ie data in that column is stored as 0 or 1).If payment type is 0 I want to show it as a string called …

Member Avatar for kvprajapati
0
100
Member Avatar for si01

Hey I am trying to build this application, but I am having trouble as error messages keep appearing. Using Visual Studio 2008... [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Opc; using OpcCom; using Opc.Da; using Opc.Hda; namespace ConsoleApplication3 { class Program { public static void …

Member Avatar for si01
1
150
Member Avatar for Dimansu

Hi In my listview I have a column called grantotal which is of type double.Now it is displayed as 12300 but I want to display it as 12,300. How can I do it? Thanx in Advance

Member Avatar for sknake
0
94
Member Avatar for Voulnet

Hello there fellow members. I have two windows forms, and they call each other. - Form 1 has a button that calls Form 2. - Form 2 does not have an exit button, but rather a button that goes back to Form 1. - Form 1 is the main form …

Member Avatar for Voulnet
0
115
Member Avatar for love_dude1984

hello.. my problem is, im using the following code to insert the records..but whenevr i click on ok button it shows the error "Object reference not set to an instance of an object" im declaring the variables in the following form, [code] private OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= ..\\abc.mdb"); …

Member Avatar for Dimansu
0
119