|
Sounds cool.
But what if i want to change the LOOKUP-TABLE?
Can you give an example of that??
|
|
|
|
|
You can't change the lookup table. Translate the characters before you decode the string.
---
b { font-weight: normal; }
|
|
|
|
|
I need to know how to create a progress bar in vb.net 2005. I want the progres bar to show progress when zip file is being created.
jds1207
|
|
|
|
|
Your question is really general but I’ve post a code snippet in my blog here at CP that is written in VB.NET and uses a progress bar to measure the progress of a download from a website.Web Client Download w/ProgressBar[^]
|
|
|
|
|
The ProgressBar only shows progress when you tell it there is some. Just putting a ProgressBar on your form won't do anything unless your app is zipping the files and your keeping track of how many files you have yet to compress into the archive.
So, are you compressing each file yourself, or are you doing this some other way?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How do you turn the field view in release 9 of crystal reports. There is a way using the ctrl key with another key, but for the live of me, I can't remember.
Thanks
silver-gray
|
|
|
|
|
Hi,
I am writing an addin that adds a popup menu to the Code Window command bar. The menu structure is as follows:
MyCommands-->Order Namespaces
----------------Regions-->Add to New Region
--------------------------Add to Existing Region
How can I disable MyCommands if the active document is not a VB file. I know that I can disable Command objects in the QueryStatus method but this method is never fired. I use the code below.
<br />
Private cmdBar As CommandBar<br />
Private myCommandsPopup As CommandBarPopup<br />
Private regionsPopup As CommandBarPopup<br />
Private WithEvents mnuOrderNamespaces As CommandBarButton<br />
Private WithEvents mnuAddToNewRegion As CommandBarButton<br />
Private WithEvents mnuAddToExistingRegion As CommandBarButton<br />
<br />
cmdBar = CType(CType(_applicationObject.CommandBars, CommandBars)("Code Window"), CommandBar)<br />
<br />
myCommandsPopup = CType(cmdBar.Controls.Add(MsoControlType.msoControlPopup, nullParam, nullParam, 1, nullParam), CommandBarPopup)<br />
myCommandsPopup.Caption = "MyCommands"<br />
<br />
mnuOrderNamespaces = CType(myCommandsPopup.Controls.Add(MsoControlType.msoControlButton, nullParam, nullParam, 1, nullParam), CommandBarButton)<br />
mnuOrderNamespaces.Caption = "Order Namespaces"<br />
<br />
regionsPopup = CType(myCommandsPopup.Controls.Add(MsoControlType.msoControlPopup), CommandBarPopup)<br />
regionsPopup.Caption = "Regions"<br />
<br />
mnuAddToNewRegion = CType(regionsPopup.Controls.Add(MsoControlType.msoControlButton), CommandBarButton)<br />
mnuAddToNewRegion.Caption = "Add to New Region"<br />
mnuAddToNewRegion.FaceId = 1554<br />
<br />
mnuAddToExistingRegion = CType(regionsPopup.Controls.Add(MsoControlType.msoControlButton), CommandBarButton)<br />
mnuAddToExistingRegion.Caption = "Add to Existing Region"<br />
mnuAddToExistingRegion.FaceId = 1555<br />
Any suggestions?
Thanks very much,
dlarkin77
-- modified at 10:25 Monday 23rd October, 2006
|
|
|
|
|
I have been using vb6 and vb.net(2003) to date I have recieved a trial
version of VS2005 and would like to try and create an Intranet application.
I am basicly looking to generate a secure menu system running against our
2005 SQL Servers.
I may be trying to run before i can walk, but thats just me. Id like to
have a logon tested against a SQL table. on a sucessfull logon go to a 'page'
that displays a datagrid form a different table. I would also need to know
how i can stop direct access to the second page bypassing the logon page, and
also preventing the use of the back button from the second page to the logon
page. Its a lot to ask, but i think from this information it will give me a
good base to learn from
if anybody can point me in the right direction, i will be very greatfull
I really do need help..... all this computer stuff is way over my head !!
|
|
|
|
|
Pete Newman wrote: Id like to
have a logon tested against a SQL table.
You can still use methods from VS2003 to perform a logon in VS2005. Or do you want to make use of the new login controls[^]?
Pete Newman wrote: on a sucessfull logon go to a 'page'
that displays a datagrid form a different table. I would also need to know
how i can stop direct access to the second page bypassing the logon page, and
also preventing the use of the back button from the second page to the logon
page.
I'd suggest creating the aspx page with the datagrid that's bound to your datasource and control access to that page using roles in the "User" object, e.g.
If User.IsInRole("Admin") Then
Response.Redirect("datagridpage.aspx")
End If
Not sure how or why you want to disable the back button to the logon page. You could add code in the PageLoad event of the second page to conditionally check whether or not the current user has viewing permission for the page - if they don't, redirect them to the logon form. This would really only apply if/when they typed in the url for that page directly (otherwise it would already have been checked through your logon procedure).
Does that help at all?
|
|
|
|
|
kulazfuk,
Thanks for the response.
the second part of your reply is very usefull thank you , however its the first part im still stuck on. I'll give a little background on what im atempting to do.. maybe you can suggest the best route
we have an old VB6 application which resides on each users work stations and access the main SQL server .. im trying to create a simple trial 'Intra-net' project to see if the vb6 application can be replaced.
Currently in the vb6 app, the user logs completes a logon name and password which is queired against an Operators table in the main database on the main server. im trying to replicate the same sort of logon on .. Idealy id love to use the build in login controls but , honestly dont have a clue how to
this is my first attempt at an 'intra-net' so i need all the help i can get. I have looked for tutorials with no sucess
I really do need help..... all this computer stuff is way over my head !!
|
|
|
|
|
Hi Pete,
If you're not too worried by a deadline for this I would suggest you write your own logic for login operations before you start making use of the built in controls, that way you'll have a better understanding of why they behave as they do. Build a few sample applications to test it out, the best way to learn is to try.
Click on the link I gave you in the previous post for an overview of the new ASP.NET login controls, from there onwards you'll find many links regarding web site security, membership and more.
Also, do you have any experience in developing? Although I know you'd rather have this as a web application to run off your intranet, if you're bound to a deadline perhaps you could look at making it a desktop app? You may find that easier.
|
|
|
|
|
Hi Kulazuk,
Thanks again for the pointer. Im off to have a play ..... If i get stuck i know where to come back to
PS the link is very usefull
I really do need help..... all this computer stuff is way over my head !!
|
|
|
|
|
Hi
I have installed my app on XP machines and it works fine, except one machine. I get the following error:
Application failed to Initialize Properly Ox0000135. Click OK to terminate the program. Using Win XP-Pro Ver 5.1 SP2
How can I find out what is causing this?
How do I tell what version of Framework is installed oin the machine?
Cheers
Rich
|
|
|
|
|
I think your problem is that the .NET framework hasn't been installed on the target machine.
You can determine which version of the .NET framewrk is installed using a technique called "bootstrapping" in your setup application.
You can find out more about bootstrapping for VS2005 here[^].
Are you using VS2005? MSDN has very little to no information on bootstrapping in VS2003 anymore. I do still have an article or 2 on this subject living somewhere in my local copy of MSDN for VS2003, ergo I'd have to copy/paste/email it for you if necessary.
|
|
|
|
|
Hi kulazfuk
Yes - That was the problem - thought that would have been part of standard XP Pro installation... Using VB.NET (2003) so no option to include Prerequisites in the deployment, but just downloaded Framework and intalled and it all works fine
Thanks for your help
Richard
|
|
|
|
|
Hi,
We have a Visual Studio 2005 professional license but now we have to work on a VB6 project.
This application was written some time ago by an external resource.
The reason for using VB6 was that the resource had a license of VB6 and we did not have any license of any VB version at that moment.
We have noticed some 'non-standard' behavior in the application and want to do some maintenance on it.
Today we have a license of Visual Studio 2005 Prof.
Our production network/server environment is .NET 1.1 compliant. For the near future we have no plans to upgrade to .NET 2.0.
While opening the VB6 project in VS 2005 prof, the 'upgrade' feature produces a nice overview of issues.
These can be solved of course... but I'm not sure if VS 2005 Prof can then create a VB application that is 'standard' (=no .NET) or if .NET compliance is included by default, that it will be .NET 1.1 comliant.
If we can't produce a 'standatd' VB .exe in VS 2005 prof. we have to search for a VB6 package that is on sale.
Any advice, options, hints, tips etc. are welcome.
Kind regards,
Hans Kelder
SNTG.COM
|
|
|
|
|
Hans Kelder wrote:
If we can't produce a 'standatd' VB .exe in VS 2005 prof. we have to search for a VB6 package that is on sale.
You can't product a VB6 exe from VS 2005. VS 2005 only produces managed code from VB.NET. This requires the .NET framework 2.0
You'll have to try and find a copy of VB6 that you can buy. EBay might have some copies but I can't vouch for the authenticity of the licences.
|
|
|
|
|
System.DateTime.Now show both date and time. My problem is i only wants to display the time. IS there any way to do that? Thanks a lot.
|
|
|
|
|
use this
DateTime.Now.ToShortTimeString()
Tamimi - Code
|
|
|
|
|
ok.. Thanks a lot for the help
|
|
|
|
|
Hey,
Can anyone tell me if there is a way to find out which web browser is set as the default? Also, is there a way you can manipulate the default browser or other default apps (via the Registry maybe)?
Thanks!
|
|
|
|
|
Please can anyone share with me the code required to UPLOAD a textfile from one computer to another either through FTP or webservice.
thanks
Preethi
preethishivbaba
|
|
|
|
|
Stop reposting the same message multiple times, the more you repost the less people are likely to help you.
Have you tried writing the code yourself ?
If so what problems are you having, if not why not ?
This is a site where developers help each other, not just demand source code for free.
If you cannot write the code yourself, either pay someone who will or learn how to do it yourself.
regards,
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
Please provide the coding of the webservice that u used to upload..
thanks
Preethi
preethishivbaba
|
|
|
|
|
Hi,
We need to upload a text file to another server.We are given the other server's Ip and Uid and pwd.IS Ftp the best way to do it or Web service .Please guide me and help me with the code.
Preethi.
preethishivbaba
|
|
|
|