aki_aki's Q&A profile
SQL Server Service Broker in Express edition
I'm trying to figure out if I can use express edition for service broker. Documentation says it can be used as Subscriber only -- but what does that mean Can it only be a target for service broker messages Or can it send messages as well as long as the other end of the conversation is a licensed server thanks! The limitation only applies if messages have to be exchanged between two separate SQL instances. If the 'from' service and 'to' service both are in the same SQL instance (even on different databases), there is no limitation. ...Show All
Visual C++ How to add item to a popup menu?
I am trying to make a popup menu but I am stuck in this code: CMenu* tmpMenu = new CMenu(); tmpMenu->CreatePopupMenu(); tmpMenu->InsertMenu(0, MF_BYPOSITION, 0, 0); So I just donnt know how to add an item to the newly made menu. Can someone please help Sample code from MSDN CreateMenu: // The code fragment below shows how to create a new menu for the // application window using CreateMenu() and CreatePopupMenu(). // Then, the created menu will replace the current menu of the // application. The old menu will be destroyed with DestroyMenu(). // NOTE: The code fragme ...Show All
Visual Studio A data source instance has not been supplied for the data source "Test_ChartData"
I created a ReportViewer from the toolbox. I then proceeded to create a form that contains a single bar chart. At this point, I created a very simple class: class ChartData { public int Param1 { get { return 1; } } } I then added this as a data source by selecting "Object." From the Data Sources Window, I dragged Param1 into the chart's "drop data fields here" region. Now I try to run my project and I get: A da ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Develop a console program that calculate and displays the charges for each customer who parked a car in this garage yesterday. ...Show All
Visual Studio Express Editions VWD and other browsers
I just installed beta 2 and I cant view the webpages in Firefox or Opera. IE works fine. I think the included web server asks for authentication which it didnt in beta 1. Can you quickly test this so I can file it as a bug. Or is it not a bug The simple answer is: In VWD, goto Website/Start Options.. Then in the dialog that pops up, uncheck NTLM authentication. This will enable it to work with other browsers than IE. ...Show All
Windows Forms ProgressBar Properties
Ok. In the properties window for a progressbar control, it has the ForeColor, and the BackColor. But when I change the properties, the progressbar still has a white background and green boxes. Can someone tell me what the problem is This properties are derived from Control, and are not related to the ProgressBar. the progressbar look and fell is determinate by the OS defintions and theme. To customize a progress bar to match your color, you should paint it yourself using ProgressBarRenderer class, or use messaging like this link: http://www.developerfusion.co.uk/show/1091/ ...Show All
Visual Studio Express Editions Newbie Question about Textboxes
Hi, I'm new to visual basic, and I am trying to use a combobox with 2 items, and when I select one of them I want to be able to have it read a registry key and then output the result to a textbox. This is the code I have so far. Currently, when I select an option in combobox1, it reads a registry key and then displays a msgbox with the result. I would like it to be displayed in textbox1 instead. Picture of form design ------------------------------------------------------------------------------------------------------------------ Public Class options Private Sub Ca ...Show All
.NET Development How to create new instance with existing instance
Hi all, From my application, I am invoking IE browser window and sending url using the following: System.Diagnostics.Process.Start(strReportsURL). If there is no browser window, my application should open new browser window using the said url. If browser window already exists with the above url, then it should create new window with the url and credentials (it should open with existing username and password, like yahoo and rediffmail). Regards Helan I think this is a feature of IE. If you always want to open your site in IE instead of the default browser, you can do: System.Diagnostics.Process.Star ...Show All
Visual C# Web.Sitemap won't display node
This is one of my siteMapNode s that will not display on the page probably because there is an error. < siteMapNode url = " BLOCKED SCRIPTwindow.open('../User/Redirect.aspx Page=~/User/EmailUrl.aspx'); " target = " NewWindow " title = " Email " description = " Check your email " > Why can't I run javascript in the url Has anyone done this Thanks carter Hi! Off the top of my head, I don't think you can run javascript in the site maps, but I'm not 100% sure. The ASP.NET forums will get you an answer for sure though. The best place for asking ASP.NET questions i ...Show All
Windows Forms toolstrip progressbar
Hey i have this "webbrowser" i sort of made myself, but i want a "ToolStripProgressBar" but i cant make it show the progress from my browser. what du i need to do what cammand will i need to call in which event //Martin The ToolStripProgressBar is used on a Strip item such as MenuStrip, ToolStrip and in your case StatusStrip. by the desinger, you should drag StatusStrip and then you can select ToolStripProgressBar to add to it or by code: ToolStripProgressBar toolStripProgressBar1 = new ToolStripProgressBar (); toolStripProgressBar1.DisplayStyle = System.Windows.Forms. T ...Show All
Visual Studio Team System Source Control Tree
Why isn't the source control tree displayed and manipulated by the Team Explorer window Opening to a Source Control Explorer to have extended capabilities is nice, but basic check-in/out functionality should be available directly from the Team Explorer window. Is this a feature that is going to be added in the final product Thanx, It would be nice to have some basic version control functionality in the Team Explorer window. We've toyed with a variety of ideas. It's kind of tricky because we really want to conserve space as it is designed to be a tool window off to the side, not a document well tool window. We ...Show All
SQL Server SQL Server security connections not working.
Hi - I have developed a database using Windows Authentication in Management Studio (CTP) but now need to set up logins for users externally - crucially NOT using windows authentication. I want to resrict these new logins to only run specific stored procs and completely deny all other privileges. I've created a login 'bc_user' but when I try and connect using management studio (ctp) I get:- Cannot connect to [server_name]\SQLEXPRESS. Login failed for user 'bc_user'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452). (Connecting in code from VS produces a less specific message) ...Show All
Visual Studio Project Subtype from wizard
Is there any reason why it shouldn't be a simple matter to start with a package project that is created by the wizard (new project -> other project types -> extensibility -> visual studio integration package) and add a project flavor to it using the ProjectSubtype sample as a guide I ask because I'm trying to do just that, but when I try to open the sub type's template, VS crashes without giving warning or description of the error. The debugger reaches the Package initialization code but it never reaches the ProjectFlavorFactory code. I don't understand what could be different between what I have done and the sample, which does wor ...Show All
Visual Studio Team System Can multiple team projects use the same source control tree?
I've read through as much as the TFS docs as I could find, but I've yet to see an answer to this. Can multiple Team Projects use a single source control tree or does each one have to have its own tree Here's my situation: We have a good size main tree that has 90+ projects (dll's) in it. There are perhaps a few dozen teams that contribute to these and each team has anywhere between 2-5 projects. All of the teams must check code into a single place so that a common build system can build all of it (they're all components of a single large app). What I'd like though is to have each team with their own Team Projects -- t ...Show All
Visual C++ plz problem with acmFormatSuggest!!
Hi all I've just written this snippet of code PCMWAVEFORMAT pcm; WAVEFORMATEX g711; ZeroMemory(&pcm,sizeof(PCMWAVEFORMAT)); ZeroMemory(&g711,sizeof(WAVEFORMATEX)); pcm.wf.wFormatTag= WAVE_FORMAT_PCM; pcm.wf.nChannels =1; pcm.wf.nBlockAlign=1; pcm.wf.nSamplesPerSec =11025; pcm.wf.nAvgBytesPerSec=11025; pcm.wBitsPerSample=8; g711.wFormatTag=WAVE_FORMAT_ALAW; g711.cbSize =0; &n ...Show All
