|
I don't think about this, thank You, maybe I check when intall application but I don't know how to make this. Are in InstallShield have something?
|
|
|
|
|
You make the .NET Framework 2.0 a prerequisite to your applications installer. In Visual Studio (not the Express Editions!), if you add a Setup project to your solution, this is done automatically. For other installer projects, you'd have to find out what needs to be done according to the documentation for the installer editor package you use.
You might want to start with this this search[^].
|
|
|
|
|
Thank You I will try to use this
|
|
|
|
|
Is it possible to create something similar like a tabcontrol, but without the page selectors at top... Instead, i want nodes to select each page.
The controls must also be dragable from the designer, and into each page, just like with the normal tabcontrol...
I was told i had to use the Activator, and set each nodes tag to its appropriate panel.
However, there are some problems:
1. I cant do anything if i make a usercontrol, and put it in another form, as i cannot touch the controls within the usercontrol.
2. I cant click on a node in the designer (As you can just click on a tabpage, and it changes to that page)
3. The nodes disappear when i close the designer, and open it again. (How do i save/persist the nodes?)
Mockup:
http://img17.imageshack.us/img17/7831/clipboard01md8.png
Now, im not asking anyone to code this for me, i simply need some directions on how to do it, how to get started
Any ideas?
|
|
|
|
|
vigylant wrote: Is it possible to create something similar like a tabcontrol, but without the page selectors at top...
Wouldn't that just be a stack of Panel controls?
vigylant wrote: Instead, i want nodes to select each page.
And a "node" would be?? I don't remember seeing a "Node" control that I can click on.
vigylant wrote: 1. I cant do anything if i make a usercontrol, and put it in another form, as i cannot touch the controls within the usercontrol.
The child controls of a UserControl are not exposed to the designer unless you provide code that exposes this functionality.
vigylant wrote: 2. I cant click on a node in the designer (As you can just click on a tabpage, and it changes to that page)
Again, I have no idea what you mean by "node".
vigylant wrote: 3. The nodes disappear when i close the designer, and open it again. (How do i save/persist the nodes?)
When you drop a control, like a Button, on a form, code is written by the designer to instantiate that control and set it's properties and wire up events, like Caption, Color, Size, Location, Click event handler, ... in the form's formName.Designer.vb file. You expose this functionality from your UserControl by attributing the proper Properties of your UserControl with the DesignerSerializationVisibility[^] attribute.
|
|
|
|
|
By nodes, i mean the nodes of a treeview... This is the only (i think) control that uses nodes :P
Your idea of a simple stack (just lots of panels) sounds doable... Could be messy though ^^
|
|
|
|
|
You could have just said "TreeView" and it would have made perfect sense.
I didn't look at the link you posted because ImageShack is blocked around here.
|
|
|
|
|
Here are some more links: (Same image all of them)
http://xs136.xs.to/xs136/09074/clipboard01md8980.png
http://bildr.no/image/345164.jpeg
http://s5.tinypic.com/2aihpxf.jpg
The red text says:
"Here, i should be able to drag controllers from the visual studio designer, just like a normal tabcontrol"
|
|
|
|
|
I am trying to filter fields in a table that contain percent (%) and apostrophe (') characters. I kow that to filter an apostrophe you need to add another apostrophe (''). However, when a text contains the percent (%) character in combination with an apostrophe (') character, an exception is thrown. Also, when using the % character in a filter string, it will be function as an "*" (fields starting or ending with). I need the % to be considered as a character whenever the % makes part of a string in the field. How can I address these issues?
To explain my question, say I have a table with 6 rows with the strings below in one of its columns
AnyString
AnyString%
AnyString'
AnyString%'
AnyString%AA
AnyString%AA'
The code below and comments explain the issue.
TheTable.Select("Col1 Like 'AnyString%'") 'RETURNS ALL RECORDS STARTING WITH AnyString (TOTAL OF 6). IT IS EXPECTED, BUT NOT WHAT I NEED. I NEED ONLY ONE ROW: AnyString% <br />
<br />
TheTable.Select("Col1 Like 'AnyString%%'")'RETURNS ALL RECORDS STARTING WITH AnyString (TOTAL OF 6). I NEED ONLY ONE ROW: AnyString% <br />
<br />
TheTable.Select("Col1 Like "AnyString%''") 'RESULTS IN AN ERROR. I NEED TO GET AnyString%'<br />
TheTable.Select("Col1 Like 'AnyString%AA'")'RESULTS IN AN ERROR. I NEED TO GET AnyString%AA
So, I need a way to filter the % character as part of the string and not as a start/end with function.
|
|
|
|
|
Any ideas to this post please?
Let me try this. The example is just an ADO table with 6 rows. I just need to figure out the work around to filter a table that may contain the % character as "part of the string" and not be taken as a wildcard.
dim rows() as datarow = table.select("col1 LIKE 'Filter Me%') 'WHERE % IS PART OF THE STRING AND NOT A WILD CARD. THIS LINE SHOULD RETURN ALL RECORDS EQUAL TO "Filter Me%"
I would also need something like this of course
dim rows() as datarow = table.select("col1 LIKE 'Filter Me%*') '* IS THE WILD CARD AND % IS PART OF THE TEXT. THIS LINE SHOULD RETURN ALL RECORDS STARTING WITH Filter Me%
Thanks,
Mauricio
|
|
|
|
|
|
I want to Delete the Duplicate records from a perticular table except the minimum ID of these Duplicate records.............Using Sql Query
|
|
|
|
|
Are you doing this from a VB application or from a database environment? Also, what data is duplicated? Is it the entire row or just certain fields?
If you're doing this from a database application then you'd be better off posting in the database forum, you're more likely to get an answer there.
|
|
|
|
|
I am doing this from vb.net ;
And the Duplicate records are just certain field
not an entire row
|
|
|
|
|
Hi!
i have made a user control with combo box over it. now i want to hide the BorderStyle property of the user control so that end user could not change this property. how can i achieve this functionality?
|
|
|
|
|
You need to 'shadow' the BorderStyle property in your control, then set property attributes to hide it from the VS property editor, e.g.
<Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Public Shadows Property BorderStyle() As BorderStyle
Get
Return MyBase.BorderStyle
End Get
Set(ByVal value As BorderStyle)
MyBase.BorderStyle = value
End Set
End Property
The Browsable attributes hides the property from the VS editor, the DesignerSerializationVisibility atrtibute stop the VS designer generating code for the property in the InitialiseComponent method. You need to use the Shadows keyword in the property def to stop the compiler generating a warning.
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Thanks a lot dear! its working fine.
|
|
|
|
|
Please tell me one thing. how can i add summary detail for my user control property? the way you can see for anyother property and methods and even for events in objectbrowser.
|
|
|
|
|
Hi, use the Description attribute. You may also want to check out the Category and DefaultValue attributes, e.g.
<Description("example property"), DefaultValue(1), Category("Testing")>
All these attributes are in the System.ComponentModel namespace
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
hi to all,
I want to get last inserted id from a particular table,
how i write the sql query.....
|
|
|
|
|
Normally, you wouldn't do this at all. You let the database keep track of and assign the ID itself when you create a record.
Why? Well, say you have 2 clients accessing the database at the same time. They both execute that little function that returns the last ID used and they both get the same ID number. Then, they both generate the next logical ID number and try to use it. Boom. You either just corrupted your data because you don't have any constraints on the key column or you just got an exception thrown back in your face about using the same key more than one in a table.
|
|
|
|
|
Although you have 3 remarkable haphazard in your example, but they are acceptable
Every table should have unique key (PK), that key is usually an Autoinc field type, when insert new record, the table will automatically generate the next ID to be used for the next client.
But very often, you need to make your own sequence number need to be written in the table, and you can usually do that by creating a table (numbering) which store in it the next ID for (let say new invoice) and you can luck this record and prevent any one from accessing this record and the user get his ID and unlock the row.
My point is, you will not let the database generate new ID for you in every situation.
Samir R. Ibrahim
modified on Friday, February 13, 2009 7:50 AM
|
|
|
|
|
True, but locking records manually is VERY problematic if not done with the utmost of care. Most newbies asking questions around here have no idea what they're doing, so using a solution like this is going to be beyond them.
|
|
|
|
|
I understood what you want to say.
Regards.
Samir R. Ibrahim
|
|
|
|
|
What has that to do with VB.Net?
SELECT @@IDENTITY returns the last inserted primary key.
|
|
|
|