|
have downloded Oracle Data Provider for .NET (ODP.NET) 10g release.
once again..i am not using it in my app. but it was installed on my computer. after i started to build application. and now on other machine if i am not installing this ODP.NET 10g then my application give error that "tns couldnot resolve the service name."
i dont have any idea why its happening..even i didnot add reference to ODP>NET (dataaccess.dll) .
Thanks
Hemaxi
|
|
|
|
|
You might want to try the list of things found here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for your help.
I resolved the issue..it was sily mistake..
Thanks anyways
Hemaxi
|
|
|
|
|
Greetings everyone!
Question! Is there a way to set up the installer of a VB.NET program that will you set a condition to evaluate that will give the user the choice of either creating a desktop shortcut or not?
Any help would be fantastic!
|
|
|
|
|
|
Unfortunatly no. When you create the shortcut via the file system editor, the shortcut you create does not have a place for checking the condition from one of the installation dialog boxes that I have seen unless I am overlooking something.
If all about are losing their head while you keeping yours, you must be the one holding the axe!
|
|
|
|
|
----------------------------------------
Visual Studio 2003 v7.1.3088
.NET Framework 1.1.4322 SP1
----------------------------------------
I have a large WinForms project.
I have a form where I added a checkbox chkIsEmployee.
Sporatically, I get errors:
'chkIsEmployee' is not a member of 'ClearView.SMS.frmStudentManagement'
However, all of the designer code appears to be intact:
...
[Line 133] Friend WithEvents chkIsEmployee As System.Windows.Forms.CheckBox
...
[Line 181] Me.chkIsEmployee = New System.Windows.Forms.CheckBox
...
[Line 346] Me.grpDemographics.Controls.Add(Me.chkIsEmployee)
...
'
'chkIsEmployee
'
[Line 371] Me.chkIsEmployee.Location = New System.Drawing.Point(222, 99)
[Line 372] Me.chkIsEmployee.Name = "chkIsEmployee"
[Line 373] Me.chkIsEmployee.Size = New System.Drawing.Size(92, 16)
[Line 374] Me.chkIsEmployee.TabIndex = 16
[Line 375] Me.chkIsEmployee.Text = "is employee"
...
Now, I open the form, and the checkbox control is visibly gone.
It is almost as though the compiler is ignoring line 133. All lines after 133 have the error - not 133.
I rebuild the app and sometimes, suddenly all is OK.
I have tried deleteing the checkbox and re-adding it. The problem keeps re-surfacing. It was doing this behavior on a different control before.
Later, I open the form, and the control is gone again, but all the declaritive code in the form is still there.
This happened to me before (in this project with a different form), and I had to create a new form, paste controls on, paste my code in, delete the old form and the behavior went away.
I tried that here, but the behavior keeps comming back.
Is anyone aware of a bug or a fix for this?
Thanks,
-Len Miller
"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
|
|
|
|
|
Yep, it's a bug in the IDE. Nope, there is no permanant fix for it yet. You've already discovered the only work around I know of. SP1 for Visual Studio 2003 should be comming out sometime last month.
Oh! Have you installed SP1 for the .NET Framework 1.1?? If not, get it from here[^].
Visual Studio 2003 Service Pack 1[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 15:36 Tuesday 11th July, 2006
|
|
|
|
|
Hi,
I've been surfing the web for the following question, with no luck. Do you know of any solution regarding having a parent form (MDIparent) calling a DLL and the DLL will be known as child to MDIparent?
Looking forward hearing from you.
Kjartan Þór Guðmundsson
|
|
|
|
|
Your question doesn't make any sense. I .DLL cannot be a child of anything, except a process in a round-about way.
Is this .DLL supposed to be returning a Form? Without any details about your .DLL, there's really not much anyone can do to help you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
is the DLL a separate user control with a form?
|
|
|
|
|
Sorry about the unaccurate question. The DLL is a form, I'm building a large project and have no intention to have in one project.
Kjartan
|
|
|
|
|
This form is it's own class library?
Then all you would have to do is create an instance of it, just like any other form:
Dim newForm As New MyDllForm
newForm.Parent = Me
newForm.Show()
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I get this errormessage.
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot add a top level control to a control.
Kjartan
|
|
|
|
|
instead of newForm.Parent = Me, which gives an error, you should have
newForm.MdiParent = Me, and then it works fine.
Kjartan
|
|
|
|
|
Whoops! My mistake!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
I have a filestream that I am able to read only once when my program launches. If I attempt to read the line a second time, I receive the message "The process cannot access the file 'C:\IMGfromDB.BMP' because it is being used by another process." at this line of code...
fs = New FileStream(savedIMGName, FileMode.OpenOrCreate, FileAccess.Write)
I've tried the following to release the processes...
fs.Close()<br />
fs.Dispose() and
File.Delete(savedIMGName)
Thanks in advance
-- modified at 14:11 Tuesday 11th July, 2006
|
|
|
|
|
|
Hi guys
I have stored a treenode text into a custom property then now i want to reselect the specified treenode whenever i start my application.
So plz guys help me out n tell me which code to use.
Thanks in advance.
MAP Tiger
Tiger Softwares
Software Designer and Developer
VB.NET, ASP.NET, VFP
|
|
|
|
|
Hi all,
I'm not much of a VB programer so I hope one of you guys or gals could help me with something. I am trying to create a macro to be used with word. The pupose is to search the selected text for a character sequence and edit it. If you know anything about chinese, this macro will convert numbered pinyin into toned pinyin.
it looks something like this
Sub number2tone()
With Selection.Find
.Text = "r1"
.Replacement.Text = "1r"
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "r2"
.Replacement.Text = "2r"
End With
Selection.Find.Execute Replace:=wdReplaceAll
...
With Selection.Find
.Text = "a4"
.Replacement.Text = ChrW(&HE0)
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
The problem I am having is that instead of searching only the selected text, sometimes it goes on to the end of the document and sometimes to the end of the line.
|
|
|
|
|
stored procedure concepts in vb.net
|
|
|
|
|
can you be a bit more specific please?
|
|
|
|
|
Is this a question, a statement, or just a general thought ? I suspect if you wanted info on this, pasting it into google verbatim will give you plenty.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi, I am creating a front-end to the sqlite DBMS using VB.Net 2002. I have managed to get the name of the table, field names and types from user input displayed into a listview but I can only get the Create table command to accept the last input values, so if the table has more than one field(which nealry every table has) it simply ignores the previously entered fields.
How would I get it to create an SQL query with all the inputted field details?
I have inserted the code I have used so far.
Many thanks for your help.
This button opens up a new form for the user to input the field name and select the field type then brings them back and displays them in a listview.
Public Sub btnAddColumn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddColumn.Click
Dim frmAddColumns1 As New frmAddColumns()
frmAddColumns1.ShowDialog(Me)
fldName = frmAddColumns.ColumnNameTB.Text
fldAttribute = frmAddColumns.ColumnTypeTB.SelectedItem
'Create ListViewItem
Dim item1 As New ListViewItem(fldName, 0)
item1.SubItems.Add(fldAttribute)
'Add the items to the ListView.
listView1.Items.AddRange(New ListViewItem() {item1})
Me.Controls.Add(listView1)
End Sub
This button takes the input table name, field name and attributes and creates the SQL command to send to the database to create the table:
Private Sub btnCreateTable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreateTable.Click
Dim tblName As String
tblName = txtTableName.Text.ToString()
If Len(txtTableName.Text) < 1 Then
MessageBox.Show("Please type a name for the table")
ElseIf Len(txtTableName.Text) > 0 Then
Try
dbConn.openExistingDatabse("Data Source=" & getDBName() & ";Version=3;New=False;Compress=True;")
dbConn.createSQLCommand()
dbConn.createTable("CREATE TABLE " & tblName & "(" & fldName & " " & fldAttribute & ")")
MessageBox.Show("Table created successfully")
Me.Close()
Dim frmInsertData1 As frmInsertData = New frmInsertData()
frmInsertData1.Show()
Catch es As Exception
MessageBox.Show(es.Message)
End Try
End If
End Sub
|
|
|
|
|
In btnAddColumn_Click() you assign fldName and fldAttribute and add them to the ListView but in btnCreateTable_Click() you don't iterate the ListView to retrieve all added columnnames and datatypes. You only use the las assigen values for fldName and fldAttribute.
BR
Fredrik
-- modified at 10:05 Wednesday 12th July, 2006
|
|
|
|