dev15`4534345677's Q&A profile
.NET Development Problems with ImageField in GridView and Access Data Source
Hi Everyone I am developing a smaller webpage for my company, but have come across a most annoying problem. So far I have double checked my code and relevant controls several times, but I can't figure out what I'm doing wrong. I hope someone can help me. I am not sure if this is the correct Forum but please let me know if it isn't and I will post elsewhere. Problem: I am working with an Access Database containing only two tables at the moment, product and category. The product table contains a row for holding image names, called 'Images'. The idea was to display images using the GridView control so I found help on the topic. I ...Show All
Visual Basic Richtextbox question
i have textbox1 and richtextbox1 and button1, i put text in textbox1, press button1 and then i want it to add the text thats in textbox1 to the richtextbox, but i want it to add to the next free line so say if i had some text on the first line of the richtextbox1, i would want the next line of writing to start on the 2nd line and so forth and so on Any replies would be appreciated Hi, If (RichTextBox1.Text = "" ) Then RichTextBox1.Text += TextBox1.Text Else RichTextBox1.Text += vbCrLf + TextBox1.Text End If ...Show All
Visual Studio Express Editions Getting HELP
I am perhaps a little slow (stupid). Deal gently with me! I have loads of nice simple examples of every thing I learned to do in VB 6, this meant that when I had forgotten how to do something I had done before I did not need to look through miles of code. So, now I have downloaded Visual Basic Express the MyVB (originally some VB2 much VB4 then updated via 5 and 6 with new regular new examples) now I am trying to update to VB express. Ok so I get errors. If I go to MENU + HELP + "How do I" help I get online help at this URL: http://msdn2.microsoft.com/en-US/library/756acb4f-6bc6-422a-8133-b241e5003a93.aspx this works if I click i ...Show All
Visual Basic code runs fine, but main form doesn't load
I am having a problem with one of my programs where, when I run the program through the IDE, it thinks that the program is running, but the form never loads. I set breakpoints within the Form_Load property to see if the property was running, and it was running fine. The only problem is that the form never shows up. Any help with program would be very helpful, as I am completely lost as to what to do at this point. Is there any potential for infinite loops that would keep the form from paining Any me.hides or me.visble = false in your coe that are inadventertently exectuted ...Show All
Visual Studio Team System Error when subscribing event using the API
Hi, I'm trying to subscribe an event through the API, My code is look like this: TeamFoundationServer tfs = new TeamFoundationServe ( "ServerName" ); IEventService eventService = ( IEventService )tfs.GetService ( typeof ( IEventService )); DeliveryPreference prefs = new DeliveryPreference (); prefs.Schedule = DeliverySchedule .Immediate; prefs.Type = DeliveryType .EmailHtml; prefs.Address = "MyEmail" ; filter = "PortfolioProject = 'TeamProjectName' AND " + @"\" + "CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue" + @"\" + " ='MyName' " ; string eventName = "Wor ...Show All
Smart Device Development Why ? in the String Table is ERROR CODE From code Sample-phoneime
hi: i use Visual Studio 2005 Team open the Phoneime Code Sample, but when i look at the Resource /String Table IDS_MTAP_CHARS and IDS MTAP_SHIFTCHARS there are ERROR CODE ,i can not see the correct chars. i know the chars is the Key map to digit and ABC. why it is bug thanks ! Thanks,Tao Ma You are right. I open the rc file in "View Code " or with Text mode , i can see the correct chars, and i can modify it without any warning or error when running the programme. As following is the correct chars: STRINGTABLE DISCARDABLE BEGIN IDS_SYMBOLS "Symbols" ID ...Show All
Smart Device Development Sending Message in a network
Hi all, I'm looking for a way to send message from my computer to a certain computer in a LAN. Any idea how to do that in .Net. Best regards... There are a few parameters by which the scope of you question can be narrowed. 1. If you are using a regular desktop machine, then .NET would be the better place to post this question rather than .NET Compact Framework(NETCF). NETCF has fewer features than the full .NET framework and is primarily intended for devices. 2. If you want to send a piece of information to a person, you need some way to identify the entity you are talking to. This can be an email add ...Show All
.NET Development Run Remote Batch
Hi you all, Can anyone tell me how can I run a remote batch file Many Thanks, MeTitus Your best approach is to do the following using WMI: 1. Invoke Win32_Process 2. In the remote process, use a cmd call and dump to a text file on the remote machine. 3. open a mapped drive to the remote machine. 4. Read the remote file. 5. delete file. 6.Close connections. The following script gets the netstat information from a remote server. This will dump the remote netstat into a DataGridView. This assumes you are using: 1. .NET 2.0 2. A DataGridView called DataGrid1 (use a Datagrid object ...Show All
Visual J# Running a Simple Program in J#
I created my first application in J#. In the Form1_load procedure I put System.out.println("Hello World"); I build the application. It compiles clean. How do I run it It's not too obvious. I did install the J# Redistribution Package. HELP! This is so simple.. but I'm stumped!!! I figured out a way to get the "form as text" info. Before print Expand the section that says "Windows Form Designer generated code". I need this so that I can see what the students created on their form. It also helps me find the cheaters. (Those with th same EXACT form layout.) I have another problem. My VB kids cannot run t ...Show All
Visual FoxPro MSGraph.Chart.8 control
I need to make charts. I started with MSChart Control and so far I've accomplished almost all I wanted except for one thing which totally eludes me. I need a simple line chart, not columns or a pie. I need to display a row of data like DJIA or similar indices with no additional vertical bars or other embelishments. The curve comes out nice but a lot of space on the chart is wasted because the curve is being plotted too high on the chart in vertical direction. I have tried to manipulate MSChart.Object . Plot . Axis ( VtChAxisIDY , 1 ). ValueScale . Minimum value but it is not responsive at all. I do not know why: perhaps other paramete ...Show All
Smart Device Development Device Emulator and connection to internet
Environment vs2005 windows mobile 5.0 ActiveSync 4.0 Question: how Device Emulator connection to internet thanks Hi! I have installed the MS VS 2005, and active Sync 3.7.1, but i cannot connect to the emultator. It says " cannot conenct to device, Error:0x89731304" What can i do ...Show All
Windows Forms MDI Application single child instance problem
Dear all, I am developing a MDI application. I want to keep all child form in just single instance. What is the best method to achieve it Should I loop through MDIContainer form's MdiChildren property and check the type of child form to ensure just one instance is created or any other methods I had tried to use Singleton pattern for example : public class Form1 { private static Form1 form1 = new Form1(); public static Form1 Instance{ get return form1;} } then in MDI form use From1.Instance to create a single instance of Form1, but unfortunately, after Form1's Close meth ...Show All
Visual Studio Express Editions How to activate the cursor in TextBox1
I would like to have the program activate the cursor in TextBox1, so the user can start typing immediately without having to first click on TextBox1. Try changing textbox1's tabindex property to 1. or you can make a sub that handles form1.load and in that use textbox1.select ...Show All
Visual Basic Jpg to Tif convert
Does anyone know how to convert a 32bpp image to a 1bpp image so I can save it as a compressed TIF I know how to save a compressed TIF, but I do not know how to convert a 32bpp image to a 1bpp image. PLEASE HELP. Thanks; Ben Thanks for the reply. .Net do not allow you to create a graphics object for a 1bpp image. How do you draw a 32bpp image on a 1bpp image without a graphics object Thanks; Ben ...Show All
.NET Development Inherit a class by a class that should be marchal be reference
Hi! I think this is a simple question for those that have been working with remoting for some time. And somehow, I believe the answer will be simply 'NO' . Is it possible to have a class that is marshal by reference and also inherits another class, other than MarshalByRefObject I guess that if that other class inherits MarshalByRefObject, this would do the job. But what if that other class is not mine, let's say... a system class. For instance, can I have a class that inherits the Generic.Dictionary and be marshal by reference a the same time This would be a solution to some cases, where I have access to ...Show All
