|
Hi
in the properties section of the text1 control you have an option called
CharacterCasing which is set to Normal by Default. Set this to upper so that when the user types in lower or upper it will display in UPPER Case.
thanks
|
|
|
|
|
hi guys
i am trying to download a file from the server by suplying the correct credentials but am getting a bad username or password error.
the command i am using is
My.Computer.Network.DownloadFile(My.Settings.ServerFile, My.Settings.LocalFile, "username", "password", True, 1000, True)
the username and password supplied is correct.
when i click on start-> run the ip address of the server, it pops up a username and password box. i enter in the exact same credentials and it goes through.
what could be wrong or is there a better way of getting the file from the server onto a local pc
thanks
anoop
|
|
|
|
|
I'm assuming you're talking about grabbing the file from a Windows server.
Try prefixing the domain to the username, "domainName\userName".
|
|
|
|
|
Hi,
thanks for your help,
i have tried that but still same outcome.
is there perhaps another way of doing this i.e. coying a file from the server and providing username and password?
thanks
|
|
|
|
|
Uhh...you already are doing this. You've got the correct method, the trick is to use the correct "domain\username" and "password". If you're downloading a file from a Windows server or workstation, you need to understand how Windows networking works.
If the server is in a domain environment, you need to use an account that the domain recognizes. If the server and workstation that you're code is running on are in different domains, then you need to specify the domain that the server will recognize, usually the same domain the server is in.
Now, there's a catch. If you're logging the workstation in under one account and making connections to the server, you cannot use a seperate account to download the file form the same server.
If the server is in a workgroup environment, then you may have to specify the name of the server as the domain part of the username.
|
|
|
|
|
Hi,
I am doing a project in VB.Net and backend as MySQL.. One of my Forms Contains a Treeview, a Textbox and 2 ComboBoxes. In the first ComboBox i have two predefined values named 'Group', and 'Account'. When i select the Type as 'Group' it should add as a Parent node to the TreeView. And these groups should be updated to the 2nd combo box.
When i select the Type as 'Group' i can be able to add a Child node under the particular Group selected from the 2nd ComboBox.
If the Type is selected as 'Account' it should be added as Child node or sub Child node to that Group.
Sample Flow:
-Group1
| |
| -Account1
| -Sub Group1
| |
| --Account2
-Group2
|
-Account3
Can anyone please help me?? Its very Urgent.
Thanks in Advance
VB.Net
modified on Thursday, March 26, 2009 1:28 AM
|
|
|
|
|
So...what's the question?? I'm assuming your just going to create a new TreeNode object an add it to the Nodes collection of the SelectedNode.
|
|
|
|
|
Hi,
So you got some idea on my requirements right. What i want is, i want to add a child or leaf nodes to the Treeview dynamically by selecting the nodes from the combo boxes.
I have written the code like this..
TreeView.Nodes.Add(cboUnder.SelectedItem).Nodes.Add(txtName.Text)
But using this i am getting the parent node repeatedly.
Please help me in solving the problem.
Thanks
Victoria
VB.Net
|
|
|
|
|
The item you pick in the ComboBox does not correspond to a node in the TreeView. You have to have some mapping between the two. Also, you're looking at Nodes in the root of the Tree, not the node that's Selected in the Tree. You need to use the selected Node in the TreeView, then add it ITS Nodes collection.
MyTreeView.SelectedNode.Nodes.Add(...)
|
|
|
|
|
Hi,
Thanks for your reply..
I was succeeded in inserting the parent nodes and child nodes. When we save that node as a parent node, that parent should be added to this combo box. So when we want a child node to be added to that particular parent, then we can select that parent from the combo box, and then save..
But here i want to add a child node to a child node.. I tried in many ways.. but i couldn't reached. Can you please help me in finding the solution.
Thanks in advance,
Victoria
VB.Net
|
|
|
|
|
OK, you have everything you need to figure it out. Every node is parent node to another collection. So, every child node you add has a Nodes collection, just like the root of the tree. It's up to you how you're going to keep track of which tree node is selected. All you have to do is track which node is selected and add anther node to it's Nodes collection.
|
|
|
|
|
|
Hello,
I'm hoping that someone can help me. I have a DateTimePicker, and I would like it to default to one month prior to the date that the form is opened... I have attached my code, if anyone could help me out I would thank you.
Aaron
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim month As Integer = DateTime.Today.Month
Dim endMonth As Integer = month - 1
TakenDate.SelectedIndex = TakenDate.Items.Count - 2
End Sub
|
|
|
|
|
Can you not use the "Value" of the control?
dateTimePicker1.Value = DateTime.Now.AddMonths(-1)
|
|
|
|
|
|
Noone is going to do your homework for you. If you have difficulties knowing where to begin, I would suggest speaking to your teacher/lecturer/tutor to find out further information.
Give it a go, then if you get stuck with a specific problem in your code, post the code and ask for assistance.
|
|
|
|
|
Hi everyone,
I copy/paste one datagridview from one form to another (different solutions) using two instances of VS 2005.
The target form has the datagridview with all settings, including the DataSet and tableAdapter used by the original form. The datagridview also has all old settings. Everything is fine, it works as expected, with one drawback: every time I make any change in the target form surface, VS tells me that the dataset and the tableadapter are not defined and no longer loads the form in design mode giving errors mention that the dataset and the tableadapter are not defined.
To be able to view the form surface in Design Mode, I have to edit the form.Designer.vb file and replace the references to the dataset and tableadapter as follows to Global:
replace Me.DataSetSyncLog = New MainTabForm.DataSetSyncLog
to Me.DataSetSyncLog = New Global.MainTabForm.DataSetSyncLog
and
replace Me.TAdapter_Log = New MainTabForm.DataSetSyncLogTableAdapters.TAdapter_Log
to Me.TAdapter_Log = New Global.MainTabForm.DataSetSyncLogTableAdapters.TAdapter_Log
Anywhere in the code if I do Me.TAdapter_Log = New MaintabFor.
the Intellisence does not show the table adapter. But it is in the form.
Any ideas on how can I fix it?
Thanks,
Paulo
|
|
|
|
|
I've never tried this, but it sounds like a quirk. Unless the dataset itself (like the .XSD, etc) was copied, how would project 2 know the def. of the dataset, tables, tas, etc?
Probably have to copy over the dataset, which I would argue against. Copying and pasting duplicated code is a bad idea.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Hi Jon,
Thanks for your answer.
Actually the dataset and data source I created in project 2 with the same names as in the project 1 before I copied the datagridview to project 2.
Internally in the project 1 the datagrid was bound to the datasource and it was pasted with all properties set correctly, the columns collection with all settings and etc.
The tableadapter was inserted into the surface of project 2 by VS after I pasted the datagridview, with the same name.
It is strange, ist'n?
Thanks,
Paulo
|
|
|
|
|
I guess if I was going to be really lazy. I'd create a new solution and copy all the source files from project 1 to project 2 (that way nothing is being reduplicated manually or being copied from open instances of VS); personally, this sounds whack. Add in all the existing source files. Change Form1 to whatever you want it to look like. Quick and dirty copied app w/ same functionality your looking for.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I am developing an application in vb.net2008,Sql Server 2005
But there is a problem while running my application on Customer Machine. It throws some security related issues Access Denied or so on....
And also my application does not run in Windows Vista.
I am changing in my app.manifest file like this ........
<?xml version="1.0" encoding="utf-8" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="Sample"
type="win32" />
<description>Sample Manifest Test Application</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<!-- <requestedExecutionLevel level="requireAdministrator" /> -->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<!-- <requestedExecutionLevel level="highestAvailable" /> -->
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
So, What can I do for This , Please help me.
Report post as abusive
<div class="ForumSig">Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)</div>
|
|
|
|
|
I am developing an application in vb.net2008,Sql Server 2005
But there is a problem while running my application on Customer Machine. It throws some security related issues Access Denied or so on....
And also my application does not run in Windows Vista.
I am changing in my app.manifest file like this ........
<br />
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0"><br />
<assemblyidentity version="1.0.0.0"><br />
processorArchitecture="X86"<br />
name="Sample"<br />
type="win32" /><br />
<description>Sample Manifest Test Application</description><br />
<trustinfo xmlns="urn:schemas-microsoft-com:asm.v3"><br />
<security><br />
<requestedprivileges><br />
<!-- <requestedExecutionLevel level="requireAdministrator" /> --><br />
<requestedexecutionlevel level="asInvoker" uiaccess="false" /><br />
<requestedexecutionlevel level="requireAdministrator" uiaccess="false" /><br />
<!-- <requestedExecutionLevel level="highestAvailable" /> --><br />
</requestedprivileges><br />
</security><br />
</trustinfo><br />
</assemblyidentity></assembly>
So, What can I do for This , Please help me.
Report post as abusive
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
I am developing an application in vb.net2008,Sql Server 2005
But there is a problem while running my application on Customer Machine. It throws some security related issues Access Denied or so on....
And also my application does not run in Windows Vista.
I am changing in my app.manifest file like this ........
<
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
<assemblyidentity version="1.0.0.0">
processorArchitecture="X86"
name="Sample"
type="win32" />
<description>Sample Manifest Test Application</description>
<trustinfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedprivileges>
<!-- <requestedExecutionLevel level="requireAdministrator" /> -->
<requestedexecutionlevel level="asInvoker" uiaccess="false" />
<requestedexecutionlevel level="requireAdministrator" uiaccess="false" />
<!-- <requestedExecutionLevel level="highestAvailable" /> -->
</requestedprivileges>
</security>
</trustinfo>
</assemblyidentity></assembly> >
So, What can I do for This , Please help me.
Report post as abusive
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
I am developing an application in vb.net2008,Sql Server 2005
But there is a problem while running my application on Customer Machine. It throws some security related issues Access Denied or so on....
And also my application does not run in Windows Vista.
I am changing in my app.manifest file like this ........
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
<assemblyidentity version="1.0.0.0">
processorArchitecture="X86"
name="Sample"
type="win32" />
<description>Sample Manifest Test Application</description>
<trustinfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedprivileges>
<!-- <requestedExecutionLevel level="requireAdministrator" /> -->
<requestedexecutionlevel level="asInvoker" uiaccess="false" />
<requestedexecutionlevel level="requireAdministrator" uiaccess="false" />
<!-- <requestedExecutionLevel level="highestAvailable" /> -->
</requestedprivileges>
</security>
</trustinfo>
</assemblyidentity></assembly>
So, What can I do for This , Please help me.
Report post as abusive
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
I am developing an application in vb.net2008,Sql Server 2005
But there is a problem while running my application on Customer Machine. It throws some security related issues Access Denied or so on....
And also my application does not run in Windows Vista.
I am changing in my app.manifest file like this ........
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
<assemblyidentity version="1.0.0.0">
processorArchitecture="X86"
name="Sample"
type="win32" />
<description>Sample Manifest Test Application
<trustinfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security>
<requestedprivileges>
<requestedexecutionlevel level="asInvoker" uiaccess="false">
<requestedexecutionlevel level="requireAdministrator" uiaccess="false">
So, What can I do for This , Please help me.
Report post as abusive
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|