|
Does anyone know if there is a way to configure the MSHFlexGrid control so it doesn't highlight the first non-fixed row when the user clicks in a fixed row?
|
|
|
|
|
Hi.
I have console application installed on the servers, which I'm trying to run by calling it from a batch file.
In the batch file, I specify UNC path to the application 1 paramter: path to the folder.
Example:
\\server\directory\app \\server\dir\datafile\
The application doesn't see the path to the folder and returns back with "Directory doesn't exist" error (it does run the application though). When I change UNC paths, within the batch file, to noraml (proper path to the application and path to the folder using C:\... etc.) URLs the application works without any problems. If I only change folder path to C:\... it can't see the path as well.
I know that it got something to do with the security issue within .NET. Is there anyway around it. It looks like the app. just can't understand UNC paths.
Please help.
Thank you, Alex.
|
|
|
|
|
It's patially a security issue, since managed code is not trusted from ANY network source, and it also appears to be a problem with your app not being able to handle UNC paths. Or, there is a permissions issue with the path that you're giving your app.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The server it installed on has access to the path so I don't think it's a permission issue. We've tried to give permission to everyone for this folder and still had problems. By the way the initial test of the application was trying to access share on the same server and failed. Do you know any way around it? We will be calling batch from another computer and we need to use UNC paths.
|
|
|
|
|
how to change an exsisting items image.?
exsample i have 5 items in listview:
Man
Wooman
Animal
Thing
Star
And all those items have same icon like ( ) buth when you click the
button i wish that item animal changes the icon into ( )...
Esample....
Thanks!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
please i need answer...
|
|
|
|
|
If you have put all the images in a imagelist then...
if (listview1.items(0).selected = true ) then
listview1.items(0).imageindex = 1
' do other stuff
end if
'check for the image index of your imagelist to display the proper picture.
|
|
|
|
|
This has to be a problem that's been solved a million times.
I need my website to create pages on the fly from a database.
Because I want Google to like my site, I don't want to use arguments: www.sitename.com\thePage?Arg1&arg2
So if you will imagine that I have a link to a page that looks like: www.sitename.com\page_arg1_arg2.aspx...
The two options that I've tried are
1. Use 404 error trapping - but I get the error message in the browser which is ugly and probably disdained by Google.
2. Use virtualPathProvider, and virtualfile. I like this solution, but I can't get it to work. Specifically, the virtualfile.getfile call is never accessed for the aspx. It is only acccessed after an aspx file is interpreted (say for a jpg).
To complicate this further, I'd like to use an existing page, but pass it arguements. I'm supposing that I would have a line of code like this:
new LikeThisPage(arg1,arg2)<br />
, then somehow used an htmltextwriter to render it to a stream.
Any ideas?
Thanks,
rant
Everyone else's job looks easy
|
|
|
|
|
You might want to ask this queston in the ASP.NET Forum[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I m starting to develop my new applications with VB.NET..
I have a lot of experience in vb6 and i created applications using vb class to manage ADODB connection and ADODB recordset..
I would like to create basic classes to interoperate with records (ex. movefist, movelast, findfirst) and use them in my specific objects.
I searched if some sample was inserted in internet, but i didn't find any solution.
Can anybody help me to find what i m searching for??
Thanks in advantage for your help..
LORENZO
|
|
|
|
|
Lorenzo wrote: I would like to create basic classes to interoperate with records (ex. movefist, movelast, findfirst) and use them in my specific objects.
I searched if some sample was inserted in internet, but i didn't find any solution.
ADO.NET works differently.
You might want to read up on the following classes: DataSet , SqlDataAdapter , SqlDataReader , SqlConnection , SqlCommand
|
|
|
|
|
I am now totally confused. You also don't appear to be the OP.
|
|
|
|
|
The scenario is i have a multiline text box, the user enters some range of values in that, separated by a "-"
ex:
10.1-20.2
30.3-40.4
50.5-60.6
I have to read this values & split each of them & also we need to push each value in an integer
like i1 = 10.1, i2 = 20.2, i3 = 30.3 & so on.
FYI:I'm using vb.net 1.1.
Can anybody help me how do we do this.
|
|
|
|
|
Dim arValues as Integer() = txtMultiLine.Text.Split("-")<br />
For i as Integer = 0 to arValues.GetUpperBound(0)<br />
integervalue = arValues(i)<br />
Next
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Hi,
this is what my code is
Private Function testFunction(ByVal str As String)
Dim lines() As String
Dim s As String = "-"
Dim before, after As String
' Split the contents into lines.
lines = Split(str, vbCrLf)
If lines.Length > 0 Then
For i As Integer = 0 To lines.Length - 1
Dim mypos As Integer
mypos = InStr(lines(i), s)
before = lines(i).Substring(0, mypos - 1)
Dim il As Integer
il = lines(i).Length
after = lines(i).Substring(mypos)
If CInt(after) <= CInt(before) Then
Response.Write("First Item is greate than second")
End If
Next
End If
End Function
But the problem is i even want to check that the last item in lines array should be less than the first item of the next lines()
i.e. 1.5-2.5
3.5-4.5
4.0-5.0 'Note:here 4.0 is not valid as in the last item we already had 4.5
I hope you got it
|
|
|
|
|
I need to write a program that will navigate to a website, login, and download several files on a daily basis. I have no Idea where to begin on a project like this. If anybody has some code examples of how best to do this I would be very appreciative. I am not limited to VB.net for this project if someone fills another language would be better for the job please tell me.
Thank You, Russell ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
in vb.net 2005 look at my.Computer.Network.DownloadFile
|
|
|
|
|
This is great code for doing direct connections like to a SFTP or https site. But do you know of any examples that show how to make a mini web-bot that only goes to one site everyday and navigates through a manual user login then has to select the correct report button and then copies and saves the report to file.
If the company That I need to get the reports from would give us some sort of FTP, or SFTP, or direct http/https URL to work with the first examples you gave would be great. Well in the mean time I will keep working with the examples you supplied and see if I can get something working. Thank you for the link to the examples and wish me luck I am going to need it.
Russell![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
there is some example in codeproject.com that someone did that used a browser control in his vb.net application and using the dom object, clicked buttons, etc. search for it and see if you can adapt it to what you need...
|
|
|
|
|
You can use the System.Net.HttpWebRequest() and System.Net.HttpWebResponse() to do this.
Do the login and navigate the web page with HttpWebRequest, then parse the HTML code (got by HttpWebResponse) and get the link for download file(s).
Bye,
Carmine,
Webmaster of: www.thetotalsite.it
My web blog: blog.thetotalsite.it
|
|
|
|
|
I want to play a sound file when i load a form in my vb.net 2005 file.
The file format is .wav, and i simple want it to play when the form is opened, and [if possible] stopped when the form is closed, nothing more than that.
How would i do this.
Cheers
|
|
|
|
|
look at my.Computer.Audio.Play
|
|
|
|
|
K, cheers.
Sorry, should have also asked, how do you add a sound file to the resources, i cannot find its file type, do you use stream or something like that???).
Sory, bit slow at this VB stuff!
|
|
|
|
|
project properties
resources
add existing file
to play My.Computer.Audio.Play(My.Resources.xxxxxxxx, AudioPlayMode.Background)
note; it appears that it will only play pcm wave files. might need to use api call unless yours is pcm...
|
|
|
|
|
Yeah its a PCM file, recorded it in Windows Sound Recorder, i inputted it into vb.net, it shows up on the list, but not on the input list (see screenie), any ideas?
See geocities.com/webharv/error.JPG
|
|
|
|