|
Luc,
Thanx very much for your reply. Actually I get total minutes & that I need to convert in to hh:mm:ss format.
Initially I thought of converting the minutes (lets say 2250 minutes) it to total hrs & then converting it to hh:mm:ss format (i.e. 2250/60 = 37.5 & then I try converting this value to hh:mm:ss format)
To put it straight do we have any technique for converting the total minutes into hh:mm:ss format
i.e 2250 minutes needs to be converted into 37:30:00 format.
Thanx in advance
Regards,
Vipul Mehta
|
|
|
|
|
I have shown you how to do it for seconds, you can work it out yourself from there.
There is such a thing as documentation.
|
|
|
|
|
Hi,
I need a TreeView control with the ability to rearrange nodes and with the insert indicator (the horizontal bar) that you get in "Favorites" in IE when you add or drag-drop a link. I'm pretty sure how to do the rearranging bit, but how do I get the insert indicator when an item is dragged around in the treeview? Do I have to draw it myself? And if so, how can I do that?
Thanks!
|
|
|
|
|
You have to do it yourself. The TreeView has events for drag and drop operations but it won't draw anything for you. Check this[^] out for an example. It uses icons, but you could modify it to draw a line like IE.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hi Tom,
Finally an answer Thanks! there are a lot of helpful stuff in that article! I also need to drag a semi-transparent icon as the article explains, so that's really cool. By now I'm actually drawing the line myself as you also suggest. I think I need to work on it a little bit, though Thanks again.
|
|
|
|
|
Hi all ,
My .Net App ConnectionString(used to connect to sql server) is stored in app.config and is protected , now I'm gonna use clickonce deployment to publish my app on workgroup environment , also I have used "The application is available Online only" Option in clickonce deployment , How can I set connection string for my clients? Note that all clients are going to connect to sql server using the same SQL Server Login ,
Thanks in advance
|
|
|
|
|
When you are publishing the application by using ClickOnce, the yourapp.exe.config file will be included in your deployment folder. No need to worry about what you have stored in app.config file. Your application will work as usual. If the user download the application, the app.config file will be downloaded into his/her ClickOnce client cache folder.
|
|
|
|
|
Thanks , but
Where is the client deployment cache folder located?
and another issue is that Should Visual Studio be installed on the server machine or I can publish my app in my pc and then transfer it to Server pc and share it for other clients?
Thanks in advance
|
|
|
|
|
You are publishing your application on the server directly. If you need to add or modify the required dlls that you already published on the server, you can use MageUI to make changes. then, you can give the installation URl to client to install your application.. then your application will be downloaded to the client machine (under ClickOnce Deployment Cachae folder e.g. C:\Documents and Settings\[User Name]\Local Settings\Apps\2.0) and will run the application..
|
|
|
|
|
I'm not developing the application in the environment that the server is located , I'm at home and working on project and the server pc is in the customer office somewhere else, In this situation how can I deploy the app?
And would you please talk more about MageUI and how to access it?
Thanks in advance ,
|
|
|
|
|
You can just copy the published folder that you have published in your machine. In server, you can paste your folder on the server. then create the virtual directory on that server m/c and point it to your folder. that's all you need.
DotNetWWW wrote: would you please talk more about MageUI and how to access it?
You can type megaui on VS 2005 commandline. (not normal commandline).
I highly recommend you to read "ClickOnce Deployment Documentation.pdf" from "ClickOnce Community Resource Kit".
The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application. another thing is that if you are publishing the application, you have to add the dll to your project.. There are some cases that you don't want to add those adds.. (e.g CAB projects or SCSF project.) For that case, megaui tool helps a lot..
|
|
|
|
|
Thanks a lot for your great help ,
Michael Sync wrote: then create the virtual directory
Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?
Michael Sync wrote: The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application
What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?!
Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes?
Thanks a lot again
|
|
|
|
|
DotNetWWW wrote: Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?
Is your server the web server? If yes, it's not necessary to create the Virtual directory. The main reason why we create the VD is that we don't want to use the "Folder Sharing" for that. If someone wants to install the ClickOnce application, they will access this application through URL..
DotNetWWW wrote: What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?!
No. You don't need to worry about the updates but we don't use that option in our projects.
DotNetWWW wrote: Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes?
I don't know about that.
|
|
|
|
|
Thanks
Michael Sync wrote: No. You don't need to worry about the updates but we don't use that option in our projects.
Why?
|
|
|
|
|
DotNetWWW wrote: Why?
Because we want our application to run offline too. Because we don't want our employees to go back if the connection is down.. Another reason is that we used the dynamic updates (from code) to get the latest updates. So, we want to disable "The application should check for updates" option.
|
|
|
|
|
Thanks agagin ,
My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right?
And when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?
|
|
|
|
|
DotNetWWW wrote: My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right?
Yeah. You are right.
DotNetWWW wrote: when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?
Yeah. You are right.
|
|
|
|
|
Thanks , another point is that when I use Online Option , Where the application.exe.config for each client is saved? as I told you that my app connection string is stored in app.config?
and in Online Only option , the app is not cached in clinet machine anymore , Am I Right?
Thanks a lot , my friend
|
|
|
|
|
Hi,
I'm a WMC newbie and i need some serious help concerning the click-to-record feature as described below:
I need to schedule a TV recording programmatically. To do this, i need to catch the event whenever a user clicks "Record" and prompt him/her with a dialog. The user will then have the choice of performing a "regular" schedule or a schedule from a proprietary service.
Can you plz give me a kickstart on the issue above?
Thank you.
Ps. Sorry for posting here but i have no idea as where i can post this message
Carpe diem,
Krg
|
|
|
|
|
Private Structure CUSTOM_EXPORT
Dim Name_Renamed As String
Dim ViewName As String
Dim List() As String
Dim filter_Renamed() As String
Dim ColHeadName() As String
Dim ColWidth() As Object
Public Sub Initialize()
ReDim List(255)
ReDim ColHeadName(255)
ReDim ColWidth(255)
End Sub
End Structure
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dim udtCustom() As CUSTOM_EXPORT
udtCustom(1).List(0) ="Area Code"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I face with "Area Code" is not assigned to udtCustom(1).List(0) ,
Object Reference not set to an instance of an object.
pls solve my problem,
what other is needed i do for this problem,
THANKS FOR ALL!!!!!!!!!!!!!
|
|
|
|
|
Meenge wrote: Dim udtCustom() As CUSTOM_EXPORT
udtCustom(1).List(0) ="Area Code"
1. You should set the size of array while you are declaring udtCustom variable.
2. You should initialize the array which are included in structure. Note: Initialize() is not the constructor of Structure.
For example :
Private Structure CUSTOM_EXPORT<br />
Dim Name_Renamed As String<br />
Dim ViewName As String<br />
Dim List() As String<br />
Dim filter_Renamed() As String<br />
Dim ColHeadName() As String<br />
Dim ColWidth() As Object<br />
Public Sub Initialize()<br />
ReDim List(255)<br />
ReDim ColHeadName(255)<br />
ReDim ColWidth(255)<br />
End Sub<br />
End Structure<br />
Sub Main()<br />
Dim udtCustom(1) As CUSTOM_EXPORT<br />
udtCustom(1).Initialize()<br />
udtCustom(1).List(0) = "Area Code"<br />
Console.Write("")<br />
End Sub
|
|
|
|
|
Hello,
My customer is using my app, which is currently running on .NET Framework 1.1. I want to upgrade it to .NET 2.0, but some of the computers might not have the .NET 2.0 Framework runtime installed. I am already using my own autoupdate mechanism and changing to ClickOnce at this time is not an option.
I googled a bit, and I only found a couple of solutions that need to use Group Policies with Active Directory. Since my customer doesn't use Active Directory, is there something else I can do?
Thanks in advance,
|
|
|
|
|
Since you have no domain your options are very limited. Every machine has it's own account (SAM) database, and hence, every administrator account is different.
You can walk around and visit every machine and install .NET 2.0 and your applicaiton.
If you have some kind of distribution system already setup, you can use that.
If you don't have a distribution system, you can write your own, but you'll also have to verify that every machine has the same name and password for the Administrator account, which, again, requires you visit every machine.
Install SMS 2003, or what is MS calling it now? System Configuration Manager?? on a server. Requires a domain anyway...
Convert the network to domain.
Your biggest problem is that every machine has a different admin account. This SEVERELY limits what you can do. They only rememdy for this is a domain environment.
|
|
|
|
|
Thanks for your reply, Dave. Unfortunately, setting up a domain is not possible. And visiting every machine also can't be done (some are in other cities).
Here is what I will do:
1. Create a little .NET 2.0 WinForms app that only says "Hello World from .NET 2.0"
2. Publish it with ClickOnce, configuring the setup to download the framework from the LAN server
3. Add a little code to my app (still in 1.1) to detect if 2.0 is installed, and if not, launch the ClickOnce URL.
And a week or so later, I will deploy the 2.0 version.
Thanks again,
|
|
|
|
|
I have a project where I am using an access database. I have the db in the same directory as the source code so i can adjust the tables and so on, but i want to be able to copy the latest version of the db to the debug directory when i build the project so I dont have to keep copying the file over by hand.
I have been using VS 2005 for developing, and have use dit for years now, but if this functionality exists, it has escaped me all this time. Any suggestions?
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|