New-Bee's Q&A profile
Windows Forms project publishing in visual studio
hello, I am in desparate need! I've writen a visual basic .net program that I can build/run locally, install/run after publishing to a file share but others cannot install or run (form bin directory). From project properties window: All references are copied local true, all namespaces are checked as imported, all images are set in a resource folder, prerequisites (.net framework 2.0 and windows installer 3.1) are downloaded from application location, .deploy extension is used (if it matters), and application files are include (auto). How can others run my program Please help, thank you. the error message does reference the file causing the error. The appropriate .net framework version is installed, that's ...Show All
Visual Studio 2008 (Pre-release) strange behaviour frame in window
the XAML+c# sample below, behave strange (and unwished) effect: when clicked on polygon and handler execute, main window "disappear", but application keep focus (as seen on taskbar) . Next click on app element on taskbar make focus lost by application, and next more click restore focus and window with its all content. Anyone has some suggestion to override this behaviour (problem) XAML: < Window x:Class = " UntitledProject1.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " Root Window " WindowStyle = " None " WindowState = " Maximized " Topmost = " True " > < Canvas x:Name = " scatola " &g ...Show All
Gadgets new XMLHttpRequest() - I'm at a loss
I have programmed a gadget and it works great. I uploaded it to the Live Gallery and then I tested it and it doesn't work anymore. var xml_request = new XMLHttpRequest(); xml_request.open("GET", url, true); <----- breaks here! the url variable is valid. It just stopped working all of a sudden with no code change. All the other gadgets in my sidebar can access the internet just fine. I have no idea why it just stopped working. If I replace it with: location.href = url; it opens the url in IE just fine. You should check out this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1283951&SiteID=1 It sounds like you may be having the same proble ...Show All
Visual Studio Express Editions AppActivate Function
My code activates a Windows application using the AppActivate function. The code then goes on to send keystrokes via the SendKeys function. I am using "SendKeys.SendWait". The problem is that sometimes my Windows application is slow to show and my SendKeys code does not work. On other occassions the window pops up quickly and the SendKeys commands execute. Can someone tell me exactly what is going on Should I have some sort of "Wait" command associated with the AppActivate function You explain a reason why "sendkeys" does not perform well for inter-app communications....You may wish to consider the ProcessStartInfo class to control Process I/O ...Show All
Visual Basic Choices for local data store in a VB.Net project?
Hello, Just wondering what the preference out there is when it comes to using a database for a local data store in a vb.net client application... The application will store from approximately a 1000 records and up, and is used to import and export data to SQL server. I have completed an app using SQL Express as a backend, but do not find it flexible enough in terms of backing up data, or even having to make a change in the table. I'm finding that when a change is needed to be made in a table, and I have to republish the app, it sends over a new database wiping out all the data that was previously stored on the local machine. Where as if I used something like Access, I could go in and just add a column to a table... What are you ...Show All
SQL Server DataSet Question (Should be easy :)
This should be simple. If I have a DataSet... lets call it ImageDataSet in a report and it is a collection of ImageObjects that have two properties, lets say Photo and Caption. So if i were writing in c# to access the second image in the collection, I would say something like ImageObjectsCollection[1].Photo to access the second photo in the collection. My question is how can I do that within the reportviewer. Just access a specific image. Everything I have read only shows =Fields!Photo.Value in which it would get all of them or =First(Fields!Photos.Value) which would get the first in the collection and =Last(Fields!Photos.Value) which would access the last one in the collection. So I ask how could I specificaly access an im ...Show All
Visual Basic MenuStrip and StatusStrip update problem in VS2005
Hi, I have a program with a main window (MDI parent). This window has a MenuStrip and a StatusStrip. The MenuStrip has some items disabled and enabled depending on who is using the program. The StatusStrip shows the current user. I public subroutine is used to update both the MenuStrip and the StatusStrip. If the update subroutine is called from the main window (for example by clicking on a menu item that calls the subroutine) everything works just fine. I have created a login form. This window calls the update subroutine in the main window to update the MenuStrip and StatusStrip before it closes itself. The problem is that the MenuStrip and StatusStrip is not updated! If the Immediate window is used to look at the properties of t ...Show All
.NET Development Socket Exeption No such host is known in PPC2003
Hi I'm very new to any kind of programming, so please bare with me. I'm trying to connect a PPC to a unit on a LAN using socket, and receive a Socket Exeption: No such host known. I've narrowed the vb.net 2003 code down to: Imports System.Net.Sockets Imports System.Text Dim tcpClient As New System.Net.Sockets.TcpClient Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click tcpClient.Connect("10.0.0.21", 8000) End Sub This code works fine using a PC on the same network, but not on the handheld. Thanks PTV It means that the hostname "10.0.0.21" could not be resolved to an IPAddress... Use the constructor that accepts an IPAddress and a port number inst ...Show All
Visual Studio 2008 (Pre-release) UpdateSourceTrigger property in DataTrigger Binding
I am having a DataTemplate. In the i have included the DataTrigger. When I update the Privilege property from outside it is not changing the image immediately based on the Privilege value. I have included the source with in this. if any one is having idea please let me know as soon as possible. Thanks & Regards Sundar. < DataTemplate x:Key = " SubTabTemplate " x:Name = " SubTabTemplate " > < StackPanel Orientation = " Horizontal " > < Image Source = " ../Images/SMALLSTOP.gif " Name = " img1 " > </ Image > < TextBlock Text = " {Binding Caption} " /> </ StackPanel > < DataTemplate.Triggers > ...Show All
Visual Studio 2008 (Pre-release) TreeView items rendering
I have TreeView with child nodes containing dockpanels. Each dockpanel has checkbox and textblock. The problem is that when i navigate through treeview nodes in some cases (e.g. when i expand node -> select child node -> select parent node) contenet of treeview item isn't rendered properly. Are there any ideas Here is screenshot: http://ibox.org.ua/ id=7455 Thanx in advance Actually whole problem was solved when i used TreeViewItems to hold all my node content and not drectly add UIElemets as childnodes ...Show All
SQL Server TRIM not working properly please help
Hi I am using sql server 2005 I have a table 'Address' with column address_code nvarchar(10) company nvarchar(255) I am importing this data from XL sheet. Here company name I have to match with company name in other table 'Company' to check wheather company exists or not. I have written the query Select rtrim(ltrim(company_name)) from Address where compnay not in (select ltrim(rtrim(company_name)) from Company) Although company name is there in 'Company' but it is showing for all companies that it does not exists in the table. This is because of blank spaces at the begining and end in the 'company_name' column in 'Address' table. I am not able to understand why trim function is not working here. ...Show All
SQL Server DTS to VB
Can someone help me please. I am having issues with the following code. This is the first time I am doing this, so it is Brand new to me. Sorry if I look and sound like an idiot. I am having issues with 'DTS.OleDBProperties' cannot be indexed because it has no default property at the following line :oConnection.ConnectionProperties I used DTS wizard to create my vb code and I am following this page: http://msdn2.microsoft.com/en-us/library/aa176248(SQL.80).aspx Can someone please guide me in the right direction. Option Explicit Public goPackageOld As New DTS.Package Public goPackage As DTS.Package2 Private Sub Main() set goPackage = goPackageOld goPackage.Name = "Test" goPackage.Description = "Casier" ...Show All
Visual Studio Crash of visual studio when model is incorrect
We use team foundation server as a version tool for our DSL projects. However, since the debugging project runs only in the hive mode and the tfs-plugin is not available in the hive, it is clumbersome to keep the debugging project up to date. If the DSL is changed and you do not have the latest debugging project, then visual studio crashes during start-up if an old model was open the previous time the debugging project was used. The work around is to remode the model(s) from the debugging project, and to recreate them or to obtain their corresponding versions. I think the editor should give an error in the format of a message but a crash is rather drastic. My question is if you can also add some clue about what is wrong. This improve ...Show All
SQL Server Select statement possiblities??
Hello all, I was wondering if there was anyway to use an "IF" statement inside an SQL SELECT statement. something like the following: SELECT somecolumn, SUM(something, something) AS Total, (IF Total <= 40 Then SUM(something, something) / 60 * somecolumn) AS Total2, SUM(0,0) AS GrandTotal Else SUM(something, something) / 60 * somecolumn) AS Total2, SUM((Total - 40) * somecolumn) AS GrandTotal End If) FROM someTable any idea how to accomplish something simular to this Thanks Louis, I am using SQL this time and the case statement looks like just what i need. im trying to return a column for regular hours worked (UP to 40) & a column for Overtime Hrs worked (40+) for eac ...Show All
Visual Studio 2008 (Pre-release) Many-To-Many Relationships
Hi. I'm proceeding with my test on ADO.NET EF ... Consider the following many-to-many relationship example schema CSDL <Schema Namespace="School" Alias="Self" xmlns="http://schemas.microsoft.com/ado/2006/04/edm"> <EntityType Name="Course" Key="ID"> <Property Name="ID" Type="Int32" Nullable="false"/> <Property Name="Name" Type="String" Nullable="false" MaxLength="50"/> <NavigationProperty Name="Students" FromRole="Course" ToRole="Student" Relationship="Self.StudentCourse" /> </EntityType> <EntityType Name="Student" Key=&quo ...Show All
