|
i am newbie to VB .net
I am working on Visual Basics 2005
I am creating a Vb form with user login details
i want to get the text entered in the textbox in to a remote server
so could anyone help me in doing this \
thank you in advance
|
|
|
|
|
I suggest you read the link in my sig. I also suggest that if you're a newbie, that you either talk to your teacher, or if you're teaching yourself, choose simpler tasks to start with. Of course you're not doing paid work, that would make you a thief, right ?
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
Hey guys, i am currently working on a form that looks like this:
http://img291.imageshack.us/my.php?image=tbs.jpg[^]
When i click on any textboxes under Plan Code, the plan form will pop up.
When i click on a field in lbType, field will appear in my lbCode.
When i click on a field lbCode, i want to be able to insert information into the textboxes.
The problem i have is that i can only get the form to work for the first row of textboxes. My code looks like this -
Private Sub lbcode_selectchanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbCode.DoubleClick
addNewClientPolicy.TextBox1.Text = Me.lbCode.SelectedItem
addNewClientPolicy.TextBox17.Text = Me.lblText.Text
addNewClientPolicy.TextBox25.Text = Me.lbType.SelectedItem
End Sub
This means that everytime the plan form pops up, it will insert the data into the first row of textboxes (which are 1,17,25).
Is there anyway i can edit the code so that the information inserted into textboxes depends on which plancode textbox i click?
I thought it'd be rather stupid to create 7 plan forms for each textbox
Thanks in advance!
|
|
|
|
|
It sounds like you are looking for something like this?
Private Sub txtMyTextbox_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1.Click, Textbox2.Click, Textbox3.Click
Dim tmp As TextBox = CType(sender, TextBox)
tmp.Text = "New text for the textbox that was clicked"
End Sub
|
|
|
|
|
Hello all
I want to create very small windows apps without using windows forms and after finishing this application when i install this newly created win app it should add one more item in windows context menu i meas when we right click on desktop it shows contex menus so context menu for this app should be added in that right click context menu
any help how and where to start
waiting for your kind help
thanks
|
|
|
|
|
Context menu for what app??
|
|
|
|
|
Hi dave
thanks for your rep.
i think i have missed something. I want to add context menu item so for that do i need to create any programm in vb.net so after adding new context menu item user can rename it some thing like that
waiting for your kind rep.
have a nice day
|
|
|
|
|
I will not ask a third time. Add to the context menu for which app?
|
|
|
|
|
Try searching the articles. Here is one[^] I found that sounds like what you are asking for.
|
|
|
|
|
Hello sir
thanks for your rep.
You are very close i have tried this app and it's add context menu item but not on desktop it's only shows new menu item if i right click on any file or foler but this is realy going to helps a lot
thanks again ![Wink | ;)](https://www.codeproject.com/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
I have a solitaire game where I have 52 cards lined up in design view. I'm wondering (in design view) what to set the oledragmode, oledropmode, and dragmode elements to; automatic? manual?
What's happening with my code below is that I only want 12 hearts cards to be dragged to blank card positions on the right of the screen. However, all the cards drag and all cards, including hearts cards can only drop onto the 13th blank card on the right. Not the 0 to 12. Should I write some code to set or clear the dragmodes and what do I do in design mode?
I only want the first 12 cards of the 52 cards to be dragged; they are hearts cards and I want 12 blank cards on the right to be the hearts suit only. Pardon me; I'm new to this; Also Much appreciation in advance.
Private Sub Hearts_DragDrop(Index As Integer, Source As Control, X As Single, Y As Single)
Dim HeartsIndex As Integer
Image(0).Picture = Hearts(0).Picture
Image(1).Picture = Hearts(1).Picture
Image(2).Picture = Hearts(2).Picture
Image(3).Picture = Hearts(3).Picture
Image(4).Picture = Hearts(4).Picture
Image(5).Picture = Hearts(5).Picture
Image(6).Picture = Hearts(6).Picture
Image(7).Picture = Hearts(7).Picture
Image(8).Picture = Hearts(8).Picture
Image(9).Picture = Hearts(9).Picture
Image(10).Picture = Hearts(10).Picture
Image(11).Picture = Hearts(11).Picture
Image(12).Picture = Hearts(12).Picture
For Index = 0 To 12
For HeartsIndex = 0 To 12
If Image1(Index).Picture = Hearts(HeartsIndex).Picture Then
Hearts(HeartsIndex).Picture = Source(HeartsIndex).Picture
Image1(Index).Drag vbEndDrag
MsgBox ("You're right")
Exit Sub
Else
Image1(Index).Drag vbCancel
MsgBox ("You're Wrong")
Exit Sub
End If
Next HeartsIndex
Next Index
End Sub
|
|
|
|
|
I don't think there is a standard about whether or not you set a property at design time or if you do it in code. It's up to you. Sounds like you just need to play with the properties until you find what you are looking for. You need to make sure the properties are initially set when loading the form, which can be done either in the load event or set at design time. Then think about when these properties need to change during run time and code the proper events.
Is this what you were asking?
|
|
|
|
|
Yes, and thank you. However, I need to gather more info. I'm still a bit confused. I know I'd like to set the properties at design time and set them to remain that way throughout the entire program.
Here it is: 52 cards on left; 12 of which I ONLY want to match 12 cards on the right when dropped. 52 cards get randomized, and I pick out one by one those 12 cards and drop it on a spot on the right. It works. Now here is what is wrong: ALL the cards, including those 12 cards drop on the right; I was only allowing in my code in the IF statement that when one of the 12 cards of the heart suit on the left = the heart suit on the right, only those cards can be dropped, not every card of the other suits.
Second problem. Only the last position Hearts(12) on the right is taking cards. The rest of the 12 position won't take any cards.
Any idea on WHAT to set on those drag mode properties at design time? I've played around and have gotten nowhere.
Thank you in advance
|
|
|
|
|
I don't know if there is a way to do this or not but I would like to monitors any changes to a specific database table. The database in question would be Oracle.
I have done numerous searched on the net but either my search text sucks or there is no solution...
What I want is to have is an app that would do a check to see if the table has changed and if so it sends an email to a user.
The only thing I need to figured out is how to capture the edits/changes to the database table logic... Any suggestions?
|
|
|
|
|
|
VS.Net 2005
I am displaying data in a datagrid and it looks great.
I want to have 1 column be comment column, that is always editable.
I tried to use a TemplateColumn, EditItemColumn, TextBox implementation
But everything I read says I have to have an Edit Button for each row.
That will waist the time of the user to click on every column before they can enter data. Every row requires that data be entered, how do I set the entire column to be a textbox ready for editing?
Thanks, Chuck...
Chuck...
|
|
|
|
|
Are you using a DataGridView control? If so then each column has a ReadOnly property you can use.
|
|
|
|
|
Thanks for your reply, I'm actually using just the DataGrid Control.
Can you send me a sample of the difference and how to set and get the edited data back to the application, please?
Chuck..
|
|
|
|
|
Sorry my friend but I am fairly new to programming and haven't had any experience using the DataGrid control, I've only used the DataGridView control. To get data out of the DataGridView can depend on how you populate the grid, if the grid is databound then you can get the data from the data source, otherwise using something like:
dgrMyGrid.Rows(2).Cells("Comments").Value will get data from the column named 'Comments' on the 3rd row for the DataGridView control, may well be different for the DataGrid control but a little Googling will explain all!
Sorry I can't be of more help.
|
|
|
|
|
Thanks, I'll try to find out if DataGridView is part of .net 2005
Chuck
|
|
|
|
|
Yes, it is. The DataGridView control replaced the DataGrid control that was in .NET 1.0 and 1.1. It's still in the .NET Framework, just there for backwards compatibility with older code.
If there is no specific requirement to use the old DataGrid control, drop it and use the DataGridView. You're life gets much easier and there is more support out on the web for it.
|
|
|
|
|
Is DataGridView available for WebForms?
|
|
|
|
|
If you're making a WebForms app, no. The WebForm grid control is called the GridView control.
|
|
|
|
|
Thanks Dave...
I created this asp code, with ReadOnly=False on the QtyLoaded field and it still will not let me edit this field. Is there something I am missing here?
-----------------------
<asp:gridview id="GridView1" autogeneratecolumns="False" runat="server" &="">
<columns>
<asp:boundfield datafield="QtyRequired" headertext="QtyRequired" readonly="True">
<asp:boundfield datafield="QtyUsed" headertext="Qty Used" ><="" asp:boundfield="">
<asp:boundfield datafield="QtyRemaining" headertext="Qty Remaining" ><="" asp:boundfield="">
<asp:boundfield datafield="QtyLoaded" headertext="Qty Loaded" readonly="False">
<asp:boundfield datafield="PartNumberDesc" headertext="Description" ><="" asp:boundfield="">
<asp:boundfield datafield="PartNumber" headertext="Part Number"> </asp:BoundField>
-----------
Chuck
|
|
|
|
|
That confirms it. You're in the wrong forum. Ask this in the ASP.NET forum. Your question has nothing to do with VB.NET, but rather the functionality of an ASP.NET control.
|
|
|
|