|
josh0476 wrote: I'm a newbie programmer developing a Text Editor with built-in Text-To-Speech Capabilities.
how new is new ? What other projects have you done ?
josh0476 wrote: When I use the Redo() keyword in my RedoToolStripMenuItem_click procedure I get an error saying that "Redo is not a Member of System.Windows.Forms.TextBox".
OK - very new. You can't invent keywords. there is no redo keyword. You need to write your own.
So, you need to keep track of the things you undo, so you can reapply them when you call redo.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i using datagridview to display data. i just have 2 column of record to display it. After i binidng the data inti datagridview,what i can see is the datagridview consist 2 column and remaining is the background of the datagridview.So, how can i do to add another blank column to fill the remaining space inside the datagridview? so the datagridview have 3 column and total width of the 3 column is equal to the width of the datagridview ?
Regards,
Chee ken
|
|
|
|
|
i think you can't add more columns to a binded datagridview, but why don't you set the width of last column to fill the empty space
Vilsad P P
MCTS (Windows Applications) .Net 2.0
|
|
|
|
|
Hey Experts thanks in advance.
I am trying a client server application in vb6 using Winsock. The application works well on system where vb6 is installed but the problem i can't run the applications on clients in which vb6 hasn't been installed.
When i load the application it gives some sort of error message like winsock can't be detected or loaded.
I tried to recover by registering winsock from the command promt using
regsvr32/{path}/winsock.dll but again it can't be registered and error message is displayed "i.e winsock was registered but the entry point can't be detected !
And the application doesn't work
So plz anyone help me. Once again thanks in advance....
Pokhrel Rohit
|
|
|
|
|
Hi I am new to .NET and just started coding in vb.net. I have a form (main form)that has a bound datagridview and when I click on one of the rows, I find the record and display it on a new form(update form). The textboxes in this new form are also bound to the same dataset. When I make changes to this record on this form, I am able to change the actual data in the database, but my row in the datagridview in the previous form does not change. I have to show the previous form to show the changes I made. How do I reflect my changes from my update form to just one row in the datagridview?
Please help! I tried everything, but nothing helps..
Thanks
brenda
|
|
|
|
|
Does anyone know how to select a specific row in a datagrid without having to click on the grey box to the left of each row?
IE if I have a datagrid "My_DataGrid" that looks like below:
Line# Name
1 Bob
2 Joe
3 Mike
If I use the code below and click anyware on the data Grid (Ie on the Joe field) I get UserName = Bob
private Sub My_dataGrid.Click()
dim UserName as string
My_DataGrid.refresh
UserName = My_DataGrid.Colums("Name")
end sub
If I click on the Grey Box to the left of Joe I get UserName = Joe
Any Ideas
|
|
|
|
|
try this
<br />
private Sub My_dataGrid.Click()<br />
dim UserName as string<br />
<br />
'My_DataGrid.refresh<br />
<br />
UserName = My_DataGrid.currentrow.cells(0)value end sub<br />
i hope your name column is first column in the datagrid row otherwise change the index as per your wish
Vilsad P P
MCTS (Windows Applications) .Net 2.0
|
|
|
|
|
Thanks for the feed back.
I am running VB6 and I get an error message "..Method or data member not found"
with the My_DataGrid.currentrow.cells
Any other suggestions
|
|
|
|
|
have a question that i hope someone can help me with.
I have over 25 years experience programming allen bradley,omron,automation direct plc'c, and have always used the hmi software and units that you would purchase from these vendors as well.
I am interested in learning visual basic, and was hoping someone could lead me in the right direction as to what would be a good book, web site etc., that could help someone who has no visual basic experience, learn how to use vb and connect to a plc and read data from the plc.
thanks
|
|
|
|
|
Hi,
I have an application where on a lot of my ASP.NET pages i need to add text boxes which collect First Name, last Name, Age, Company Name etc and has a button which when clicked enters the above mentioned data into the database.It needs to be entered to the same database table all the time.No, I cannot use session info. I wanna know if it is possible to create a custom web control which does this? So I can add it to my tool box and drag and drop onto my pages as and when I need it. I havent seen instances where you can create a control which does db operation. I know you can use User controls(.ascx) but that way, it needs to be included in every project and every one can see the code and know whatz happening behind it. Help is appreciated. Samples are appreciated even more!!!
Regards
RH
|
|
|
|
|
I am trying to run an insert for each row on a datagridview that is selected (checkbox on 0 column index). My problem is that the @articleID parameter is not selected from the correct row. I want the to pick up the articleID from the row that is being iterated through. Looks like the currentrow syntax isn't working. Any suggestions?
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim myCmd As New SqlCommand("sp_Create_NewPriceListLine", MDIParent1.Conn)<br />
myCmd.CommandType = CommandType.StoredProcedure<br />
<br />
For Each Row As DataGridViewRow In Article_searchDataGridView.Rows<br />
Dim include As DataGridViewCheckBoxCell = TryCast(Row.Cells("Select_Article"), DataGridViewCheckBoxCell)<br />
<br />
If Row.Cells("Select_Article").Value = True Then<br />
MDIParent1.Conn.Open()<br />
Dim discountID As SqlParameter = myCmd.Parameters.AddWithValue("@discountID", Me.DiscountIdTextBox1.Text)<br />
discountID.Direction = ParameterDirection.Input<br />
<br />
Dim articleID As SqlParameter = myCmd.Parameters.AddWithValue("@articleID", Me.Article_searchDataGridView.Item(7, Me.Article_searchDataGridView.CurrentRow.Index).Value) 'Me.Article_searchDataGridView.CurrentRow.Index).Value)<br />
articleID.Direction = ParameterDirection.Input<br />
<br />
Dim userID As SqlParameter = myCmd.Parameters.AddWithValue("@userID", MDIParent1.userid)<br />
userID.Direction = ParameterDirection.Input<br />
<br />
Dim myReader As SqlDataReader = myCmd.ExecuteReader()<br />
<br />
myReader.Close()<br />
MDIParent1.Conn.Close()<br />
End If<br />
myCmd.Parameters.Clear()<br />
<br />
Next<br />
End Sub<br />
|
|
|
|
|
Never mind....found the answer
Dim articleID As SqlParameter = myCmd.Parameters.AddWithValue("@articleID", Row.Cells("DataGridViewTextBoxColumn1").Value) 'Me.Article_searchDataGridView.CurrentRow.Index).Value)<br />
articleID.Direction = ParameterDirection.Input
|
|
|
|
|
Hello !
I selected a dropdownlist from tool bar to my project. I am doing a web page with VB.NET. How do I get my dropdownlist item selected doing something without a button? I want, when I click an item in dropdownlist, it should open a new web page. Now all the action needs button.
|
|
|
|
|
I'm not sure what you're asking. Have you tried the SelectedIndexChanged event or the ComboBox.Select method?
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Hi,
set "Autopostback" property to true.
Sherin Iranimose
|
|
|
|
|
Thanks, "Autopostback" really helps !
|
|
|
|
|
In the application I'm currently working on the users don't have admin rights on the network but one of the requirements for the application is for the application to search the Active Directory to ensure the login name provided is valid before adding a new agent. If the searching user needs admin rights, and the users performing this process dont have admin rights, how can I get this to work for them, as it is essential?
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
RLMcCutchen wrote: If the searching user needs admin rights, and the users performing this process dont have admin rights, how can I get this to work for them, as it is essential?
If all you're doing is looking up a user in the directory, you shouldn't need admin rights to do it. If you're creating new users in the directory, that's something totally different. The user will most likely need to have the appropriate rights to create the User object in the target container.
If you're absolutely sure the user is going to need admin rights, they are going to have to have admin rights. You simply can't get around this in your code since all code the user launches is running under their security context, and all the limitations it imposes.
|
|
|
|
|
Dave,
Thanks for your reply. The managers performing this process wont be creating new users in the AD, just in the database (the user is added to the AD via the network admins) so now I know I have no problems. The application simply needs to search the AD to ensure the login they're adding to the database exists for that new agent.
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
Yeah, so long as all you're doing is searching to see if the username exists already, there shouldn't be any issues. That is, of course, unless the Admin's changed the default permissions of the User's doing the searching!
|
|
|
|
|
Ok now Im frustrated
I haver this function to search the AD
Public Shared Function IsValidADLogin(ByVal loginName As String, ByVal givenName As String) As fnStatRtn
Dim oReturn As New fnStatRtn(True)
Dim search As New DirectorySearcher()
Try
search.Filter = String.Format("(&(SAMAccountName={0})(givenName={1}))", loginName, givenName)
search.PropertiesToLoad.Add("cn")
search.PropertiesToLoad.Add("SAMAccountName")
Dim result As SearchResult = search.FindOne()
Dim samaccountname As String = CStr(result.Properties("SAMAccountName")(0))
MsgBox(samaccountname)
If result Is Nothing Then
oReturn.FnCompletedSuccessfully = False
oReturn.colReturnItems.Add("Login Name provided isnt valid. Please try again.")
Else
oReturn.FnCompletedSuccessfully = True
End If
Catch ex As Exception
amaDBHelper.CatchErrors(oReturn, ex, "IsValidADLogin Error")
End Try
Return oReturn
End Function
But when I try to msgbox the value I get a Object reference not set to an instance of an object. error.
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
|
You're joking, right? Think question isn't answerable.
"Save data" is a very generic term and can mean anything. Saving data to what? A file? What kind of file? A database? A file server? An FTP server? Web server? the Registry??, ... What kind of data?? There's so many ways to persist data in som many places that it's impossible to answer your question.
|
|
|
|
|
a data base of some sort..
sorry im new to these things ! im just starting to learn VB from the net and i almost know nothing.. help will be appreciated
|
|
|
|
|
I highly suggest picking up a book on VB.NET for beginners. If you're that new to this, you really need to learn the basics of OOP and the .NET Framework before you try and tackle a project that deals with a database.
|
|
|
|