VS 2008 Get The Zorder Of An Item?
Aug 27, 2009how to get the Zorder of an item -
eg the item at the front could be 1 the next item behind it could be 2 and so forth.
I don't mind if the numbers start with 1 as the back most item either
how to get the Zorder of an item -
eg the item at the front could be 1 the next item behind it could be 2 and so forth.
I don't mind if the numbers start with 1 as the back most item either
Looking for a way to be notified when any windows ZOrder changes?Zorder refers to the layering of the windows. a zorder of 0 is at the bottom. I don't know any other way to ask this question.
View 1 Repliesim trying to find the top most window other than my form or its parent form...Background:Im writing software for a TS-MFD (touch screen - Multi function display), it has a docked menu bar at the bottom with the option to pull up an onscreen keyboard. Now the keyboard ive written and works well but the only drawback is i need to specify what window to send the keys too, be it inside my own application or a 3rd party app such as notepad. I believe the answer lies an recursively looping through GetForegroundWindow() from user32.dll and ignoring "Keyboard" and "MenuBar", but I dont know how to advance to the next top most window, i only know how to get the top window...so my window order is likely Keyboard,Menubar,(then the window im trying to grab)?
View 7 RepliesI am creating an application for Windows Mobile 6 in Visual Studio 2005. I have a TabStrip on the main form. There are 2 buttons i want at the top of the tab strip, but i don't want them to be part of it. I need the same buttons to show when the tabs change. I used to use the ZOrder function or Parent function but can't see how to do it in the new version. Any ideas?
View 4 RepliesRegarding my college project. i'm working on a sales system . i have a form which consist of all the following information( item code , item name , item price , quantity of item ) which is display using a data grid . data input by user using text box and all this information will be stored in a database(sales database) i'm using ms access 2007. the grand total will be displayed in a text box . and amount paid will be input in a text box too , my major problem now is how to i create a reciept that will have all this information of the purcase. i have a reciept button . what the next step ? i dont have any idea how to get the reciept done.
Imports System.Data.OleDb
Public Class Form5
Dim con As New OleDbConnection
[CODE].......................
I've been trying to feed a multi line textbox into a string array then check item by item if a string contains part of it.
[Code]...
So i've to write this program whose purpose it this:
Purpose: The user enters the item name and amount of the item purchased. The program calculates the tax for the item and the final total, and then displays these values. Tax on all items will be 7.75%.
And so far i've this code but it's not working:
' Program: Cash Register
' Author: Nidhi Shah
' Date: February 2, 2010
' Purpose: The Cash Register Window application will
' computer the tax and the final cost of a
' purchased item.
Option Strict On
Public Class frmCashRegister
' Tax per item - used in multiple procedures
Const _cdecTaxPerItem As Decimal = 0.0775D
[CODE]...
I am using VS 2008 (VB) with an XP machine. I exported an item template and now my computer locks up when I attempt to add a new item to my project. I tried deleting the exported template but the same thing happens.
View 4 RepliesI have a list box on the form which functions as a copy/paste. When you copy something, it is automatically added to the list box as a "clipboard helper". Here is the problem,however: if the text is more than 1 line, the list box does not show all the text.It ends up looking messy.So getting back to my question, is it possible to make the list box item height for an item depending on the amount of lines that item contains?This is a one line sentence in the list box and should take up one line.This is a multi line sentence in the list box and should take up two lines for item height.
View 11 RepliesIn my application I have a listbox and SelectionMode should be MultiSimple because users need to see which items they selected. In another tab we have another listbox this one should show all the selection users had done in first tab. Private Sub
[Code]....
I have been working on an app that was basically a vb6 app but had to be changed and I did it all using VB 2008. works well, great. One of the problems that I had was to work on different groupboxes or frames. Since they are layered on top of each other, working on one frame would mess up the others. Eventually it all went okay. but now if i want to add another item in the menu and hence add another groupbox (or frame) in the same app - it would definitely be a nightmare.
[Code]....
Is it possible to compare 2 dataitems and then display the result depending on the 2 values using if eval at run time?I have a ListView with databound controls. 1 is RedemptionChoice and the 2 is CashBack.When 1 reads "0" and 2 reads > 0.00 the output should read AUTO I have read many comments online and most point to create a new function within code behind but have found it impossible to implement on my own.I tried this as a test on the actual page:
<%# If(Eval("CashBackRedemptionChoice").Equals("0") & Eval("[CashBack]").Equals("0.00"), "Auto Cashback"))%>
2 needs to be greater than 0.00 for AUTO to be displayed. Hence I know this would not work. Just trying to give an example of what I would like.
Just a simple question, i have a combo box with the data source defined.The combo box display member it's a number, and i need to display a string in the first position of the combo, something like "Select", or just to show the user that nothing it's selected.It's possible? Or just changing the database column to string?
View 6 Repliesmy code is
Dim rows() As Data.DataRow
rows = DataSet1.Tables(0).Select("unitname='Ltr'")
dim i as integer
for i = 0 to rows.count -1
MsgBox(rows(i).item(0)) '' HERE ERROR ITEM PROPERTY NOT FOUND
next
so i want a specific item in rows like this code we use in dataset...DSet.Tables(0).Rows(1).Item(1)
Okay so i have one list box and inside of it i have 4 items.Okay so what i want to do is.For example If the user selects item 1 i want msg to pop-up and say 1.
View 2 RepliesI'm newbies here..Still Study so this is college Last Assignment.currently i stuck with this problem..
Using VS 2008
DB Access 2007
"Supplier Name" is primary key
and got few item in 1 Supplier..how to code the many item in 1 supplier?
without redundant the "Supplier Name"
Today I wish for when I add my item to my listbox, Display my disired Icon from an ImageList!have seen this in many applications and I dont think it will be hard
View 3 Replieshave this code that gets the first item from the listbox
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = ListBox1.Items(0).ToString
[code].....
I have created a main windows form and then I have created another windows form but I cant work out how to load the 2nd form. I am using a button and would like to know how to load the 2nd windows form via that button.
View 8 RepliesHow would I make it so when i read a text file for each line that is in the text file is a new item in a listview?
View 6 RepliesAt first i was gonna use a foldertree with checkbox's but ive decided thats a bit beyond my skill level so ive decided to go with a listbox.now i have a listbox and ive added some lines to it, basically just C: and D: now i wanna use them lines in the listbox in the following command.vb My.Computer.FileSystem.CopyDirectory("C:SourceDirectory", "D:DestinationDirectory") so i wanna run that command for each item in the listbox and use the text in the listbox as the source, and eventually ill try add a
View 3 RepliesI'm having some difficulty with a sorted & grouped listbox in WPF vb.net 3.5 that has an items source bound to an ObservableCollection.
What I want to be able to do is to retrieve a piece of data from the ObservableCollection items source depending on what item in the listbox the user has selected.I've almost got it working but because the listbox is sorted it does not match the index of the items source.
[code]...
As I previously mentioned, because the lstBox is sorted and also grouped the index's don't match up.Does anyone know how I can get the correct information I want from the List Source depending on the selected item in the list box?
the disply color buttons click even procedure shold display the color of the item whose item number is entered. all item numbers contail eactly five characters(12b12). my problem is i can not get it to disply a color in the lblcolor control. it displays the item number.
[Code]...
I have used the command:
For Each Proc as process in process.getprocesses
Combobox1.Items.Add(Proc.MainWindowTitle)
to populate a combo box with the list of current process windows, however for every process that doesnt have a main window title there is a blank space, is there a way that I could tell it to not insert the item if it's mainwindowtitle field is blank?
How someone would select an item from a list box and click a button and have that item go into another listbox with it's price? I seem to be stuck on this part.
Here's my code:
I want to select the first option from the first listbox and I want to put it into another listbox along with the price of that item on the same line in the listbox. I can't seem to figure out how to that.
Public Class Form1
Const dcmPRICE_STRESS As Decimal = CDec(595.0)
Const dcmPRICE_TIME_MANAGMENT As Decimal = 695
[CODE]...
i want to make program like this:
if DataGridView1.item(SID).value = DataGridView2.item(SID).value then
color=green
else
color=red
i want all item list in DataGridView2.item(SID).value will be checked.
this is my
Private Sub PSCDataGridView_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles PSCDataGridView.CellFormatting
Dim myBL As String
[code]....
I am filling a listview control with a big number of items but i came across an problem, the repeated values. In those items i use .Text and .Tag so i can relate some hidden values per item. I have been trying to use the items.find() with no luck since it looks like to search for keys, which i don't really have. Every item has different .Tag values but it can happens that they have the same .Text Is there any way to remove or just not add items based on a .Text search in the ListView?
View 13 RepliesI have a button that when pressed I want it to remove all the ending urls that have ending with / just to remove / item on the end so it will live me a url with out / on the end if u know what I mean. [Code]
View 26 RepliesOk, I'm trying to set a value to each item in my combobox, but I don't know how. Lets say I have ComboBox1 that contains the letter A-Z, 26 items, I would want to set each letter a specific number, then use that number for something else. Like, if I set the letter A to equal the number 4, and the user has chosen A in the combo, I could do something like make a Msgbox say that value(4). Does that make sense?
View 3 RepliesWhat would be the easyest way to get the item for this html?
<input type="text" style="width: 315px;" size="32" value="" name="users_tli" class="box_new">
I tried
WebBrowser1.Document.GetElementsByTagName("users_tli").Item("TEXT").SetAttribute("value", Textbox1.Text)
and got nothing.