Posts
 
Reputation
Joined
Last Seen
Ranked #114
Strength to Increase Rep
+14
Strength to Decrease Rep
-3
86% Quality Score
Upvotes Received
102
Posts with Upvotes
93
Upvoting Members
51
Downvotes Received
14
Posts with Downvotes
13
Downvoting Members
13
76 Commented Posts
~508.27K People Reached
About Me

Just ask what you need to know...

Interests
Delivering latest technology, blogging, making new friends allover world, etc =)
PC Specs
http://www.caira.uk.com/ProductDetails.aspx?PID=56
Favorite Tags
vb.net x 366
c# x 323
mssql x 266
mysql x 26

1,302 Posted Topics

Member Avatar for Duki
Member Avatar for Bhoot

No, they shouldn't. You should add reference from Project1 to Project2 to be able to write [icode]using namespace MainProject.Project2;[/icode] To add reference, from Project1 solution explorer references->add reference->browse to locate the project2 assembly or projects tab to get all assembles in all solution including project2 assembly.

Member Avatar for V._549
0
11K
Member Avatar for JerryShaw

Sorry Jerry I was out Cairo last 4 days, I didn't read your question else now so binary columns by default in gridview read as image, in your scenario VS tries to convert your binary data (timestamp) to image so it fails so it throws exception!!! try to change the …

Member Avatar for work.caglar
0
1K
Member Avatar for chait_anya
Member Avatar for bharathi_n_r

In UserClass define UserType enumerator and assign it a value (came from database userTable) indicates it as an admin or user

Member Avatar for Shashikantp004
0
1K
Member Avatar for david.1982

hmmm, default scenario is to encrypt username and password in .config file, and just decrypt them while application is running. you'll just decrypt 1 time.

Member Avatar for JOSheaIV
0
556
Member Avatar for Exaktor

