|
Good morning Henry.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Bonjour, Luc.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Oy Statler, we speak Dutch around here. Goede middag ondertussen.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi friends,
In my application from windows form i am going to open one URL in IE...in that web page[PAGE 1] after passing UserName & password it will redirect to other page[Page 2]....that page contain IFrames....
Now from that page i have to redirect to another page[PAGE 3]...
but URL of Page 3 is different..
I mean to say if Page 2 URL is https://www.google.com
Than Page 3 URL will be https://www.abcgoogle.com....but due to Iframe when i redirect from page 2 to page 3 address bar url will not change due to Iframe....
Now when i am on Page 2 when i mouse over on link button(which redirect me to third page)...at that time on status bar it is display this URL(https://www.abcgoogle.com)
Now my problem is From page2 how can i get status bar value??? so finally i redirect to third page.....
REgards,
Hemant Patel.
|
|
|
|
|
Windows 7 is released for developers today. It's available to MSDN subscribers. I've put together a list of Microsoft programs for developers for getting Windows 7 and developer tools including MSDN subscriptions at big discounts at http://tinyurl.com/newahd[^]
If you are a startup, your MSDN subscription can be nearly free through BizSpark[^]. The post also describes the free programs that are available for software companies to get your applications compatible, publicize compatibility, and to be listed on Microsoft sites.
|
|
|
|
|
Hello, I'm working on a developing a windows application which displays file names as link labels on a form. The files are saved in an Oracle database table as BLOBs. The files can be of any format .jpg, .gif, .pdf, .tiff, .htm, .pdf, .zip etc. When the user clicks on a link label, I am retrieving the corresponding BLOB from Oracle and have converted into byte array. I'm stuck on how to stream this byte array for the user to save in his desktop. If there is a way to even save and open the file systematically also, that would be great.
Any help from you is greatly appreciated.
|
|
|
|
|
You can do this using the FileStream class. Like this:
FileStream oFileStream = new FileStream("FilePath", FileMode.OpenOrCreate);
oFileStream.Write(YourByteArray,0,YourByteArraySize);
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hello D@Nish, thank you very much for your response. Is there a way to open the file systematically as soon as the save is complete? Thanks again for your help.
|
|
|
|
|
Use Process.Start method once the save is complete. It will open the file in the associated program.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
d@nish wrote: Use Process.Start method once the save is complete. It will open the file in the associated program
It worked. Thank you d@nish!!
|
|
|
|
|
Thanks in Advance,
While debugging anything in Visual Studio cannot see in debugging mode that whats going on the application
lets say i have a Text Box control and i wrote code for it
TEXTBOX1.text ="Hello World"
now while debugging i want to see the values on my application that ok it has set this value now or not
Any alternate or suggestion
Best Of Regards ,
Mirza Rahman
|
|
|
|
|
The application is halted when it hits a breakpoint. Hence, it will not paint the form.
You can add a "watch" in order to inspect the value though
|
|
|
|
|
Yes you are right but any other way instead of adding watch window because my scenario involves so many controls and grids any how thanks for Helping
|
|
|
|
|
Call Application.DoEvents() after setting the textbox value.
while (e) { Coyote(); }
|
|
|
|
|
Hello All,
I have list that is globally declared and i have add button which will add one object to the list once it clicked .
I am binding this list to grid .
for the first time when i click add button item is added to the list and binded to grid too.
when i again click the same then it added the item to the list but still not reflected to grid and then i have done some modifictions and get the result.
please find the code
private void btnAdd_Click(object sender, EventArgs e)
{
objSapient.Add(new SapientDetails(txtName.Text,txtSapientID.Text,txtProjectName.Text,txtPhoneNumber.Text,txtExpr.Text));
if (objSapient.Count != 0)
{
grvDetails.DataSource = null;
}
grvDetails.DataSource = objSapient;
}
why do i need to set as datasource to null ?
why just grvDetails.DataSource = objSapient; is not sufficeint .
Please tell the reason for the same
|
|
|
|
|
Not sure about this behaviour.
But to avoid setting the datasource to null, use a BindingSource object to set the datasource of the DataGridView. Set the DataSource of the object as your list. And on button click, just add the item to the BindingSource object. This will add item to both the List and the DataGridView.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
When I code a Setter for a property, I usually do it like this
public int SomeProperty
{
get
{
return this.someField;
}
set
{
if (this.someField != value)
{
this.someField = value;
this.Invalidate();
}
}
}
and this is probably what is happening in your case. Setting a field to the value that it already holds, results in nothing actually happening.
To solve your problem you really need to use the more complex version of DataBinding which includes change management. So that changes you make to objSapient are automatically reflected by the binding.
Take a look at the documentation for BindingSource , or Google for complex databinding to objects (or similar)
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I'm coding a program. My database have table, it's name tblSinhVien. In it have a column is Image, type is Nvarchar to save path of image.
I want to display image in Crytal Report but I don't know to use path of image to load image in Crytal Report.
Can you help me?
I thank you very much!
|
|
|
|
|
Hi,
I am going to edit and update record in datagrid , every time I am able to edit or update one record and again I m going to click button of grid view getting this error “Cannot set the SelectedValue in a ListControl with an empty ValueMember.” .. then again close to application and able to do edit and update any one record…
Vinay
|
|
|
|
|
Your explanation made absolutely no sense what-so-ever.
|
|
|
|
|
Hi Vinay,
With this minimum explanation, it seems that you are using data binding. Also, you have some ListControl in your form as well which is related to the same datasource (i.e. same datatable might be used for Grid and that control). This list control does not have blank value in its master data.
Verify this one otherwise try to debug (setting break points whereever ValueMember is set) your code to find out where you are getting the error.
|
|
|
|
|
I am having two comboboxcontrol on Winform2008, whenever I am selecting value from one combo , then same text is coming in second combo, but just I want to separation in both ..
Vinay
|
|
|
|
|
Use different datasource for each combobox, even if the data are the same.
|
|
|
|
|
|
So are you saying that each combo should point to a different copy of the save data? Isn't that a little inefficient??
|
|
|
|