|
You'll have to run this code in the debugger to find out on what line the exception is being thrown. But, you're trying to do something with an instance of an object that doesn't exist, or is Nothing . Without seeing the section of code that is having the problem, that's pretty much all we can tell you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm having trouble passing parameters to a COM+ service. The only code I could find to do so uses XML (see below). This works, but only certain characters are allowed. Unfortunately I am passing a stream of text that includes chr(12) formfeeds and XML of course does not like this.
Any suggestions?
'<remarks>
<system.web.services.protocols.soapdocumentmethodattribute("http: tempuri.org="" maintws="" service1="" sendlist",="" requestnamespace:="http://tempuri.org/MaintWS/Service1" ,="" responsenamespace:="http://tempuri.org/MaintWS/Service1" use:="System.Web.Services.Description.SoapBindingUse.Literal," parameterstyle:="System.Web.Services.Protocols.SoapParameterStyle.Wrapped)">
Public Function SendList(ByVal filedata As String, ByVal filename As String, ByVal clientlist As String, ByVal filetype As String, ByVal directory As String, ByVal subdirectory As String, ByVal batch As String, ByVal offline As Boolean, ByVal dir2file As String, ByVal db1 As String, ByVal db2 As String, ByVal db3 As String) As String
Dim results() As Object = Me.Invoke("SendList", New Object() {filedata, filename,
clientlist, filetype, directory, subdirectory, batch, offline, dir2file, db1, db2, db3})
Return CType(results(0),String)
End Function
|
|
|
|
|
Hi,
Using the Exception Management Application Block I can create new logs in the Event Viewer by placing the following in my app.config file:
<exceptionManagement mode="on">
<publisher
assembly="MyAppBlockTest"
type="MyAppBlockTest.ExceptionPublisher"
logname="My Test Log"
applicationname="Exception Management Application Block Test"
fileName="c:\errors.txt">
</publisher>
</exceptionManagement>
I am now trying to use the Enterprise Library and I don't know how to create a new log. I can only write to the default Application log. Can anyone tell me how I can do this?
Thanks very much,
dlarkin77
|
|
|
|
|
Please, I need a simple example of as working with Crystal Reports in Visual Basic. Net 2005, taking the data of a database made in microsoft access
Thank you
|
|
|
|
|
Hello!
My aim is to adjust (Birghtness, contrast, gamma, HZ, red, green,blue) values of video. I am able to get the pictures from a web cam but I want to be able to adjust these values also.
If you have an sample or any link, please let me know.
Thanks
|
|
|
|
|
How you'd do this would depend heavily on what you're using to get the video stream and what you're using to display it. Each library is going to have, if supported, it's own methods for doing this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i am having problems connecting remotely to the existing database in visual basic .net2005 for connection string .
please tell me how to configure sql server2005 for remote database connections and which connection string should i use to make it working.
|
|
|
|
|
I got the same problem with 2005 and decided to use a connection string manually and then the problem has been solved... Use a connection string variable as shown below:
Public ConnStr As String = "Provider=Microsoft.jet.OleDB.4.0;Data source=" & Application.StartupPath & "\Database\lyrics.mdb;Jet OLEDB:Database Password=111111;"
|
|
|
|
|
The string you provided is for an Access database, not SQL Server 2005.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You are abosuletly right David! It was my out of attention. anyway. He can rich the information at www.connectionstrings.org or .com
|
|
|
|
|
SQL Server 2005 has a tool called the SQL Server 2005 Surface Area Configuration tool. You'll find it under Start/Programs/SQL Server 2005/Configuration Tools. Start that, then click on Surface Area Configuration for Services and Connections. In the left side navigation pane, click on Remote Connections. I think you can figure it out from there.
As for the connection string, a basic string using standard security would look something like:
Dim connStr As String = "Data Source=serverName;Initial Catalog=databaseName;User Id=userId;Password=password"
You can find more on connection strings at http://www.connectionstrings.com[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
did i need to imports any namespace for using redim and preserve in vb.net??
|
|
|
|
|
No you don't have to. The Arrays can be re-dimenssioned unless you define the dim statement inside the block if statement
|
|
|
|
|
I have 6 textboxes (max 5 chars)..when user fill the first textbox with the 5 chars, i want the write_cursor goes to next box..is there someone to tell me the way? is there a property for this or i must make a new sub for this? Thanx..
-- modified at 7:11 Monday 13th March, 2006
|
|
|
|
|
That "write_cursor" as you call it is actually referred to as the Insertion Point, or I-beam.
All you have to do is handle the KeyPress event of the first 5 textboxes and check the length of the text in that TextBox. If it's 5 characters, call the Focus method of the next TextBox in line.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi guys,
i have problem with the insert row! It adds new "insert" rows in the end of dataset! Why?
I change to no auto_numbered the primary key..and the problem continues.
Any ideas?
Thanx..
|
|
|
|
|
kostasdiktia2 wrote: i have problem with the insert row! It adds new "insert" rows in the end of dataset! Why?
Because that's the only place to put them. You don't actually insert between two records, you insert them into the dataset. The database engine doesn't care in what order the records are in the table itself.
If you care about what order the records appear in the table, then you're either not using correct to do what you want, or you're using the wrong object to store the table. Which ever is up to you. You haven't supplied enouogh information about your project to point you in any useful direction.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i having a background and small image as a icon, when system moving the small icon infront the background it look like a square image moving where my image have a character and the background was white. I have alreayd use background color as transparent in the image but it still like that...?
any one know how to solve it?
|
|
|
|
|
Transparency is quite bit annoying but that is how I solved the problem.
First, the image which will use transprancey should be saved with alpha transparency. And then use panel and place the background picture as a panel's bakground picture. And then place the image inside the panel, it won't look square any more and transparenct will take place...
Do not forget when save the image do not use index transparency but alpha channel transparency.
|
|
|
|
|
is it in any format will work ? like gif,jpg...
r u using photoshop to edit ur image?
cause i cant found any in ACD editor and flash...
anyway i only see the selection on background content as transparent only...
wher eu set the alpha thing?
|
|
|
|
|
have u try not to use the panel? i dont think it work for me after i put it in the panel casue i cant call the image to move even cant display it also
image1.Visible = true
|
|
|
|
|
It doesn't matter, you will able to move your image inside the panel. The image format should be gif to support transparency otherwise you should go with index transparency which brings some other issues to calculate in the code.
|
|
|
|
|
Hi all,
I am learning to create a dating website. i am using sql server 2000 and visual studio.net 1.1
I want to create a robust website so that system dont crash or anything. i dont know how to create a good database design. every time i create a tables i happen to modify it i dont know.
is there any free source code for complete dating site.
i dont want to purchase or anything coz i am in learning stage. i actually found one but it is not created in Visual studio framework so it doesnt have aspx, aspx.vb and resx file and it uses mysql. is there anyway i can just seperate the coding into aspx, aspx.vb and resx.
please help thanks
Robin
|
|
|
|
|
That's too hard, harder than actually getting a date!
|
|
|
|
|
I seriously doubt you'll find the source for any dating website. You'd be better off looking for other projects and applying what you learn from those projects to your own.
Try looking on http://www.asp.net[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|