First create delete button in the grid [CODE=C#] //I prefer to use the wizard to generate the delete button private System.Windows.Forms.DataGridViewButtonColumn Column1; this.Column1.HeaderText = "delete"; this.Column1.Name = "Column1"; this.Column1.Text = "delete"; this.Column1.UseColumnTextForButtonValue = true; [/CODE] [CODE=C#] private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.ColumnIndex == 4)// created column index …

Member Avatar for ChrisHunter
0
4K
Member Avatar for itslucky

From the solution which you develop your application, right click then add new project->Other project types->Setup and deployment->setup wizard. This will create for you ClickOnce installation project which let you setup your application on any client machine. Once you accept the default settings, you'll be able to deliver the .msi …

Member Avatar for Daemon_CC
0
1K
Member Avatar for sanchaki
Member Avatar for bansgaon
0
81
Member Avatar for frankvalentin

I added some modifications to Scott code [code=c#] using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; namespace daniweb { public partial class frmFile : Form { public frmFile() { InitializeComponent(); } public static void AppendText(string FileName, string Buffer) { //I'm using another method here in case you want to log …

Member Avatar for ddanbe
0
3K
Member Avatar for Doctor Inferno
Member Avatar for mpatram

You can do it by using 2 methods first TabControl.SelectedTab = TabPage or TabControl.SelectedIndex = theNumberOfTabSelected

Member Avatar for ajinkya1234
-2
4K
Member Avatar for Ramy Mahrous

Here's I wrote some code to insert\retrieve images from SQL Server database 1- Create table to hold Image ID, Name and itself [CODE=SQL] USE [ImagesDatabase] GO /****** Object: Table [dbo].[Image] Script Date: 07/10/2009 23:46:46 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Image]( …

Member Avatar for Roberto_3
0
10K
Member Avatar for abhay_pundir

Like to pass a value from one form to another [code=c#] public void TakeThis(int[][] array) { // } [/code] [code=c#] int[][] arrayOfIntegers = new int[1][2]; Form2 form2 = new Form2(); form2.TakeThis(arrayOfIntegers); [/code]

Member Avatar for ss125
0
350
Member Avatar for Ravenous Wolf

to open a file that's beside your application [code] Application.StartupPath returns the path where your application starts from [/code] Example to open text file called 1.txt which is beside your .exe [code] System.Diagnostics.Process.Start(Application.StartupPath + "\\1.txt"); [/code]

Member Avatar for JOSheaIV
0
6K
Member Avatar for vishalonne

One of prerequisite to have SQLExpress installed, then you can attach your database automatically using SMO, if you need any help regarding SMO don't hesitate to reply. Serkan, I didn't became Feature Code yet, I'll add two code snippets today, then sleep then dream that HappyGeek sent me PM congratulates …

Member Avatar for Jackson Kumar
0
243
Member Avatar for geetajlo

overload ShowDialog method make it returns true or false in case of true show second (main) form your question is long but I'll tell you how to call a form from another one this example calls form 2 from form number 1 [code] dim form2 as Form2() form2.ShowDialog() [/code]

Member Avatar for Reverend Jim
1
109
Member Avatar for S2009
Member Avatar for emilio

In form load event handler [icode]tabControl1.SelectedTab = tabControl1.TabPages[1];[/icode] it's zero based.

Member Avatar for northtrench
0
118
Member Avatar for btech_Saurabh

Just read your XML file as normal file, [code]string xmlData = File.ReadAllText("path.xml");[/code] then write this data to your binary file [code]FileStream fs = new FileStream("path.txt", FileMode.OpenOrCreate); BinaryWriter sw = new BinaryWriter(fs); sw.Write(s); sw.Close(); [/code]

Member Avatar for Diwakar Kumar
0
5K
Member Avatar for CaptainNick
Member Avatar for shoebodh

[code] Dim str As string str = "Ramy1" str = str.Remove(str.Length - 1); ' str = Ramy [/code]

Member Avatar for Reverend Jim
0
31K
Member Avatar for kanjali

You mean MDI? or just you need to open Form2 from Form1 and use some values in Form1 user entered in Form2?? For second case, just create another Form let say it called Form2, some public members (TextBox, ListBox, etc...) Add this code in Form1 to open Form2 [code=c#] Form2 …

Member Avatar for pavithra R
0
2K
Member Avatar for plsoft

modifiy your code to this [code] Console.Write("Enter values for the matrix: "); int[,] matrx = new int[3, 3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { matrx[i, j] = int.Parse(Console.ReadLine()); } } [/code]

Member Avatar for Ishwarya...
0
157
Member Avatar for serkan sendur

Sometimes, but you must answer\put work around in a blog to make it easier for whom they come after.

Member Avatar for irwanhassan
0
802
Member Avatar for chrisdent1986
Member Avatar for NguyenThai

[QUOTE]I don't want user open many form2 so I use a private boolean variable. When the button is clicked, it call the function to check the bool variable, if false then show form 1 and set the bool variable to true. And form2 open, and that works to prevent user …

Member Avatar for adetolah
0
158
Member Avatar for zmariow
Member Avatar for vashini13
Member Avatar for complete
Member Avatar for boiokgoy
0
359
Member Avatar for mansi sharma
Member Avatar for aminit
Member Avatar for PoovenM

Hello PoovenM again :) From project properties, change [B]Output type [/B]to [B]Class Library[/B]

Member Avatar for gregs88
0
334
Member Avatar for Exelio

look you can make gridview cell to be a control, i.e PictureBox and then assign to this control the image path. the scenario is, there is a base class you inherits from. This was from MSDN but I am sorry I don't remember the link :s

Member Avatar for sowmiyar
0
159
Member Avatar for shazzy99

I didn't try your code but have a look on [url]http://msdn.microsoft.com/en-us/library/af6z0wa2(VS.80).aspx[/url] and if it raises an error reply again.

Member Avatar for vineeta.agarwal
0
274
Member Avatar for ddanbe

Yes, Danny, it's Vista problem (Aero, and Vista basic) color scheme, if you turn it into Windows Classic it'd work. Or, remove Vista style [code=C#] [STAThread] static void Main() { //Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } [/code]

Member Avatar for hscoder
0
516
Member Avatar for Egypt Pharaoh

Try first to write your solution in a draft, think how to code it, all of us know how to convert it theoretically, which means you won't pay a lot to think, and to code; it's for your interest to do it yourself, [B]some lines of codes won't help you …

Member Avatar for megabuild7
0
242
Member Avatar for FaridMasood
Member Avatar for manutd4life
Member Avatar for TriceD

Why you use this?? Do you use SMTPClient class? to send un\attached mails

Member Avatar for TriceD
0
494
Member Avatar for emilio
Member Avatar for Dr_H
0
689
Member Avatar for complete

[code] public void YourMethod([b]int[] arrOfInts[/b]) { //your code goes here.. } [/code]

Member Avatar for hscoder
0
175
Member Avatar for serkan sendur
Member Avatar for shashikanth

That's [url]http://msdn.microsoft.com/en-us/vbasic/default.aspx[/url] take you with zero experience in VB.NET to very professional one. [QUOTE]User will we working on client system.[/QUOTE]I don't understand it. If you need a simple project to learn VB.NET through, I suggest to develop multi-user phonebook.

Member Avatar for formulav8
0
265
Member Avatar for ScepterMT
Member Avatar for zmeditation1
0
662
Member Avatar for acxes
Member Avatar for basma.lm

Does this T-SQL script work? inner joins\nestes queries make you get fields from multiple tables, did you try it? Please tell me what you want to get from the tables? I think it AdventureWorks database, isn't it?

Member Avatar for Shrushti
0
169
Member Avatar for eng.nema

eng.nema you can get the idea yourself, we're like you, our minds have not the dozen of GP ideas as you think, we can answer you in design question, programming task, and so on.. try to get some ideas and we can recommend some of them.

Member Avatar for jwenting
0
269
Member Avatar for Eyo

Eyo, so don't create similar thread, of if you need you've to re-post your question\errors\problems...

Member Avatar for GLOBusa
0
1K
Member Avatar for shameemmMbstu

Yes, Sknake it's important issue if your client uses Windows XP or not. Adatapost you show a lot of bad recommendations, please when you're sure answer!

Member Avatar for Momerath
0
2K

The End.