|
|
i have face an error in this connection string "Keyword not supported: 'initial catalogue'."Please help
<add name="conn" connectionString="Data Source=.\SQLEXPRESS;Persist Security Info=True;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|\Coupon Management.mdf;Initial Catalogue=Coupon Management"
providerName="System.Data.SqlClient" />
|
|
|
|
|
|
use initial catalog instead. Hope this helps
|
|
|
|
|
Try the following:
add name="NameOftheConnection" ConnectionString="Data Source=server name ;Initial Catalog= batabase neme;User ID= user id;Password= password" providerName="System.Data.SqlClient"
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
hi,
first initial catalog not initial catalogue
second Initial Catalog and AttachDbFilename tags are ways to specify database place
if use Initial Catalog mean that database is on server which Data Source tag says
and connection must be opened toward database which it's name is in Initial Catalog
and
if use AttachDbFilename we specified physical place of database file
if database file is on local machine and is not attached to local SQL server use AttachDbFilename
else use Initial Catalog
|
|
|
|
|
Hi All,
Can we use C# dlls in VB6?
Thanks
Syed Shahid Hussain
|
|
|
|
|
|
Thanks
Basically m C# programmer a but I have to give solution for VB6 projects the old one which is still in working.
thanks by the way
Syed Shahid Hussain
|
|
|
|
|
I understand. You are welcome
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
Yes you can do this by implementing a CCW
please check
http://www.codeproject.com/KB/COM/nettocom.aspx
Hope this helps
|
|
|
|
|
Thanks
Syed Shahid Hussain
|
|
|
|
|
Hi all,
I m trying to create toolbar for IE .
In my toolbar i had a button "Sign in" which opens a form
which allow user to login. On login suceed i have to remove the sign in
button from toolbar and have to show "Sign out" button on toolbar.
Thanks in advance.
modified on Wednesday, December 23, 2009 4:51 AM
|
|
|
|
|
Hi,
What programming language are you using.
In C#.net it would be done as below
Form1 f=this.Owner as Form1;
f.Button1.Text="Sign Out";
Where Form1 is the name of the parent that holds the sign in button with name button1.
Hope this helps
Thanks
|
|
|
|
|
What is your question, I don't see one.
|
|
|
|
|
How can i hide/remove some of the properties from a propertygrid.
I have a used a property grid in my project to display the properties of a label and picturebox in runtime, but i do not want all the properties to be displayed.
please help
Janardhan
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:15am.
|
|
|
|
|
Given below is is my implementation, where should i add [Browsable(false)] or [Browsable(true)]
PropertyGrid pgGrid = new PropertyGrid();
pgGrid.CommandsVisibleIfAvailable = true;
pgGrid.Height = 400;
pgGrid.Width = 250;
pgGrid.Location = new Point(this.Width - (pgGrid.Width + 10), 0);
pgGrid.Dock = DockStyle.Fill;
this.Controls.Add(pgGrid);
pgGrid.Visible = true;
pgGrid.SelectedObject = label1;
Regards
Janardhan
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:15am.
|
|
|
|
|
Where is label1 used here?
|
|
|
|
|
Given below is is my implementation, where should i add [Browsable(false)] or [Browsable(true)]
PropertyGrid pgGrid = new PropertyGrid();
pgGrid.CommandsVisibleIfAvailable = true;
pgGrid.Height = 400;
pgGrid.Width = 250;
pgGrid.Location = new Point(this.Width - (pgGrid.Width + 10), 0);
pgGrid.Dock = DockStyle.Fill;
this.Controls.Add(pgGrid);
pgGrid.Visible = true;
pgGrid.SelectedObject = label1; <--- here!
|
|
|
|
|
Hi,
first forgive my poor english
my problem is :
I made a solution with 2 runing projects, vb and C#.
The VB project contains a form with a Label.
The C# project contains a form with a Button.
The goal is to change the Label.Text in the VB project by pressing the C# Button.
I made a referance in the C# project to the VB Project.
But the only way I know in order to address the Label is by using
in the vb:
inside form1....
Public Function Fnc_ChangeTxt()
Label1.Text = "blabla"
End Function
and in the cs:
when pressing the button...
ProjectVB.Form1 f1 = new ProjectVB.Form1;
f1.Fnc_ChangeTxt;
I guess since im using "new" it wont address the current working VB project
what do i need to do ?
thanks in advance.
|
|
|
|
|
First of all, your English isn't all that bad!
I'm taking a stab at this, do you want to modify the label directly instead of using a function?
First thing to do is, ensure that the label is publicly accessible by setting it's Modifiers property to Public.
This property is "Private" by default.
Let us know if that helped!
|
|
|
|
|
hi, thanks for replying
It wont work.
when trying my code or your suggestion
it will go through all the steps ahowing as if all is ok
but in the form itself nothing will change.
I think its because im using:
ProjectVB.Form1 f1 = <big>new </big>ProjectVB.Form1;
and it causes a whole new instance of the form to be adressed.... or smth like that ^^
do you know of an other way to adress the vb form from the c# ?
|
|
|
|
|
I created the project on my side and it works just fine, here's my code:
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VBApplication;
namespace CSApplication1 {
public partial class Form1 : Form {
public VBForm1 vbf;
public Form1() {
InitializeComponent();
vbf = new VBForm1();
vbf.Show();
}
private void button1_Click(object sender, EventArgs e) {
vbf.Label1.Text = "Hello World!";
}
}
}
VB
No code on the VB side, I only added a label on the form and changed it's Modifiers to Public.
modified on Wednesday, December 23, 2009 5:56 AM
|
|
|
|