Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
83% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
0 Endorsements
Ranked #630
~26.2K People Reached
About Me

Software Developer

Interests
Travelling, Photography
Favorite Tags

50 Posted Topics

Member Avatar for metalla_nz

Well in any database driven application, i think any changes to the database will cause a lot of trouble in the working of the application. Esp if you are playing around with columns of tables. While adding/removing columns, you will have to make appropriate changes in the queries/stored procedures as …

Member Avatar for Garr
0
315
Member Avatar for jatin24

Hi, Im trying to include the feature of automatically generating a word document through C# using a pre-defined template. Im able to insert 'mailmerge' fields in the word template documents at specific locations, and accessing these through the code in C#. I can update the values of these fields, no …

Member Avatar for vnikitha
1
3K
Member Avatar for jatin24

I'm facing this strange problem while working with DataGridView. In my application that i'm building, there is a form with some tabs, and im using the dataGridView Controls in some of the tabs. These dataGridView controls have already been configured, with a number of columns already added, and has been …

Member Avatar for sebbu
0
2K
Member Avatar for itslucky

Try this: [CODE] crystalReportViewer1.LogOnInfo[0].ConnectionInfo.IntegratedSecurity = true; [/CODE] Insert this line after you've set the ReportSource property.

Member Avatar for S.L.KEER
0
2K
Member Avatar for pratikasthana17

Find out more about the gateway you are registered with. I've done something similar using the Clickatell Gateway. Any of the popular gateway would have a 'Developers' section on their website where you can find information about different types of technologies/ways you can use for using their gateway and create …

Member Avatar for szurcsii
0
468
Member Avatar for jatin24

I'm trying to find a way where the database name and the server name can be dynamic. I'm developing an application which uses C# and crystal reports. Both application and the reports use the same database which is setup on a separate database server. This application now needs to be …

Member Avatar for johnsonjeven
0
3K
Member Avatar for penguin22

Try the following: [code] Application objOutlook = new ApplicationClass(); NameSpace objNS = objOutlook.GetNamespace("MAPI"); MailItem objmail = (MailItem)objOutlook.CreateItem(OlItemType.olMailItem); objmail.To = "sample.email@domain.com; objmail.BCC = "bcc@domain.com"; objmail.CC = "cc@domain.com"; objmail.Subject = "Subject of the email goes here"; objmail.Body = "Body of the email goes here..."; [/code] You dont have to use all the …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for jatin24

So i have this SharePoint 2010 Publishing site collection and i can create subsites under it simply by going to Site Actions > Create New Sites. There's a button that says 'More Options' which gives me more options for the new subsite. I get extra options like 'Permissions' and 'Navigation …

0
114
Member Avatar for igalbk
Member Avatar for jatin24

Im trying to customize the Contact Card that appears on the Office Communicator 2007. The default information about the pesron that appears on the Contact Card is not enough and would like to include some more information. I've downloaded the API and also looked into adding custom tabs using an …

0
113
Member Avatar for evanguiton

DELETE from [Staff] However id recommend using stored procedures. Much faster, safer and efficient!

Member Avatar for jatin24
0
586
Member Avatar for MxDev

I had to do something similar about a week ago and did something very similar what Diamonddrake suggested. However this method looses all the formatting of the text that was on the doc file. Is there any way you can preserve that formatting when its copied to the RichTextBox? If …

Member Avatar for avirag
0
3K
Member Avatar for terdie

Hi, Well the database is updated instantly as soon as something is added/modified. I dont think there is any need to refresh it from the application end. However if you are using the 'Server Explorer' from Visual Studio, or SQL Management Tools, then u will need to refresh manually to …

Member Avatar for mangesh_dhole12
0
1K
Member Avatar for Anupama G

Did you mean DataGridView in C# windows based applications or GridView in ASP.NET ?

Member Avatar for Anupama G
0
272
Member Avatar for mackemforever

You cannot edit this application coz the files you have are the binary files and not the source code. You need to get the Source Code first. If you think the source code is in VB or C#, you need to install Visual Studio, Visual Studio Express. I think you …

Member Avatar for Diamonddrake
0
162
Member Avatar for brightstar2016

Start with looking at Socket Programming. [URL="http://www.devarticles.com/c/a/C-Sharp/Network-Programming-in-C-sharp/"]http://www.devarticles.com/c/a/C-Sharp/Network-Programming-in-C-sharp/[/URL] [URL="http://www.csharphelp.com/archives/archive127.html"]http://www.csharphelp.com/archives/archive127.html[/URL] Try out some examples. The 2nd link has some code example. See how you go, if you're stuck then post questions here.

