|
Hello!
I am trying to read an image from the resource file but I got stuck with the error message shown below. I haven't figured out what is causing the problem. If you know please helpme.
Thanks!
ERROR MESSAGE IS ::
MissingManifestResource Exception
Could not find any resources appropriate for the specified culture (or the neutral culture) on disk.
baseName: Resources1.resx locationInfo: fileName: Resources1.resx.resources
My Code is::
Dim rm as ResourceManager
rm = ResourceManager.CreateFileBasedResourceManager("Resources1.resx", ".", Nothing)
PB_Mic.Image = rm.GetObject("epa_mic_in.gif")
|
|
|
|
|
Thanks progload! The David has been solved the problem. It was very simple actually. Its simplicity probably confused me
I couldn't open the project vs 2005 because it was written in C++ but I didn't install vs 2005 fully. Just VB. NET.
Thanks a lot!
|
|
|
|
|
B Journey,
No problem, I'm glad it worked.
I'll be getting 2005 soon, so I'm sure I'll have some fun seeing all the new stuff.
progload
|
|
|
|
|
how to connect sql server2000 to vb.net classes
mohammad ghassn
-- modified at 6:09 Monday 20th March, 2006
|
|
|
|
|
|
dim sql as String="server=GLOBALV;database=sk;uid=sa"
where sk is the database name
dim cn as SqlClient.SqlConnection=new SqlClient.SqlConnection(sql)
dim str as string="Select * from tablename"
dim cmd as SqlClient.SqlCommand=new SqlClient.SqlCommand(str,cn)
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshres
http://himabinduvejella.blogspot.com
|
|
|
|
|
Hi ,
I have two xml files displayed in different rich text box in VB.Net windows application.I want to go for node by node comparison with differences marked by different colours in each rich text box and to have the count of no of differences without using any third party tools.
Kindly reply me ASAP if u have any suggestion.
Athena
|
|
|
|
|
You could probably start with something like this[^] for a text-based comparison.
If you wanted node-by-node, you'll have to use the System.XML namespace classes to read the data of both files, then you'll have to recursively iterate through the nodes (and attributes) of each node, comparing to what is found in the XML files nodes. Next, you'll have to do the same thing again, but reading the second file and comparing to the first. This will catch nodes that exist in one XML file, but not the other.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am looking for an effective code to generate VB reports.
I tried one code but it is showing the following error :
Failed getting Rowset(s) from current datasource.
Plz help me out.
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
Vikrant Badhai wrote: Failed getting Rowset(s) from current datasource.
And you got this code using what reporting tools?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
first of all I would like to thanx Dave for the response.
Using the crystal report control in VB 6.0.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
Your report can't get to the datasource. If your using an Access database, make sure that the .MDB file is where the Report expects it to be. If using SQL Server, make sure that the connection string is pointing to the correct server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well thanx dave for ur response.
I'll check all the connection and let u know.
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
Hi Dave,
Thanx 4 ur support.
The problem is solved.
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
How can i scan lan (Local Area Network) for the ip address
Plz help me
Harshad
|
|
|
|
|
You might want to explain what you want to do a little bit more. Are you asking how to find all the live addresses in a particular address range??
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
NO
what i want is like
i work in one organisation now i want to make one chat system in that i want to atomaticaly list out the address of all the machins in the lan network so that after selectin that i can start chating with that
so how work with this problem i want to list all the machins in one listbox
how can i do that in dotnet OR vb.6
Harshad
|
|
|
|
|
You have two options.
Without a central chat server -- You can scan every IP address in your LAN to find active chat clients. This can take a considerable amount of time.
You can also choose to have each client broadcast their presense on the network. Every other client can then just listen for that broadcast. The problem there is just about every company that I've ever been at doesn't allow broadcast messages to cross routers. This will effectively cut off clients from ever knowing abou each other.
With a central chat server --- The better option is to have a central chat server that each client connects to. Your server can keep track of the list of active clients and give that list to any client that asks. Or your server can give the list to any client upon connection and when there are updated to the list, send that update to each client.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can u plz give me the Sample of it
Harshad
|
|
|
|
|
Google[^] is your friend. There are hundreds of samples out there. All you have to do is search for "Chat VB.NET"...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I tried to pass VB 6.0 form parameters to SQl queries by using the following code :
Option Explicit
Dim cn As Connection
Dim strsql As String
Dim rssname As ADODB.Recordset
Dim strsql as string
Private Sub Form_Load()
Set cn = New ADODB.Connection
cn.ConnectionString = "DSN=dataentry"
cn.open "Provider=Microsoft.Jet.OLEDB.4.0;DataSource=D:\WeikField\Survey_Project\DataEntry.mdb;"
End Sub
Private Sub cmdrepsearch_Click()
strsql = ""
strsql = "SELECT * FROM Data_Entry WHERE Data_Entry.Surveyor_Name='" & cmbrepsname & "'"
rssname.open strsql, cn
DataReportSName.Refresh
DataReportSName.Show
rssname.Close
End Sub
Now the problem is that I am getting runtime error. The error description is as follows :
Runtime Error '91': Object variable or With block variable not set.
Plz can anyone help me out.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
A couple of pointers
1. You're missing a new keyword (this should solve the object block variable error)
2. You set the connection string property for the connection as a DSN and then use a completely different string when you actually open the connection,thus ignoring the dsn - either use
cn.ConnectionString = "DSN=Dataentry"
cn.open
OR
cn.open("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=D:\WeikField\Survey_Project\DataEntry.mdb;")
Hope that helps
"If i was king cigarettes would be free."
|
|
|
|
|
Well thanx brendan for ur response.I'll surely try one of these things and let u know.
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
Hi Brendan,
Thanx for ur support.
The problem is solved.
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
I am unable to pass parameter between window forms in vb.net? how could i do so?
please help
MPandey/INDIA
|
|
|
|