Shiverx26's Q&A profile
Visual Basic PNG Backgrounded Form
I have a form with a PNG image as its background image. How can I make the form's opacity match the opacity at different parts of the image (for example, I have a drop shadow that fades from black to transparent. How do I acheive this effect on a form ) Okay, Maybe I'm getting opacity and transparency mixed up in my head. But this will work for transparancy. Pick an odd color such as aquamarine. Set the form's backcolor to aquamarine. Set the forms transparency key to aquamarine. Now you have a transparent form. Any parts of the background image that are transparent will still be transparent. ...Show All
Visual Basic How to retreive network adpater information from remote machine
Hello, I am completely new to the Visual Basic langauge -although I know VBScript pretty well. I am working a making a tool that connects to a remote machine and gathers some statistics from the network adapter. However, I have no clue as to how to connect to a remote machine. I tried looking for code examples, but I couldnt find anything (which doesnt suprise me because I dont really know what to look for) In VBScript I would probably use WMI -is that also true in VB If so, how do I use it in VB If not, what should I be looking at Any code examples or help that you can give would be very appreciated Regards, Jeremy Oozle_Finch wrote: I tried looking for code examp ...Show All
Visual Studio 2008 (Pre-release) Root directory?
Is there a common way of telling where the hosting root directory is with a WCF service With a standard HttpRequest I can use MapPath but with WCF I could be hosted by IIS or self-hosted so I don't want to use the HttpContext method of MapPath. With WCF the documentation says to stear clear of HttpContext and use OperationContext but I don't see the equivalent of MapPath in OperationContext. I need to access a file and I don't want to hard code the path. Any ideas Kevin ah self-hosted, sorry. please have a look at this: http://blogs.msdn.com/wenlong/archive/2006/02/21/read-configuration-data-from-hosted-wcf-services.aspx hth, Allan ...Show All
.NET Development how to save settings to file?
how can i save settings like color, size , caption etc. to a file. every time the form loads it should retrieve settings from that saved file. can i use .ini file for this purpose if yes then how For storing connection strings use application configuration file ("App.config"). For storing/retreving informations you could use an XML file. Below link would help you on how to create a XML file. Create XML document http://www.java2s.com/Code/VB/XML/CreateXMLdocumentXmlDocumentXmlAttributeXmlElement.htm ...Show All
SQL Server What is the best most efficient performant way to do a Control break in SSIS?
I have an EDI file with Different Transaction types. I would like to read for a Header, capture some specific info on the header, and read for another specific tran type that comes after and capture additional info. I have a couple of ideas like tagging the records with a key and loading into two temp tables for matching later but that means I would have to do double processing. Maybe a conditional split for the two transaction types and then unioning them downstream, but not sure if the right records would be associated. Possibly tagging sequential key and writng to raw files and matching on the raw file keys downstream. I have a lot of ideas but I am looking for the best proven practice here so i don't spin my wheels or have to g ...Show All
Internet Explorer Development <select> tags acting strange
I have several forms that use the <select> tag and since upgrading to IE7 RC1 they behave strangely. Example - When you click on the select box in the form it briefly displays it's options list however releasing the mouse button then causes the select box to close......is there a fix for this Or is this a feature of IE7 The only reason I ask is because IE6 did not behave like this, if you clicked on a select box in IE6 the box would open and stay open even if you released the mouse button. Edit: Upon investigating this further I have found that it was due to some scripting on my side and the issue has been resolved. Sorry about that. ...Show All
Visual Basic Adding a sheet from a template in Excel
Hi, Lots of references on how to use Excel from VB .Net, can get most of it working but cannot get Excel to add a new sheet to a workbook from a template. Looked on MSDN and found details on the sheets.add() method but it does not give examples it just says "you can add a sheet from an existing template" but does not say how...sigh. http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.excel.sheets.add.aspx Here is the example I am taking apart to attempt this: Public oexcel As Excel.Application Public obook As Excel.Workbook Public osheet As Excel.Worksheet Sub Main() Try 'create new excel application oexcel = CreateObject("Excel.Application") oexcel.Application.DisplayAlerts = False ...Show All
Visual Basic Error in Using API functions... help
When i use a API function, it raises an error regarding protected memory.... Need help... Im new to vb.Net programming. Thanks... Try changing the Longs to Integers. http:// www.pin voke.net is a good site for finding native API declarations. ...Show All
SQL Server Error with Inserting data into DB2 database using SSIS
HI, Inside SSIS's Dataflow task, i'm getting data using ODBC connection(in DataReader Source) for an iSeries library and trying to insert that into DB2 database (using OLEDB destination ). Mappings etc work absolutely fine,but on execution get error as given below: How do i resolve this error and load data in DB2 , Need help at the earliest. Thanks in Advance Amit S Here is the ERROR Message: SSIS package "Package.dtsx" starting. Information: 0x4004300A at Data Reader to DB2, DTS.Pipeline: Validation phase is beginning. Information: 0x40043006 at Data Reader to DB2, DTS.Pipeline: Prepare for Execute phase is beginning. Information: 0x40043007 at Data Reader to DB2, DTS.Pipeline: Pre-Execute phase ...Show All
SQL Server Issues With SQL 2005 Encryption
Are there any pitfalls i should look out for when using the encryption in SQL 2005 Here are the most common issues that probably you should be aware of before using encryption: Encryption is not deterministic. This affects the ability to index encrypted data. I wrote an article describing this problem in detail as well as a few suggestions that may help you to solve this problem, you can find this article in my blog: http://blogs.msdn.com/raulga/archive/2006/03/11/549754.aspx . Performance. Encryption/decryption will consume some extra cycles. Unfortunately I don’t have any numbers to share here, but a suggestion would be to try to minimize the encryption/decryption operations to the minim ...Show All
Windows Forms Invoke
Hi, I was wondering if the following syntax is correct for a call to Control.Invoke: private void Form1_MyEventHandler(object sender, EventArgs e) { if (InvokeRequired) Invoke(new EventHandler(Form1_MyEventHandler), new object[] {sender, e}); else { // TODO throw new Exception("not implemented"); } } Is it not to late to call Form1.Invoke, assuming the call to Form1.Form1_MyEventHandler is done by another thread than the one that instanciated the Form1 object If not the case, is Invoke necessary even if Form1_MyEventHandler doesn't access any members of Form1 Also, is the recursive syntax ok Thanks in advance :) What you are doing is correct to ensure you don't get cross-thread acces ...Show All
Windows Forms Arrow Keys on a User Control in .Net 2.0
If I have a form and want to trap keyss, I can use the KeyDown event to trap and detect which keys are used. This includes the arrow keys. However when I want to do the same with a UserControl placed on the form, all keys are detected except the arrow keys. 1.Why do the arrow keys not generate the even on a UserControl 2 Is there a way to make arrow keys generate an a KeyDown or KeyPress event on a UserControl 3. If not, what event if any is generated by the arrow keys on a USerControl Thanks Steve Hmm, that's pretty strange and shouldn't happen. Post your code if you want me to take a stab at it. Note that the burden is on you to make it obvious to the user that the control has ...Show All
SQL Server Extracting the duplicates using Fuzzy Grouping
Hi, I have an Oracle table called "Party" which contains Party_Id as primary key and have Party_Name, Party_Addr etc., as fields. We have lot more duplicate party details such as (party_name and party_addr) in this table. We are trying to aviod duplicates using FUZZY logic of SSIS. 1. Is any body suggest me how to create package to avoid duplicates using Fuzzy logic for this scenario(Step by step instructions are good for me to understand SSIS). 2. Could you please provide me some samples for FUZZY(Please send me a sample to my email) Ever heard of Google http://www.google.ie/search hl=en&q=ssis+fuzzy&meta = Emailing defeats the object of having online forums and it is far easier for people to reply her ...Show All
Visual Studio Team System BizTalk 2006 and Team Foundation Server map/schema issues
I am having some issues with Visual Studio 2005 crashing when referencing schemas or maps from different projects. We are using BizTalk 2006, Visual Studio 2005, and Team Foundation Server for source control. I have three projects: SchemaProject1 SchemaProject2 MapProject (has a ref to SchemaProject1 & SchemaProject2) Steps to reproduce problem 1) Add a new map to MapProject. New map is added successfully 2) Click on the Source Schema link to choose a source schema Visual Studio does not respond by opening the Schema Picker dialog. Instead it just blinks for a few seconds and acts like the link was never selected. At this point, Visual Studio has already become unstable. When i try to close the solution o ...Show All
Software Development for Windows Vista How to get started with WPF
I feel dumb asking this question, but I just bought a machine with Vista on it, I've installed VC2005 along with the SP1 and the SP1 for Vista Beta. I also downloaded the Vista SDK and I've got my handy O'Reilly "Programming Windows Presentation Foundation" book at my side. I assumed I'd be ready to start producing WPF code but I can't even see any .NET 3.0 assemblies when I bring up the references dialog. No System.Windows.Navigation. No nothing. I looked for any .XAML files on the machine. Nothing. I've got the released version of Vista Home Premium - am I really confused or is WinFX/WPF/XAML/.NET 3.0 supposed to be on this machine I can understand there being no .xaml files (although a bit surprised) but why can't I find r ...Show All
