bubsnt3's Q&A profile
Smart Device Development Can a vb.net application be run on a computer without vb.net installed?
Hi guys, I have a question regarding the above topic title. Does anyone know of a program whereby it can convert vb.net into an application which others can run without having the need of installing vb.net on their computer Senorio case: I'm have a form, wanting a client from other part of the world to fill it in. The form is build in vb.net, he should be able to run the program and fill in the form without having to install vb.net. As vb.net is a space consuming program. **Maybe a program that is smaller can be used to run the application You want to deploy the generated assembly or assemblies (probably with a cab file, which you can create a project for in Visual Studio), which will consist of your binary and any additional modu ...Show All
.NET Development trouble exposing C# collection to ASP
Hello, I am having trouble exposing a C# collection to an ASP page. When the object that owns the collection returns a collection interface to ASP page, ASP tells me the object is not a collection (it returns error 451 "object not a collection"). If I change the collection owner to return an instance of the collection implementation class, then ASP recognizes the object as a collection, but ASP does not recognize the collection object's properties (it returns error 438 "Object doesn't support this property or method"). It would be great if the script would recognize both the collection and its properties. The C# code and ASP script are included below. The collection owner is the ICMDocumentMgr interface, and it exposes ...Show All
Windows Forms Making a triangle automatically?
Hi, I need to print a page with triangles(if possible) with 3 numbers inside, with numbers from 0 to 5 raandomizing them without repeat to be printed ... Just like Tridom game pieces ! Does anyone know an easy way to do that....Have an example PS: here is the pieces picture http://images.amazon.com/images/P/B0002HYNFY.03._SCLZZZZZZZ_.jpg Shouldn't be hard to do inside the Paint event of a form or panel and the e.Graphics object. Why don't you write some code and come back when you get stuck ...Show All
SQL Server Can't connect to sql express 2005
I have an very big application written in vb6 running on msde 2000. I tried to change it to sql express 2005 and I cannot connect to the database. I wrote a sample app in vb6 using adodc and it works fine. From the other app I get no connection. I copied the same connection string!. I do not use the adodc control.I connect with a connection object.I have enabled pipes and tcp/ip. Any ideas or suggestions more than welcome. With this connection string, do you still get "Login failed for user 'Master'." Looks like the user is "george" here. But, anyway you should make sure the user in the connection string should have login premission to its default or initial database. ...Show All
.NET Development Memory managment with extern
I am using an extern method in my code. The method gets a string and decrypt it in a buffer and return it to me as string. My question is since this is a static method that returns a value ,how does the method relese the buffer from memory because it can't release it before the return and can't after Thanks Avi Hi, did you write that function If yes, change it to get preallocated buffer and the length of that buffer and have it return the number of bytes written to that buffer like so: size_t yourConvert(const char* in, char* out, size_t cbOut); If it is a function of a library the library should provide you with a function to free memory which it allocated internally. See its doc ...Show All
Visual Studio How to add a sub-item to a code file in solution hierarchy
I'm trying to add a non-code item to a project. That item will be parented by a code item in the project, similar to the way that .cs user control files have a dependent .resx file. What's the best way to do this I've tried adding the item through the parent project item, but they become siblings in the solution hierarchy. I can't seem to figure out any way to do it through IVsHierarchy. Thanks in advance. Just got it... I was using ProjectItem.AddFromFile and the file was in another directory. Using ProjectItem.AddFromFileCopy did the trick. ...Show All
SQL Server Show Monthly,Quarterly, and YTD revenue
Hi All Experts, I need to show a result of a revenues total for Monthly,Quarterly, and YTD of a given sales person by a given period. e.g Period : 7-1-2006 to 8-1-2006 Sales Person Monthy Quarter YTD SalesPerson1 $1999 $10000 $100000 SalesPerson2 $1999 $10000 $100000 How can i do that Thanks in advance. hey i have some questions 1. find all creditcards that have not expired 2.list all employee ids with hi and low payrates order by employee ascending, payrates descending 3.use functions: LEN,CHARINDEX,SUBSTRING to list userid portion from loginid field. 4.List sales personid, their total sales for 2004 and current quota requirement all from adve ...Show All
Windows Forms .net 2.0 Control authoring book?
Hi all, can anyone recommend a book that contains alot of information about the ControlDesigner part of usercontrol authoring Thanks in advance This book gets good reviews. I don't know if it covers the ControlDesigner, no other books seem to qualify for .NET 2.0... ...Show All
.NET Development SqlDependency object inside AppDomain
I wrote a class which had a SqlDependency object inside. It can receive the notifications when the results changed for an associated SqlCommand object. This class worked great when the class object was hosted by an application directly (default AppDomain). However, if the class object was hosted by an AppDomain other than the default AppDomain, the object stopped receiving the data changing notification from SQL Server after five minutes. (To make this class can be hosted by an AppDomain, I made it derived from MarshalByRefType class. Additionally, I renewed enough long the ILease object which controlled the lifetime policy of the object inside the AppDomain). Any ideas on thi ...Show All
Visual Studio Express Editions Splash Screen
I can't seem to be able to see it after I launch my program despite having it prepared in the design environment. Dophine You can use any form you like as a splash screen - I don't think there is anything special about the one that is created when you add a splash screen apart from the bits of code that add application info. Just design your own form and then set it to be the splash screen under Project- Properties - Application - Splash Screen ...Show All
Internet Explorer Development Any non-Active FileSystemObejct?
Hello guys, I have a HTML file using VB runtime, FileSystemObejct, to access file names in my local drive. And I only overwirte a certain HTML file based on my current location of my program. This is totally safe as it will never mess up my computer. But FileSystemObejct in general is unsafe and it is an active control. Thus, I got this IE7 pop-up yellow banner blocker, followed by IE pop-up prompt window for running Active Content. I can turn off the IE7 pop-up yellow banner blocker, but not the IE pop-up prompt window. And it is really annoying when I get that pop-up prompt window everytime I refresh. Is there any safe FileSystemObejct that only access file name and only overwirte .HTM and .HTML file And it is not consider an Activ ...Show All
Visual Basic 101Samples but can't use
I downloaded the 101Samples for VB, it says, and installed them, but the first one I try to examine, WorkingWithTheInbox, I get error "Project type is not supported by this installation." Of course, it doesn't mention what the type is or what is missing from the installation or how to find out. Another following dialog box says "Make sure the application for the project type () is installed." Suggestions And while I am asking, after making cut and paste a major feature of Windows, why can't I copy the text out of the message box to paste here Same thing with Help About - as in "Please give the date and version information from the Help About." And copying will not work to pick up the strange small detai ...Show All
Visual Studio 2008 (Pre-release) ListView row value warp
Hy, I wrote a ListView with a GridView that populates from a database, the columns have fixed widths, my question is: Is it possible to warp the data in a row so that you can see the whole text on multiple lines, now the text is only in 1 line and not completly visible. Thanks for your help, I guess ScrollViewer.HorizontalScrollBarVisibility = " Disabled " should be also set, shouldn't it ...Show All
Visual C++ C++/CLI Compile Error
Hi, I have some code that compiles and works fine in C++. I am in the process of attempting to use this same code in a C++/CLI project. Been working through various compile issues. This one is pointing me into the map, do not want to mess around with that code. Anyways, the error I get is, C3699: '&': cannot use this indirection on type xmlDictionary::DictionaryData. My class that I am working with is named xmlDictionary. DictionaryData is a struct, ref struct DictionaryData{ std::string value;// error here also ValueType type; }; The offending line of code is, std::map<std::string, DictionaryData> m_data; I am thinking it is STL related. Any direction would be appreciated. Thanks Jeff ...Show All
Windows Forms ComboBox reverts to valuemember data not displaymember data.
I have comboboxes on a form, in edit mode, when I move to another field, the combo box displays the valuemember data and not the displaymember data. I don't know if this is a glitch in the Combbox or what. Can anyone advise Hi Eileen, I know you didn't ask this, but it's relevant and I thought I'd mention it because of the way you chose to databind you ComboBox ... this might save you from having to post another question. There are two ways (two different syntaxes) to specify databinding for any control and this results in two distinct binding objects. The problem is that you can't mix and match ... you have to stay consistent throughout the form (and, to be honest, I've found that the first method shown below (which was they ...Show All
