Software Development Network Logo
  • VS Team System
  • IE Development
  • Visual Basic
  • Microsoft ISV
  • Windows Vista
  • Visual C++
  • Windows Forms
  • SharePoint Products
  • Visual C#
  • .NET Development
  • Visual Studio
  • SQL Server
  • Game Technologies
  • Audio and Video
  • Visual FoxPro

Software Development Network >> MrZkitten's Q&A profile

MrZkitten

Member List

GlennZarb
divya mittal
koder monkey
avenueofdesign
AliciaV
clint 2
WV John
Kestutis
spshah
ZombieCron
JonathanB_Il
Sreekk
AGPX
Scott Nonnenberg MSFT
Stuart McHugh
SCRunner
James Miles
pkazaria
chiraj
user11
Only Title

MrZkitten's Q&A profile

  • Visual Basic IsolatedStorageFileStream access problem

    Hiall I am implementing a class library (Addin ) in VB 2005 for Solidworks 2006 3D cad tool. I wanted to use IsolatedStorageFile for my persistant storage. I used my code like this Private Function CreateSettingsStream( ByVal key As String ) As IsolatedStorageFileStream Dim store As IsolatedStorageFile = IsolatedStorageFile.GetMachineStoreForDomain() Return New IsolatedStorageFileStream(( "abc.txt" ), FileMode.Create, store) End Function When I run the Addin I get a strange error in the following statement Dim store As IsolatedStorageFile = IsolatedStorageFile.GetMachineStoreForDomain() and the error is " Unable to determine the identity of domain." Any body kno ...Show All

  • Visual Studio Setting Page Orientation of a Crystal Report Viewer Control Programmatically!

    Hi all, I need to set the page orientation of a crystal report viewer at runtime.How can we set the property Thank you, Regards, Deepa. ...Show All

  • SQL Server past and future date

    How should I find the dates for 3 days past and 5 days future. Such as TodayDate-3 and TodayDate+5 base in the date only, discarding the time   Steve Kass wrote: Yes, I tested it. The query I posted was SELECT    dateadd(day,datediff(day,0,getdate())-3,0) AS [3 Days Ago],    dateadd(day,datediff(day,0,getdate())+5,0) AS [5 Days from now] The result in SQL Server (Query Analyzer, standard installation) is 3 Days Ago                         5 Days from now                       ...Show All

  • Windows Live Developer Forums Adding OnClick event to Polylines

    I have successfully added the OnClick event to my Pushpins based upon the example provided. I now want to do the same for Polylines. Before I waste time thinking about this, has anyone already done it If so, can you give me an example Thanks much...Steve Yeah a floating div is just a container that you can position over the map anywhere you like. Inside that container I have label which works for me but obviously not you. VE just got a few upgrades and a noticed that local.live.com lets you click on polylines and the new polygons. So we need someone from the local live team to help us out. Hey Caleb! - any chance on sharing on how we do this And how we do the very cool edit mode with the nodes We wo ...Show All

  • Visual C# Code for app.Config Editing / Saving

    using System; using System.Xml; using System.Configuration; using System.Reflection; //... public class ConfigSettings { private ConfigSettings() {} public static string ReadSetting( string key) { return ConfigurationSettings.AppSettings[key]; } public static void WriteSetting( string key, string value) { // load config document for current assembly XmlDocument doc = loadConfigDocument(); // retrieve appSettings node XmlNode node = doc.SelectSingleNode( "//appSettings" ); if (node == null ) throw new InvalidOperationException( "appSettings section not found in config file." ); try { // select the 'add' element that contains the key XmlElement el ...Show All

  • .NET Development oledb parameters

    how to use oledb parameters in oledb command object I declare the oledb variables & others like this dim cmd as new oledb.OledbCommand dim prn as new oledb.oledbParamter prn.ParameterName = "@para" prn.OledbType = varchar prn.value = "" 'say a string 'etc etc ------------- then i add this paramter in the command object cmd.parameters.add(prn) cmd.commandText = "select * from table where field = @para" cmd.connection = cnn ' say a connection object cmd.ExecuteNonScalar ' I just need one column actually as the query is supposed to return one row only ********************************************************************* when this code is executed, the sys ...Show All

  • Visual Basic Strange vb temp file problem

    Hi there Has anyone ever encountered vb6 creating temp files when the user navigates through a program A friend of mine is boggled by her vb6 app that mysteriously creates lots of tmp files as people uses the program. This has caused the server to create thousands of these tmp files, which are all empty. I have no idea what could be causing this especially since there is no explicit file handling in the code of the app. Any ideass Mike As I suspected, the code has a scope problem. Variables should always be declared at the lowest possible level in order to prevent unexpected behavior. In this case, you're leaving multiple ADODB.Connection variables that are declared at the module level open. It al ...Show All

  • Visual C# Find the Type of a base class

    How do I find out the type of a derived class's base class now I do this but I dislike it try{ myBase control = (myBase)derivedControl; doStuff(control); } catch{} I would like to do something like this if(derivedControl.baseType() == typeof(myBase) { doStuff(derivedControl); } void doStuff(myBase control) { } What you are looking for is the "is" and "as" syntax: you can do either: myBase control = derivedControl as myBase; if (myBase != null) {   // derivedControl could be casted to myBase, do something with it }   or you can use: if (derivedControl is myBase) {   doStuff(derivedControl as myBase);   // or cast it before the call, you choic ...Show All

  • Visual Studio Express Editions NotifyIcon shows up double

    Hello, As shown here: http://jorijn.qweet.nl/screenshots/SnapShot-9112006-234734.png The notifyicon shows up double when i call my own class. Below is the code: http://paste.qweet.nl/4 Hope that someone can help me on this. Regards. Jorijn I had the same problem. Also since .NET 1.1 or so. This is also an easy workaround: set the Visible property of the NotifyIcon to false when the application closes (or the Form). ...Show All

  • Visual Studio Express Editions NEED HELP with this piece of code !

    HEY GUYS i am developing a program while learning Visual C# so here what i am trying to do .... getting htm links from the database ( access ) and view it in the WebBrowser Control and, i have a button to the next link in that database to get it and view it in the WebBrowser so here is the code for that button but it doesn't work :(  when i click on it this is the function i am using when button is clicked   private void Next(string lesson) {   string StrConnection1 = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\anything\database.mdb" ;                         &nbs ...Show All

  • Visual Studio Controlling Page Breaks When Rendering Local Report as a PDF

    I'm having some issues with page breaks being automatically added to a report when rendered as a PDF. I have a few textboxes which can grow to accomodate various amounts of text and a have a border on all sides. Depending on the actual rendered size of textbox one of three things happens: 1) Textbox can fit in remaining space on a given page (after previous items) - textbox added as expected (no page breaks added). 2) Textbox cannot fit in remaining space on a given page and the textbox is equal or smaller to the page size - page break automatically added before the textbox, entire textbox placed on the next page. 3) Textbox cannot fit in remaining space on a given page and the textbox is bi ...Show All

  • Visual Studio Team System Checkin other users change from another workspace

    There is a special situation with SCC I am facing , One user X checked out file $\project\code\user_x_file.cs and left for the day in USA . now in India another user Y has to work on that file and multiple checkout is disabled . The update are in user X laptop which he take home with him and it is no longer connected to any network. User X also has not shelve the file . If I don't want to wakeup the user X what could be solution I have following options 1) UNDO user X change I tried TF undo command to get this message The workspace USER_X_WS;USERX is not on this computer. Run get (get all if edits were undone) on the computer hosting that workspace to update it with the changes that have been made on the server. 2) Chec ...Show All

  • SQL Server Mdx calculations in AM2005

    Hi. I have 2 fact tables FactCampaign and FactLead. Both link to DimCustomer via CustomerKey. And in each table, there is a datekey - CampaignDateKey in FactCampaign and LeadDateKey in FactLead. I would like to sum up the count where LeadDateKey > CampaignDateKey. Is it possible to achieve that via mdx calculation TIA! Assume that there is a [Date] dimension, similar to Adventure Works, with 2 roles: [CampaignDate] and [LeadDate], [CampaignDate] related to a "FactCampaign" measure group and [LeadDate] related to a "FactLead" measure group via the respective date keys. Also, there is a [CampaignCount] measure in the "FactCampaign" measure group. Now ...Show All

  • Windows Search Technologies Popping up seachindexer.exe

    This problem came up when I installed a ION USB Turntable on this system. It hadn't come up before that. I have Office 2007 beta on this system as well as Adobe Reader 7.0.8. Looking at other threads, that Adobe could be the problem. What do I do to stop the popping up System: Athlon 2400 1 Gig memory 350 Gig HD Nvidia 128 bit graphics card Win Home XP SP2 windows installer cleanup ,utility install this from microsoft free and use it to completely uninstall adobe old version and install new ver, hope this works ,it did for me i`m running xp sp2 catch you later. ...Show All

  • Software Development for Windows Vista Shared memory between NT Service and normal App?

    Hi all, I need to get my XP software working with Vista. The software is in two parts, a NT Service and a normal app that controls it. Coms is via shared memory. What do i need to look at changing to get the shared memory interface between the two working under vista Thanks! You need the service to create the file mapping as with "Global\\" and the desktop app to OpenFileMapping the global object. ...Show All

©2008 Software Development Network