Member Avatar for brightstar2016
0
100
Member Avatar for Mongz

Are you sure that the Username in Login1.Username is a string? convert it to string just to be safe.

Member Avatar for sknake
0
66
Member Avatar for jatin24

Hi, Im trying to transfer some text from the richTextBox into an existing MS word template at a specific location. I am able to transfer text to any location i like, but i want to retain the formatting of the text from the richTextBox. Im trying to copy the text …

Member Avatar for jatin24
0
2K
Member Avatar for designervc
Member Avatar for papanyquiL
Member Avatar for papanyquiL
0
115
Member Avatar for anetbegin

I've done something like that in an application i built sometime ago. firstly, you dont need two seperate tables. Just have one table with the zip code, city, state etc and everything you need. You can create a button next to the text box and on the click event, just …

Member Avatar for anetbegin
0
110
Member Avatar for tiwas

You can probably use something like an ArrayList and keep storing each and every path traversed there. So if you wanna go back, the last path stored will be the last visited and so on. To check if you are at the root, you can check the number of "\" …

Member Avatar for tiwas
0
111
Member Avatar for =OTS=G-Man

Use: [code] description = description.Substring(0, 14); [/code] or.. under the console.WriteLine(), display description.SubString(0,14) instead of just description. :)

Member Avatar for sknake
1
191
Member Avatar for kahaj

[QUOTE=kahaj;988519]I'll post my code after my questions. 1. Near the very end, I have DisplayIntroMessage() called for the event that the user desires another order. Is this all that I need to do to restart the process? [/QUOTE] Yes that should restart the process. [QUOTE=kahaj;988519] 2. If that is all …

Member Avatar for jatin24
0
112
Member Avatar for EvilLinux

simply use the 'Value Changed' event of the DateTimePicker control. [code] if (dateTimePicker1.Value > DateTime.Now.AddYears(5)) MessageBox.Show("Date should be within the next 5 years"); [/code]

Member Avatar for EvilLinux
0
241
Member Avatar for guptaalok12
Member Avatar for jismtu

You will need to use a ConnectionString and SqlCommand. Create a new connection string in the project properties, under Settings. Give it a name, type = string and Value something like this: server=YourServerName;database=DatabaseName; Integrated Security=SSPI; or server=YourServerName;database=DatabaseName; Username=username; Password=password; Once you have the connection string, include it in the class …

Member Avatar for jatin24
0
127
Member Avatar for SAINTJAB

Try this: [code] Microsoft.Office.Interop.Excel.Application exc = new Microsoft.Office.Interop.Excel.Application(); exc.Visible = true; _Workbook workbook; _Worksheet worksheet; Workbooks workbooks = exc.Workbooks; workbook = workbooks.Add(true); Sheets sheets = workbook.Worksheets; worksheet = (_Worksheet)sheets.get_Item(1); // start inserting your values here. Range range1 = worksheet.get_Range("A1", "A1"); string[] array1 = new string[1]; array1[0] = "Some text"; Object[] …

Member Avatar for jatin24
0
387
Member Avatar for pilipino93

Not sure how you could do that using the browsers you have installed (firefox/IE) but an alternative could be to use the 'WebBrowser' control in C#. Just make a form, and drag the WebBrowser control. Set the Dock property to Fill, and u can change the URL of this control …

Member Avatar for pilipino93
0
94
Member Avatar for darkocean

Well if you are opening form2 from form1, then it can be done quite easily. Simply create a public class level variable in form2: public string myStr; In form1, use this to open up form2: form1 f = new form1(); f.myStr = textbox1.text; f.show(); could'nt really understand the 2nd half …

Member Avatar for darkocean
0
121
Member Avatar for Srinivasa007

Use the 'Leave' Event Handler for the second textbox. Write in the code for whatever you want to display, in this event handler.

Member Avatar for DdoubleD
0
100
Member Avatar for Cory_Brown

try this: [code] int n = listBox1.SelectedItems.Count; string[] array = new string[n]; for (int i = 0; i < n; i++) { array[i] = listBox1.SelectedValue.ToString(); } [/code]

Member Avatar for Cory_Brown
0
165
Member Avatar for arunkumars

have a read through this article: [URL="http://msdn.microsoft.com/en-us/library/dfty2w4e(VS.80).aspx"]http://msdn.microsoft.com/en-us/library/dfty2w4e(VS.80).aspx[/URL]

Member Avatar for arunkumars
0
200
Member Avatar for facadie

