|
Oops, sorry. Here's the question:
What are the differences amongst the 3 options? Which format should I save my project/solution in?
I'm quite new to ASP.NET web apps. Any help is appreciated. Thanks!
|*Ooraclec*|
|
|
|
|
|
For an English project, it really doesn't matter. By default, your project will be saved with UTF-8 Encoding. If you were making a website that used 16-bit (or larger) character, like Hebrew, Chinese, Arabic, or Japanese, then your would use the Unicode or UTF-16 Encoding.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am running one application and i want when user minimize that package the icon should appear in system tray and when user bouble click that icon in system tray the package will maximized.
How i can do that? Can any body gime some tips.
|
|
|
|
|
You have to include a NotifyIcon in your application. See this[^] for the docs on the component class.
You'll also have to change the Form's ShowInTaskbar property to False. When the user Minimizes the Form, your NotifyIcon will be the only way the user can restore the form.
You'll then have to handle the NotifyIcon's DoubleClick event and set the Form's WindowState to FormWindowState.Normal and then Show() the Form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there any way to select Root element?
VB6
|
|
|
|
|
Define "Root element". You can have multiple root TreeNodes in the Nodes collection, any of which are selectable. Can you be a bit more specific about what your trying to accomplish?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
just like "root element" in xml
|
|
|
|
|
I know it's just like the root element in XML, but the TreeView has no equivelent. That's why I asked you to be more specific about what your trying to accomplish. All the nodes in the TreeView control are contained in the Nodes property of the TreeView. Each Node has a property which determines wheather or not that node is a child and what its parent node is. If Parent returns Nothing, this node is a root node.
So, I'll ask this again. What are you trying to accomplish by selecting the root node(s) of a TreeView control? How do you want to select this node? By clicking on it or by doing what to it in code?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
to select the root node in the TreeView control
Dim rnode As Node
Set rnode = TreeView1.Nodes(0).Root
now the rnode is set with the root node of your treeview control.
thanx,
ravi
|
|
|
|
|
.
modified 1-Dec-11 1:37am.
|
|
|
|
|
Best way to do it is by setting a reference to Excel (Project->References), then manipulate it using the excel object model
Or treat it like a datasource, and run SQL against it...
Look on MSDN for further info, or mail me at the addr below with what you have, and can take a look
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi, does any one know how to write the code to detect shares session in windows 2000 or windows xp when there is a change when another user access our share resource over the network? The code could be vb6 or vb.net. Thank you!
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Are you looking at monitoring changes in the Share, like changes in security, permissions, adding a share or removing one, or are you looking ar monitoring the files under the share for changes?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you very much for you valuable question. Of course my intention is monitoring the value of the other user when they access to our share file.It is not relate to security, permission....
When you working with "Computer Management" under the share and session folder, the value alawys change based onthe. I need to control that value in vb6 or vb.net.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Roath Kanel wrote:
Of course my intention is monitoring the value of the other user when they access to our share file.It is not relate to security, permission....
When you working with "Computer Management" under the share and session folder, the value alawys change based onthe. I need to control that value in vb6 or vb.net.
Value? What value? "based onthe"? Based on what? There are no "value"'s there so I don't know what your talking about. Are you talking about restricting the number of users who can attach to the Share? Or are you talking about controlling the number of users opening a file under a Share?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I’m sorry that I did not give you clear enough information. Let get back to Computer Management in windows xp or 2k. Under “System Tools” there will be a node call “Shares Folders”. Under the “Shares Folders” nodes there are 3 sub nodes call “Shares”, “Sessions” and “Open Files”. Look at the right pane after you click on the “Shares” node, there will be a column label “# Client Connections”. This column represent the value of the user that has connect to your computer to access the network resources. If you click on the “Sessions” folder there will be a column label “User” at the right pane. This column will list detail user information such as computer name, connected time…
So, instead of open computer management and trace an activities, I would like to write an application that could will notify me any time if there is a user connect or disconnect from my network resource, and also the name of the user or machine name that connect our computer. The code could be written in vb6 or vb.net
Thank you!
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
How to make a form displaying the time according to our system date and time? How to check whether the date has changed or not? Or how to check whether the time is on specified time, e.g. check whether the time is 10:00 a.m or not?
Thanks for yout time....
Learning .NET
|
|
|
|
|
mythinky wrote:
How to make a form displaying the time according to our system date and time?
Drop a TextBox or a Label control on the form:
TextBox1.Text = DateTime.Now().ToString()
mythinky wrote:
How to check whether the date has changed or not?
There is no event that fires when the System Date/Time changes. You have to keep track of the Date when your app starts, then once in a while, say every minute, check the current system Date against the stored version. If the current Date is lower than the one where your app started, then the date changed. If the current date is greater than the stored date, then you have to check to see if midnight rolled over from the last time you checked. If it has not rolled over midnight, then the date changed.
mythinky wrote:
how to check whether the time is on specified time, e.g. check whether the time is 10:00 a.m or not
This code will check to see if it is 10:00am on the current date on which it is run:
Dim currentTime As DateTime = DateTime.Now()
Dim checkTime As New DateTime(currentTime.Year, _
currentTime.Month, _
currentTime.Day, _
10, 0, 0)
If DateTime.Compare(currentTime, checkTime) = 0 Then
' The current time is 10:00am today...
Else
' The current time is NOT 10:00am today...
End If
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello All,
I need to create a macro in excel that determines all the possible unique permutations of a set of numbers. It is simple in concept but in my opinion it is not simple to code. Basically I want to do the following, the user enters the various number in seperate cells for the set(maximum number entered would be twelve), then enter the the maximum numbers to use in a squence from the set, i.e. determine all the pairs (2 numbers) within a set of three numbers. The program will then calculate all the unique permutations in the rows below (placing each number within a seperate cell within that row). Unique meaning that if 1,3 will appear then 3,1 would not since 1 and 3 are already combined.
Here is a simple visual of what I would like to do for the number of pairs within a set of three numbers.
Squence number (Choose a number 1 to 12 for the grouping):
Row 1 Cell 1: 2
Set of Numbers (Maximum of 12 Numbers):
Row 2 Cell 1 : 1 Row 2 Cell 2 : 2 Row 2 Cell 3 : 3
Program output should be the following:
Row 4 Cell 1 : 1 Row 4 Cell 2 : 2
Row 5 Cell 1 : 1 Row 5 Cell 2 : 3
Row 6 Cell 1 : 2 Row 6 Cell 2 : 3
I hope that this makes sense, but if anything needs clarification, please let me know. I hope you all can help me out. Thanks in advance for your help with this.
John Breen
|
|
|
|
|
For an algorithm like that, you'll have better luck searchin the web for existing code. Try searching Google or Yahoo for "permutations source code" and you'll find a bunch of examples. Nothing in Excel specifically the way you want it so you'll have to adapt the code to what you want.
This[^] one looked pretty interesting.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
There is another really good resource for all microsoft products you might want to try.
Every year Microsoft names a group of people as MVP's, or Most Valuable Professionals, in a specific product line.
The link below covers all their products and includes links to 25 Excel MVP sites:
Microsoft MVP Sites
Still coaxing software out of the can after all these years...
|
|
|
|
|
I did this once a long time ago with VB6 and I just can’t seem to remember how to go about the whole thing.
What I would like to do is transfer the value of several RadioButton’s (False or True) to a *.txt file. Then, I would like to be able to re-open the application and have it read the *.txt file and set the RadioButton values to reflect what was previously entered.
… or is there a better way to save these values?
Thanks.
Brad
|
|
|
|
|
You should look at the PropertyBag object which was designed for percisely this.
hope this helps,
sivilian
|
|
|
|
|
Is it possible to execute a function IF a comment (cell comment) was inserted on a particular worksheet?
My application dynamically creates new worksheets, and data is constantly changed. I need to be able to call a function regardless of the worksheet after a user enters a cell comment.
-----
My initial idea was to try and figure out a way to programatically add code to the worksheet object as it is created.. Although I wasnt able to figure out how to do so. (Worksheet object, as in the code that handles the worksheet events)
If anyone can tell me how to "programatically" add code to the worksheet object, that would also help.
__________________
|
|
|
|
|
Well, after trying many things, I have finally come up with a solution to this problem. If anyone else is interested, or if anyone searches for this topic in the future, here is what i did to solve my problem.
The following code was inserted in the "ThisWorkbook" Excel object:
Code:
Dim PrevCommentCount As Integer
Dim CurrCommentCount As Integer
Dim CWSName As String
Dim PWSName As String
'Sh corresponds to current sheet
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
CWSName = Sh.Name
CurrCommentCount = Sh.Comments.Count
End Sub
'Sh corresponds to previous sheet
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
PWSName = Sh.Name
PrevCommentCount = Sh.Comments.Count
If PrevCommentCount <> CurrCommentCount And PWSName = CWSName Then
Call Utils.UpdateCommentForSheet(Sh.Name)
End If
End Sub
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If Sh.Comments.Count <> CurrCommentCount Then
Call Utils.UpdateCommentForSheet(Sh.Name)
CurrCommentCount = Sh.Comments.Count
End If
End Sub Basically, what happens is. when you select a new worksheet, it will store the number of comments found in that worksheet.
Once a new range is selected, or a new worksheet is selected, it will check the number of comments in the worksheet again. If this number is not the same, then a comment was changed.
It probably isn't the most efficient way to do it, although it seems to be the only way if you ask me
If anyone has any other ways to do this let me know.
|
|
|
|