.net - Unable To Perform RoutedEventHandler?
Nov 14, 2011
I have loop to create a column of button and now i wish to implemented the eventhandler into all the buttons but is not working. The iteration to create a column of button
[code]...
Most of the solutions were built using C# with silverlight and they seem to be working great. While i having problem by using VB.NET with silverlight
View 1 Replies
ADVERTISEMENT
Nov 4, 2009
this is the code have written am unable to perfrom the log in operation.[code]
View 1 Replies
Jun 12, 2011
I am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported Imports System.IO[code]...
View 2 Replies
Apr 12, 2010
I've been creating a small application and now I'm going to make a setup file for it. And I started doing this using Installshield. Here's a prtscreen of where I'm stuck: Since I've developed my Application in .Net, I don't know whether it can be installed on earlier versions of Windows such as Windows 98. Should I uncheck some options?
View 6 Replies
Sep 16, 2009
I've been reading the official DNS RFC [URL].. and looking at articles like this that explain how DNS query packets are structured [URL].. but I'm having a hard time trying to combine the two and actually get to a point where I know what to do
Basically I know that I need to use UDP to send the query and there is only one type of query I actually want to perform - an MX lookup. So I'm hoping that means I dont need to account for a lot of things that anyone creating a complete DNS Resolver would need to implement.
The only experience I have with network communication like this is with protocols that are text based (and use TCP, but I dont think that makes much difference here, if anything UDP should be easier). DNS however is binary based and I just cant figure out how I would know what bytes to send down the wire for a specific MX query..
View 5 Replies
Mar 5, 2010
I just downloaded Windows Search 4. Ive seen several spots that seem to hint that you can access it using .NET but I cant seem to be able to find anything.
View 3 Replies
Mar 19, 2012
Is there a way to set a variable in VB.NET in an IF statement. I would like to do the following:
[Code]...
Is there some way I can get the last "ElseIf" to work? I know I can re-write it to get it to work but is there some syntax that will make it work the way it is?
View 3 Replies
May 13, 2010
Having read this page, I can't believe that VB.Net has such a terrible performance when it comes to I/O.Is this still true today? How does the .Net Framework 2.0 perform in terms of I/O (that's the version I'm targeting)?
View 2 Replies
May 30, 2009
I know .Net and C# pretty well, but never even looked at VB.My problem is: our Win32 COM library is used by a number of clients, and we see that the number of failures is higher for those who use the library from VB (both VB and VB.NET) than for those who use C++, C# or Delphi. One thing about our library is that it is supposed to be used from one thread only - can some threading magic by VB be the cause of failures?
Clients tell us the do not create any extra threads on their own.
View 3 Replies
Nov 29, 2010
i have got a value in time span lets say: tsp1= 2 hour 5 minuts i have a another time span variable which contains value like: tsp2= 0 hours , 2 minuts?how can i divide tsp1 by tsp2 so than i can get exact number of times tsp2 divied the tsp1 and how much value is remaining.i am using vs2008?
View 3 Replies
Apr 4, 2012
I remember with InterSystems Cache code, you can use indirection to take a string and turn that into real executable code by preceding the string variable with "@". Can this be done in C#.NET or VB.NET code? So I'd like to have a method that would take an arguments array of strings (with one or multiple lines of code), and run that code, assuming it doesn't throw an exception of course. Where am I going with this? I'm trying to write a compiler within .NET code.
SET x="set a=3" XECUTE x ; sets the public variable a to 3
OR SET x="tag1" d @x ; do/call the public subroutine tag1
OR Set Y = "B",@Y = 6 ; sets public variable B = 6
View 2 Replies
Dec 13, 2011
I would like to know if its possible, and if so how, to use VB.NET to automate a keyboard shortcut. In the application i am developing, it receives email as a outlook addin and runs various checks and if those checks are positive it inserts information about the message into the database. But i want to be able to tell it that when the subject = "Keyword" to perform Ctrl+Alt+Up for, essentially a prank. However - I can't find anything on this anywhere, all i find is "Custom Short-cuts In VB.NET" and stuff about the KeyDown, KeyUp and KeyPress events.
View 1 Replies
Aug 11, 2009
I want to perform serial communication on selecting
.Net Framework2.0--->Visual Basic--->Device application
Presently I am using this code
Imports System.IO.Ports
Imports System.IO.Ports.Serialport
If Button1.Text Is "open port" then
SerialPort1.Open()
Button1.Text="close port"
Button2.Enabled=True
[Code] .....
But I am getting error as
"An unhandled exception of type System.InvalidOperationException occurred in System.dll
Additional Information: The basestream is only available when the port is open".
View 1 Replies
May 20, 2009
Duplicate of [URL] I am using this function in vb2005 to colorize a pixel, however when a user chooses a color >50 i begin to lose detail in the image,
[Code]...
View 2 Replies
Nov 19, 2008
I tried this but it doesn't work
[code]...
View 2 Replies
Nov 24, 2010
I'm trying to build a four step process into a VB.NET GUI. The application transfers objects from AppA to AppB.
The application will follow these steps:
User constructs a general query in the GUI to identify which AppA objects to transfer. Model gets queryResults, datagrid in View lists each result User deselects items not to be transferred to AppB Model transfers selected items
how this should work. I've have the following functions implemented in the model, but don't know the MVC-way to tie them into my GUI:
Function getQueryResults(queryParams) as Items
Function transferItems(items)
Do I keep the Items data structure in the model?
How do I remove deselected from the Items data structure without building logic into the view?
Both of the above functions take time, how can I design thing to allow me to BackgroundWorker the model's functions?
View 1 Replies
Jan 7, 2012
What i want is i have a listbox in form a, which display data from database, for example it's displaying student ID.
after user double click on the id, form b will "show" and load that particular informations.so should i do that action in ListBox1_DoubleClick or form b_load?
View 7 Replies
Feb 16, 2010
i'm using a datagridview to display the records which are filled in my dataset. however i need to perform paging to display only selected numer of records (e.g: display only 10 records per page) and by using the buttons (like: FirstPage, NextPage, PreviousPage, Last Page) allow users to nevigate through the records. and possibily display the total number of records in my dataset (e.g: |< last <Next 10/100 previous> first >| ) this might sound very simple but i'm new in .net and so far whatever source code i found in google is moslty written in C# which i don't know.
View 4 Replies
Sep 6, 2011
I have a gridview in which I added some code for onclick in its RowdataBound event to allow the row to be clicked then go to another page.
I added a linkbutton in the last column which has the onclientclick to show a confirmation message whether to delete or not.
When I click the ok on the message, it performs my delete event. But when I click cancel, it goes to another page like what its supposed to do in the onclick.
What I am trying to do is this...
When I click the linkbutton cancel, it will perform the onclientclick to call a messagebox. If I choose cancel, I want it to not execute the onclick anymore.
I am using vb.net and asp.net in visual studio 2008. I am not sure whether this is the right forum or the asp.net.
View 5 Replies
Jul 22, 2009
I'm running into some issues when trying to perform a directory search. For some reason I keep getting a {"Unknown error (0x80005000)"} -2147463168 soon as I try and run the search. When I review the details of the error under item I get "In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user."I'm running as the domain admin, so I hope I can rule permissions out of the picture. I have tried the ldap string with and without the server nameip address makes no difference.Starting to think there is an issue with AD.
I have included the simplest code that reproduces the error.
[code]...
View 2 Replies
Apr 13, 2011
I know it's not really the best way to do it, but I have a special occasion when I would need to add new columns to a datagrid using code and apply a binding to it to .For example, I got this :
<DataGrid x:Name="GridUtilisateurs" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding}" Style="{StaticResource BaseGrid}">
<DataGrid.Columns>
<DataGridTemplateColumn>[code]......
After a while, I finally got to understand what's wrong. I needed to use [Description] because I was given a datetable. Now that this is done, I have another problem though. Since sometime I need to have dates, I would need to use a DataTemplateColumn and I tried using one but I can't really make one work so far.
View 1 Replies
Mar 30, 2011
perform a click on a control inside of a webbrowser? Preferably from ID?
View 3 Replies
Apr 17, 2011
how to perform alter key press at the time of form loading in vb.net winforms application?
Means when the form's(devExpress's Xtraform) load event is executed that time alt key must be pressed pro-grammatically .
View 1 Replies
Aug 18, 2010
I am trying to add an attribute to a dropdownlist control to store a value returned for the database. This value is need to get a code once a selection is made on the dropdownlist;
I have tried the following:
ddlStatus.DataTextField = dsValues.Tables(0).Columns("Description").ToString ()
ddlStatus.DataValueField = dsValues.Tables(0).Columns("CategoryCode").ToStrin g()
ddlStatus.Attributes.Add("SysCode", dsValues.Tables(0).Columns("SystemCode").ToString( ))
ddlStatus.DataBind()
but the attribute is not bound to the control
View 2 Replies
Jun 11, 2012
In my project, there are 3 user controls; BasicContact, BasicDetail and ActionTime. They are in EditOrder.aspx page. There is "ReportDate" property (Date type) in BasicContact, RadioButtonList "rdl_Priority" (with integer value from "prio_id" field) in BasicDetail and "CheckDate" property in ActionTime. The ReportDate value is derived from txt_ReportDate and txt_ReportTime and CheckDate value is derived from txt_CheckDate and txt_CheckTime.
[Code]...
View 1 Replies
Dec 4, 2010
When i upload my site in aspspider.com then it shows the following message.I use default dataase of asp.net namely ASPNETDB.MDF
Server Error in '/dobriyal' Application.User does not have permission to perform this action.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: User does not have permission to perform this action.
Source Error:
Line 7: Dim cmdSelect As New System.Data.SqlClient.SqlCommand("SELECT Password FROM a1_admins WHERE EmployeeId =" & TextBox1.Text & " And Email = '" & TextBox2.Text & "'", SQLData)
[code]....
View 2 Replies
Dec 14, 2011
I'm using VS2010, SQL2008 and using asp.net vb - im stuggling with some db related items.I have a couple tables, Project and Projectstatus - looking something like this.project
- ProjectID (autoincrement)
- ProjectName varchar50
- Projectoverview varchar200
Projectstatus
- statusID (autoincrement)
- projectID varchar50
- projectstatus varchar200
What id like to happen is that when i create a new project (into the project table),that a row is created in the projectstatus table, inserting the projectID from the project status for reference.I don't think this can be done from within VS, correct? therefore, do i need to create a SP to perform this action from DB side?
View 3 Replies
Feb 21, 2011
I would like to ask a question about Getting the Mouse coordinate on the Screen outside the form then Perform a left click or mouse event on the given coordinate what i want to happen is to get the coordinate first then perform click.
i already have the code for performing the click but i dont know how to get a coordinate i will not be putting the code because i want to learn and not copy any already made code.
View 3 Replies
Jun 27, 2010
I want to do the following:
msgbox("Welome to this app!")
*5 secs later*
label1.text="1"
*5 secs later*
textbox1.text="yay"
[Code]...
View 3 Replies
Jul 9, 2010
How can I make my app perform an event (in this case updating) on the first run, and every five starts after that? So on the first, then the fifth, then the tenth etc. I know I could do it by adding 1 to a settings variable every startup, but I can't figure out how to check if it is a multiple of five. Or is there a better way?
View 9 Replies