Just use the following statement: BTNAPPLY.Enabled = true; inside the TextChange Event handler of the text box and the SelectedIndexChanged event of the combo box. for the TextChange Event handler: [code] if (textBox.Text == "your required text") BTNAPPLY.Enabled = true; [/code] for the SelectedIndexChanged Event Handler [code] if (cmbBox.SelectedItem == …

Member Avatar for sknake
0
175
Member Avatar for metalla_nz

It looks like a web service, its asking for an API Key when trying to access that link. Not sure though. Use try...catch, you might be able to find out which exact character is invalid which may lead to a clue.

Member Avatar for sknake
0
968
Member Avatar for terdie

You need to look at 'Setup and Deployment' You will need to create a new project. Under 'Other Project Types' you will need to select 'Setup and Deployment'. Depending upon your requirements you can choose the type of 'Setup and deployment' you would like to use. I guess 'Setup Project' …

Member Avatar for DdoubleD
0
131
Member Avatar for VibhorG

Try this: [code] string formText = this.Text; string input = textBox1.Text; int flag = 0; if (input.Length < formText.Length) { for (int i = 0; i < input.Length; i++) { if (input[i] == formText[i]) flag = 1; else flag = 0; } if (flag == 1) { // The string …

Member Avatar for VibhorG
0
288
Member Avatar for msr

1) Use the control 'ContextMenuStrip'. You can Easily add items to this controls. Once done, use the Right click event of the dataGridView control you have in your application, and display this contextMenuStrip at the current location of the mouse. 2)Use the KeyPress event handler for the textbox and type …

Member Avatar for msr
0
141
Member Avatar for msr

Did'nt quite get your question 100%, but i guess you could use Static variables here. Just create a class called Shared or something. Create a static variable in this class. public static List<Components> comp_list = new List<Components>; Now this variable 'comp_list' can be accessed from anywhere using the following: 'Shared.comp_list' …

Member Avatar for Diamonddrake
0
98
Member Avatar for asafoatse

To fetch all the occurrences, you can use a loop as well. Something like this: [code] ArrayList indx = new ArrayList(); for (int i=0;i<nums.Length;i++) { if (nums[i] == 14) indx.Add(i); } [/code] At the end of the loop, the ArrayList indx will hold all the indexes that hold the number …

Member Avatar for jatin24
0
141
Member Avatar for elidotnet

Use printDocument Control. Add the 'Print Document' and 'Print Dialog' control to the form. Then for the PrintPage event handler of the PrintDcoument control you can use something like this: [code] Font f = new Font("Arial",14,FontStyle.Regular); Brush b = Brushes.Black; for (int i = 0; i < dataGridView1.Rows.Count; i++) for …

Member Avatar for jatin24
0
118
Member Avatar for khemalatha

If you have an Anti-Virus software installed which is always upto date, then you may not receive that message. Another way to disable it would be by opening up Outlook, Goto 'Tools' menu and select 'Trust Center'. Select 'Programatic Access' and select the third option - 'Never warn me about …

Member Avatar for jatin24
0
181
Member Avatar for kahaj

[code] if (input > 5) { do { }while(input >5); } else //do something else [/code] actually instead of this, you can simply use the while loop.. u dont need to nest do while inside if, unless i have not understood your question properly! [code] while(input > 5) { // …

Member Avatar for jatin24
0
50
Member Avatar for msr

Check the code of HelpBox.cs. Im assuming that the name of the partial class inside that file may not be matching with the filename - HelpBox.cs. Maybe the name of the form was changed after it was initially created but the class name was not changed.

Member Avatar for msr
0
164
Member Avatar for phillon

A bit confused. Correct me if im wrong.. You have multiple tables on the page. example: TableA (3 rows 3 cols) TableB (4 rows 3 cols) TableC (3 rows 5 cols). . . etc.. All containing some numbers, and you want to sum up all the numbers in each table …

Member Avatar for jatin24
0
88
Member Avatar for akkkk

You can use static variables. In your MyInputForm class, declare a variable as follows: public static String name; This variable can now be accessed from anywhere/any class within the application using the following: MyInputForm.name; The current value of the variable 'name' can be accessed using this. Hope this helps!

Member Avatar for akkkk
0
101
Member Avatar for tmc01
Member Avatar for akkkk

well first of all, you can return only one variable from any function. So 'return name, ref_no;' is wrong. I dont think you can change the return type of an event handler. An alternative can be to create global variables, and setting the values of those variables when the button …

Member Avatar for sknake
0
122
Member Avatar for Dajer

Post your code here so we can have a look in case there is something wrong with the code..

Member Avatar for jatin24
0
293
Member Avatar for pradeepfusion
Member Avatar for pradeepfusion
0
794

The End.