|
I need to be able to label the tick marks on a Trackbar (slider) control in a VB.net 2005 Windows applaction. The labels need to be centered under each tick mark. For example, if a Trackbar has five tick marks, I would like to number/label them "1", "2", ..., "5". The number of tick marks will very dynamically during run time. Thus, the labeling must be dynamic. Also, the Trackbar is anchored Top, Left, and Right. When the Trackbar is resized, the label should be repositioned under their respective tick marks.
Rob True
|
|
|
|
|
There is no support for labels in the standard TrackBar control. You'll either have to find a 3rd party control that supports this, or implement your own version that includes this support.
You can find an approximation of a custom TrackBar in this article[^].
|
|
|
|
|
I have following error in window service same code is working in window Application
"QueryInterface for interface SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed."
Dim objbl As SQLXMLBulkLoad3
objbl = New SQLXMLBulkLoad3
objbl.ConnectionString = "Provider=SQLOLEDB.1;Data Source=pcDB;Initial Catalog=webdb;User ID=sa;pwd=sa"
objbl.ErrorLogFile = "c:\error.log"
objbl.BulkLoad = True
objbl.KeepIdentity = False
objbl.CheckConstraints = False
objbl.Transaction = False
objbl.Execute("c:\Items.XSD", "C:\Items.xml")
Thanks
Hardik Panchal
|
|
|
|
|
Does the ASPNET account that your code is running under have any rights to the root of the servers C: drive so it can read those files? I doubt it...
Move the files to where your code is executing from and change these hard coded paths to find the files in the correct folder and it should work.
|
|
|
|
|
I have an application on a server that uses word templates to generate letters. When the client opens the application a query is made to a database, data is returned and that data is then inserted into bookmarks in the word template. The instance of word is opened locally so no office applications are actually installed or ran from the server; the templates are stored in a shared folder on the server.
I can open the template and print a letter, other user's get an exception not handled error, but if the application is actually on the local machine they are fine.
I would appreciate any suggestions.
|
|
|
|
|
jimbaloo wrote: I can open the template and print a letter, other user's get an exception not handled error, but if the application is actually on the local machine they are fine.
What does this mean? If Word is not installed on every computer that is going to run your application, you're wasting your time.
You also neeed to copy any .DLL files you found in your Release folder to the other client machines in order for this to work.
What's the exception? What does the code look like where it occured and on what line?
|
|
|
|
|
The application is not installed on the local machine. The client wishes this to run from an application server and only use the copy of MS Word that is installed on the client machine.
The application on the server manipulates the data, and then calls to the client machine's version of office to insert the text and print the document.
Right now I cannot find what the exception is because from my box it works, and no one else has a copy of Visual Studio installed so I cannot debug from another station.
Other user's can use the application to access the stored procedures. It is just when they attempt to use Word. The application reads from a local Excel file into a dataset, so the server is communicating with the local machine without any .dll's being copied to the local box.
|
|
|
|
|
jimbaloo wrote: It is just when they attempt to use Word. The application reads from a local Excel file into a dataset, so the server is communicating with the local machine without any .dll's being copied to the local box.
The .DLL's would be the Primary Interop Assemblies that the client side needs as a wrapper between the managed .NET world and the unmanaged COM world of Office. They are NOT optional files if you want to interop Word, which is what you're doing.
|
|
|
|
|
To copy the .dll's onto a user box
Where on the user's box would I need to copy the .dll's? I have had one user try just copying the entire application onto his box but with no success.
I really appreciate your help on this. Thanks
Jim
|
|
|
|
|
Everything you find in the projects bin\Release folder (*.EXE, *.DLL, *.config) goes into the same folder on the clients machine.
|
|
|
|
|
Can v play video & audio files like .mp3 , .mpg, .wav, .wmv etc.
|
|
|
|
|
You can use the windows media player control, or direct show to do this.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ankur0101 wrote: Can v play video & audio files like .mp3 , .mpg, .wav, .wmv etc.
Yes.
Regards,
Satips.
|
|
|
|
|
ya but how???
whats a code??
only thing i knw is to play .WAV files with no display
|
|
|
|
|
i also want to know how can we open Form2 from Form1??
Here is example
Im in Form1
there is Menustrip >>
File | Edit |
Now there are sub menu in File "open Form2"
---------------------------------------------
In short i want to open other form from Menustrip
what i have to do??
|
|
|
|
|
I recommend buying a book on VB.NET and working through it. If you don't know how to open a form, odds are you don't know enough to take any knowledge from the answers you will get here.
The answer is, you create an instance of the form class, and call it's ShowDialog method.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian is correct. If you can't work out how to open a second form from your main form, the rest is going to be neaerly impossible for you to learn on your own. Seriously, pick up a couple of books on VB.NET for Beginners so you can get an explanation of the basics. If you don't, you'll be completely lost in no time.
|
|
|
|
|
But im having book of Visual Basic.Net
but it has not specified how to play audio & video files
|
|
|
|
|
ankur0101 wrote: but it has not specified how to play audio & video files
That's the least of your problems right now.
|
|
|
|
|
Hi,
I need to replace the " in a string to a "", I'm not sure why this doesn't want to work:
dc.ColumnName.Replace(""", """")
Please can someone advise?
Regards
ma se
|
|
|
|
|
strings are immutable. That means you cannot change them. The replace method returns the new string. The old string is not changed, it cannot be.
dc.ColumnName = dc.ColumnName.Replace(""", """")
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian is correct, but the search and replace strings are wrong. This is what it should look like:
dc.ColumnName = dc.ColumnName.Replace("""", """""")
4 quotes for the search string and 6 for the replacement string.
|
|
|
|
|
*grin* I didn't even look at that.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
That's one of the things I hate about VB. I'd rather have the same escapes as C#.
|
|
|
|
|
Hi,
I am retrieving some values from database & populating them in a combobox.Prior to populating the values from the combobox,i manually added an item as "All" and i want that this item should be the default selected item(with index -1) when the values will be populated from the database into the combobox.
Can anybody help me how to do this..?
Thanks in advance
i m Pradip Kishore
|
|
|
|