|
Good day,I'm trying to deploy my VB.NET application. I decide to use installshield. Everything is fine now. I can install the app and run with no error but there's a weird thing's happening. Even I run my app and things like editing my database or copying files to install directory, nothing is changed when I look at the install directory.Database is empty and no files copied. But if I open the application again, all the changes are still there. Even I uninstall and re-install, the changes is still there.What's more weirder is this doesn't happen if I install it in XP.
|
|
|
|
|
Have the app display it's connectionstring on startup. My guess would be that they're pointing to different places.
Bastard Programmer from Hell
|
|
|
|
|
You realize that everything under Program Files is ReadOnly for normal users on Win Vista and 7? If you deployed your database files to somewhere under Program Files, they wont work because you need Write permissions to the files. Put them somewhere User friendly, like CommonAppData.
|
|
|
|
|
how to delete data from colum in datagridview
i want a clum empty
|
|
|
|
|
In a bound dataview? What have you tried?
FWIW, the documentation on the DataGridView can be found here[^]
Bastard Programmer from Hell
|
|
|
|
|
To clear data from each cell of a column of DataGridView, there is no method in DataGridViewColumn class. A method like the following can be used to clear all the cells of a column
Public Sub ClearColumn(column As DataGridViewColumn)
For Each row As DataGridViewRow In column.DataGridView.Rows
row.Cells(column.Index).Value = Nothing
Next
End Sub
|
|
|
|
|
In the RowDataBoundEvent , set the value of that cell to empty.
potected void grid_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView drView = (DataRowView)e.Row.DataItem;
DataRow drRow = drView.Row;
e.Row.Cells[7].Value = string.empty;
}
}
|
|
|
|
|
|
Your php code retrieves the "full" URL for the song id of 2472. Then it sends a "307 Temporary Redirect" message including the full URL to the client, which in turn will then contact the other server with that URL.
|
|
|
|
|
Hi everyone,
I have a textbox which holds numbers like e.g., xxxxxx
I wonder how to change that value entered by the user to xx-xx-xx. I'm trying several regular expressions like: OpNumbers.Replace(OpNumbers, "^(\d{6}|(\d{2}-\d{2}-\{2}))$") and also :
Format(lblOPReferenceNumber.Text.Trim, "## - ## - ##").
I'm not getting the output that need it. I'm pretty sure that I might be doing something wrong at some point.
Thank you for you help.
Venecos
|
|
|
|
|
Do you need leading zeros? Then you must use "0" instead of "#".
Dim number as int = int.Parse(textbox1.Text)
Dim result as string = number.ToString("00 - 00 - 00")
Dim result2 as string = number.ToString("## - ## - ##")
|
|
|
|
|
Alternatively, if you want to show the user the fomatted text, the MaskedTextBox control with
Mask property set as below may be used
MaskTextBox1.Mask = "00 - 00 - 00"
maskedTextBox1.TextMaskFormat = MaskFormat.IncludePromptAndLiterals
string maskedText = maskedTextBox1.Text
maskedText = maskedText.Replace("_","0")
The mask characters are explained here
http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask.aspx[^]
|
|
|
|
|
i want to create 2 combobox
st combobox = country
nd combobox = district/region
st combobox is the country combobox. when i choose one country , the nd combobox will change / auto populate all the region based on the selected country .
all the data is populate from access database
. im new to VB . appreciate ur help 
|
|
|
|
|
A combobox has an event for the change of a selection, e.g. SelectionChanged or SelectedIndexChanged . In the corresponding event handler, get the SelectedItem of the combobox. Caution: it might be "Nothing". If it is not Nothing, query your database to get the regions. Make the regions combobox empty (e.g. comboregions.Items.Clear() ), and fill the new data into it. You could then set the SelectedIndex to 0 to preselect the first item in the combobox.
|
|
|
|
|
The solution given by Bernhard Hiller works fine.
Another option is in the DataSet designer or programmatically, create a relation between Country and Region DataTables like
Relation Name: CountryRegion
Parent Table: Country, primary key: CountryID
Child Table: Region, Foreign key: CountryID
Dim CountryBindingSource As New BindingSource(DataSet1, "Country")
Dim RegionBindingSource As New BindingSource(CountryBindingSource, "CountryRegion")
comboBox1.DataSource = CountryBindingSource
comboBox1.DisplayMember = "Country"
comboBox1.ValueMember = "CountryID"
comboBox2.DataSource = RegionBindingSource
comboBox2.DisplayMember = "Region"
comboBox2.ValueMember = "RegionID"
|
|
|
|
|
I have this assignment but I'm not getting any ideas. I have to create a program which sort people into a specified number of groups. I need help.
|
|
|
|
|
You may not get any ideas if you dont explain the problem properly.
On what basis do you have to sort the people into groups? without this it would be difficult to provide any help.
Every new day is another chance to change your life.
|
|
|
|
|
the user states how many groups he wants.
|
|
|
|
|
I would create a Person class that contains properties for each aspect I will need to group by. Then I could use LinQ to group by any property. For more help you will need to provide more information, I'm afraid.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
we have to design a program that will accept a list of names of people and the group them into a number of groups the user chooses.
|
|
|
|
|
Does this mean that the groups should each have a certain equal number of people in them, or must they be grouped by name or what ? You need to be more specific.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Ya, the user specifies them and the program does it. the user will specify the number of groups he wants and the program will accept the list and group them.
|
|
|
|
|
You will get help Marvolo,just explain a bit more. What & how exactly you need it.
|
|
|
|
|
the user specifies them and the program does it. the user will specify the number of groups he wants and the program will accept the list and group them.
|
|
|
|
|